• Resolved mattheck

    (@mattheck)


    First off, thanks for such a great plugin.

    I’m wondering about two issues I’m having. The first issue is that after I add a variable product to cart using the ajaxed add-to-cart button the dropdown menu text box says “” was succesfully added to cart, instead of SuperSet was succesfully added to cart. I’m not sure why this is happening as elsewhere on the site the product name is pulling through correctly.

    The second issue is that after a refresh of the product page, or after visiting another woocommerce page, product, cart or shop, the Woocommerce text box still displays. To be clear, this is not the dropdown text generated by the ajax plugin, it is the success confirmation text that always shows up when a product is added to cart. Should I just hide this using css or is this a bigger issue?

    I am using the latest version of the Salient theme. This is happening on http://www.aptsupps.com .

    edited for screenshots:

    screenshot of dropdown text

    screenshot of woocommerce text

    Thank you,
    Matt

    https://wordpress.org/plugins/woocommerce-ajax-add-to-cart-for-variable-products/

Viewing 10 replies - 1 through 10 (of 10 total)
  • I work on aptsupps.com with mattheck as well.

    I wanted to add that products have only one variation, however, I don’t see why this would affect the product name pulling through. We will be adding more variations in the future, which is why we started with the variable product instead of the single product.

    Thank you,
    Sammy

    Thread Starter mattheck

    (@mattheck)

    Rcreators,

    Any idea as to why the name of the product isn’t pulling through on the ajax added to cart message?

    Thank you,
    Matt

    Thread Starter mattheck

    (@mattheck)

    Anybody else having this problem?

    Plugin Author Rishi Mehta

    (@rcreators)

    Hello @mattheck

    From here : https://wordpress.org/plugins/woocommerce-ajax-add-to-cart-for-variable-products/developers/

    Download 1.2.6 Version which is still in beta. Update it on your website and let me know if it solved the issue or not. Let me know after you update it. So i will test it too.

    Thread Starter mattheck

    (@mattheck)

    ok, thanks, will do

    Thread Starter mattheck

    (@mattheck)

    HI @rcreators,

    I updated to version 1.2.6 but unfortunately I’m still having the same problem.

    Thanks,
    Matt

    Plugin Author Rishi Mehta

    (@rcreators)

    PM me your wordpress login details, so i can login and check for Issue.

    Send me details from this form : https://rcreators.com/woocommerce-ajax-add-to-cart-variable-products/

    Thread Starter mattheck

    (@mattheck)

    ok, I just PMed you the details

    Thanks

    Plugin Author Rishi Mehta

    (@rcreators)

    Hello @mattheck,

    I checked your theme. your theme has some issue with js. it was adding item name from on click event and it was only for category page and not for single page.

    So i added little bit js in your child theme footer before wp_footer(). Below is code which added.

    <script>
    jQuery( function( $ ) {
    
    $(document).on('click','.single-product-summary .single_add_to_cart_button', function(){
    	var productToAdd_ajax = $(this).parents('.single-product-summary').find('.product_title').text();
    	//alert(productToAdd_ajax);
    	$('#header-outer .cart-notification span.item-name').html(productToAdd_ajax);
    
    });
    });
    </script>

    Which solved both issue. Practically i never get second issue. so don’t know is it solved or not.

    Thread Starter mattheck

    (@mattheck)

    Hi @rcreators,

    Wow, thanks so much! Adding the script was above and beyond and I really appreciate it.

    That’s weird though that the item name was only added for the click event on the category page and not single pages. We’re running the Salient theme on the site, and since its pretty heavily downloaded and used, I would’ve thought that they used pretty standard js.

    Anyways, the script you added adds the name properly now and takes care of the second issue of the WooCommerce product added banner alert still showing up.

    Thanks a ton,
    Matt

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘quotes show up instead of product name on added to cart text’ is closed to new replies.