This topic has 6 replies, 3 voices, and was last updated 2 months, 1 weeks ago ago by Andrew Mitchell
GOOD MORNING DEAR, THE STORE SECTION works very well and does what I need, however when I am on the store page or anywhere where there is a product and I select an option (color) of the variable products, for example a product color varies (without entering the individual product page) the button that I have configured in “QUOTE” changes to the “ADD TO CART” button and that new button if my clients click on it, it stays loading indefinitely. So it is very likely that this happens because my variable products have their plugin configured so that they first enter the width and height data and then the price is updated to receive add to cart. I hope you can help me change the function that performs the action so that when a customer chooses a color for a variable product on the store page, the “QUOTE” button DOES NOT CHANGE its name or its function, and that it redirects by default to the individual product page (without affecting the main function of adding to cart on the individual page when the width and height data are entered. Espero puedan ayudarme, gracias
estos son los accesos en entorno de pruebas por si necesitan:
Hi @Ricardo,
1. To change all the add to cart text to ‘Quote’, please add the following code under functions.php file locates in your child theme:
function n2t_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Add to cart' :
$translated_text = 'Quote';
break;
}
return $translated_text;
}
add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
2. Can you please help us to disable the Ajax Add To Cart setting under XStore > Theme Options > WooCommerce(Shop) > Single Product Page > Layout: https://prnt.sc/r1-8cVY-Nth5?
Please note that all the custom fields on single product page will not work correctly when the Ajax Add To Cart setting is active.
Please let us know how it goes or if you need any further assistance. We are here to help!
Best Regards,
8Theme’s Team
Hello, I made the changes as indicated, and the behavior of the add to cart buttons remains the same, I am attaching images of the changes and the behavior of the buttons.
Hi @Ricardo,
We’ve changed the Add to Cart text to Quote for you.
But when we added a product to cart, we coud see the 500 error:
In this case, please provide your FTP access. We require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.
Best Regards,
8Theme’s Team
Dear Ricardo,
We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!
Click here to spread the love: https://themeforest.net/downloads
Thank you for being an integral part of our journey!
Best Regards,
The 8Theme Team
The issue related to '‘problemas del boton add to cart cuando elijo un color en tienda’' has been successfully resolved, and the topic is now closed for further responses