Problemas del boton add to cart cuando elijo un color en tienda

This topic has 6 replies, 3 voices, and was last updated 1 months, 1 weeks ago ago by Andrew Mitchell

  • Avatar: Ricardo
    Ricardo
    Participant
    October 3, 2024 at 16:33

    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

    https://cortinas.work/tienda/

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    5 Answers
    Avatar: Ricardo
    Ricardo
    Participant
    October 3, 2024 at 17:08

    estos son los accesos en entorno de pruebas por si necesitan:

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    October 4, 2024 at 08:50

    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

    Avatar: Ricardo
    Ricardo
    Participant
    October 4, 2024 at 13:47

    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.

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    October 5, 2024 at 15:34

    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:

    https://prnt.sc/DibPaCI03K57

    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

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    October 6, 2024 at 19:01

    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

  • Viewing 6 results - 1 through 6 (of 6 total)

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

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.