working with shortcodes to display checkout after item placed in cart
-
Hi,
I have managed to put the following code into a section of my page to display four downloadable virtual items:
<div id=”woo_shortcodes”>
<div id=”woo_items”><?php echo do_shortcode(‘[products ids=”638, 641, 642, 643″ columns=”4″ order=”asc” orderby=”date”]’); ?></div>
<div id=”woo_cart”><?php echo do_shortcode(“[woocommerce_cart]”); ?></div>
<div id=”woo_checkout”><?php echo do_shortcode(“[woocommerce_checkout]”); ?></div>
</div>
Once visitor clicks the ‘buy now’ button, the item gets in the cart, but in order to display the cart together with the checkout/payment below the items, visitor have to refresh the page. I would like to know how can I make the cart/checkout sections to appear without page refresh right after visitor clicks the buy now item button. How can I accomplish this?
I like the solution on the actual checkout page for example when there are more than one payment options listed and once visitor selects between the options, the spinning circle comes up with opacity on the page letting the visitor know that the page/section is refreshing.
My site is: unitedpostage.com
Thank you
- The topic ‘working with shortcodes to display checkout after item placed in cart’ is closed to new replies.