WordPress.org

Ready to get started?Download WordPress

Forums

Woocommerce custom cart display in dialog box (2 posts)

  1. Nabanita
    Member
    Posted 1 year ago #

    I'm developing a theme for woocommerce plugin (2.0.12) in wordpress (3.5.1).

    In our woocommerce theme when I want to display cart details by using jQuery dialog loading with ajax. For the ajax code, I've used the shortcode for cart.

    I want to update the cart contents within the box (with ajax of course). I've successfully tracked the cart buttons within the dialog-box and also have submitted the cart-form successfully via ajax within the box. But the updates are not executed.

    Here is my ajax code for reference:

    <?php
    define('WP_USE_THEMES', false);
    global $woocommerce;
    require('../../../../wp-blog-header.php');
    ?>
    <div class="thedialog" title="Cart Details">
    <?php echo do_shortcode('[woocommerce_cart]'); ?>
    </div>

    My demo URL is:http://demo.pixelpoetics.net/ecommerce(Please click on the yellow 'cart' box on the top-left)

    Thank you in advance.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic