Home › Forums › Basel support forum › sticky add to cart button
sticky add to cart button
- This topic has 7 replies, 2 voices, and was last updated 5 years, 7 months ago by
Elise Noromit.
-
AuthorPosts
-
July 6, 2019 at 11:42 am #131577
janardan7897ParticipantHello!
“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 thisJuly 6, 2019 at 5:23 pm #131603
Elise NoromitMemberHello,
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
July 6, 2019 at 6:30 pm #131609
janardan7897ParticipantHello !
Please tell me How to synchronize the translationsJuly 6, 2019 at 8:06 pm #131615
Elise NoromitMemberJuly 7, 2019 at 5:20 pm #131672
janardan7897ParticipantHello !
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
July 7, 2019 at 5:25 pm #131675
Elise NoromitMemberHello,
Restore the site from the backup and provide your site admin access as well as the FTP into the private area.
Best Regards
July 7, 2019 at 5:43 pm #131680
janardan7897ParticipantHello ! 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
July 8, 2019 at 7:58 am #131742
Elise NoromitMemberHello,
1. Done, please check any variable product
2. Reviews work properly now. I did not correct.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register