• Other than the reloading of the page, is there any way to inform the visitor that their item has been successfully added to the cart?

    Lane

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Castro Demaria

    (@mikecastrodemaria)

    Yep but need to do an ajax update of the cart and dialog who display a message.
    I have to add them to features add

    I use the ‘Automatic redirection to checkout page’ option to load the cart page, thus easily showing that an item has been added.

    Although it’s not as sweet as an ajax same-page notification, it’s fine.

    In another install where I use site-wide ajax page-loading, the ‘Automatic redirection to checkout page’ option doesn’t load the cart page… and so I use the code below (inserted in an appropriate place(s) near a product to display a ‘x item(s) in cart’ message.

    
    <p class="in-cart"><a href="ADD LINK HERE">[insert_php]echo wpusc_cart_item_qty();[/insert_php] &raquo;</a></p>
    
    

    The ‘insert php’ is done with another plugin (https://www.ads-software.com/plugins/insert-php/), and enables the code to be added to the page. Without that plugin, the code between the square brackets can be added to a template with normal php open/close brackets.

    Although less-than-ideal, it’s a good trade-off when considering the benefits (works well and is easy to set-up) of this plugin.

    • This reply was modified 8 years, 3 months ago by gulliver.
    • This reply was modified 8 years, 3 months ago by gulliver.
    • This reply was modified 8 years, 3 months ago by gulliver.
    • This reply was modified 8 years, 3 months ago by gulliver.
    Thread Starter drlester

    (@drlester)

    gulliver, I like your solution, and it works well for me. Thank you for contributing it.

    Lane

    @lane… Thanks.

    Not meaning to be disrespectful to the plugin author… I’m one of several who’ve been unable to get this plugin to clear the cart contents on return from PayPal… and so am currently testing an alternative (https://www.ads-software.com/plugins/wordpress-simple-paypal-shopping-cart/)… which seems to be very similar, though perhaps easier to config, and which clears the cart.

    The workaround code similar to my earlier reply is slightly different:

    
    <p class="in-cart"><a href="https://ADD LINK HERE">Item(s) in cart: [insert_php]echo wpspc_get_total_cart_qty();[/insert_php] &raquo;</a></p>
    
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Confirmation After Item Added to Cart?’ is closed to new replies.