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] »</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.