Home Forums Basel support forum sticky add to cart button

sticky add to cart button

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #131577

    janardan7897
    Participant

    Hello!

    “Sticky add to cart button” for variable product is shown as “Select option”. I want to change the text from “Select Option” to “Choose Size to Buy”.

    I tried it to do this by a plugin loco translate but nothing happened.
    Please provide me custom code to enable this

    #131603

    Hello,

    Please synchronize the translation and try again. If it does not help, follow the steps to get the fix:

    1. Please upload the file from this link: https://drive.google.com/file/d/17pRyCpJdReyl_wWyoTduwTUoQQqLkvGT/view?usp=sharing

    2. Upload it into this folder deleting the previous one wp-content\themes\basel\languages\basel.pot

    3. Find this file wp-content\themes\basel\inc\template-tags.php and replace the code shown on the screen: http://prntscr.com/o2s9ji

    basel_header_block_search_extended()
    
    switch ( $search_post_type ) {
    	case 'product':
    		$placeholder = esc_attr_x( 'Search for products', 'basel' );
    		$description = esc_html__( 'Start typing to see products you are looking for.', 'basel' );
    	break;
    
    	case 'portfolio':
    		$placeholder = esc_attr_x( 'Search for projects', 'basel' );
    		$description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' );
    	break;
    
    	default:
    		$placeholder = esc_attr_x( 'Search for posts', 'basel' );
    		$description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' );
    	break;
    }
    
    switch ( $search_post_type ) {
    	case 'product':
    		$placeholder = esc_attr_x( 'Search for products', 'placeholder', 'basel' );
    		$description = esc_html__( 'Start typing to see products you are looking for.', 'basel' );
    	break;
    
    	case 'portfolio':
    		$placeholder = esc_attr_x( 'Search for projects', 'placeholder', 'basel' );
    		$description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' );
    	break;
    
    	default:
    		$placeholder = esc_attr_x( 'Search for posts', 'placeholder', 'basel' );
    		$description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' );
    	break;
    }

    Synchronize the translations.

    Best Regards

    #131609

    janardan7897
    Participant

    Hello !
    Please tell me How to synchronize the translations

    #131615

    Hello,

    Please have a look at the screenshot http://prntscr.com/obhtyj

    Best Regards

    #131672

    janardan7897
    Participant

    Hello !

    After replacing the pot file and updating the code. My website crashed and i am getting error http error 500. I replaced the original file and website restored. Kindly provide me code that work

    #131675

    Hello,

    Restore the site from the backup and provide your site admin access as well as the FTP into the private area.

    Best Regards

    #131680

    janardan7897
    Participant

    Hello ! site access is in private area

    Please do two things for me

    1. I want to set the “sticky add to cart button” for variable products. That dafault shown as “Select Options”. I want to change the text from “select Option” to “Select Size to Buy”.

    2. When i tap on “reviews” option shown on single product page (browsing in mobile) it takes me to the bottom of the page. you said there is open html tag but i am unable to find it. Kindly Fix this issue please.

    Thank you in advance

    #131742

    Hello,

    1. Done, please check any variable product

    2. Reviews work properly now. I did not correct.

    Best Regards

Viewing 8 posts - 1 through 8 (of 8 total)