Support » Plugin: Easy Digital Downloads » Cart Item is not added on additional widget

  • Resolved munyagu

    (@munyagu)


    Hi,

    Thank you for your great plugin.
    But I have trouble width cart widget.

    I display cart wedget in the header and side navigation.

    When I purchase item will be reflected in both widgets.
    But item is not inserted in the header widgets.
    Subtotal and total are reflected in the header widget.

    Please tell me why item is not inserted in the header widgets.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author mordauk

    (@mordauk)

    Could you please provide us with a site URL so we can view it?

    Hi, Pippin.

    Thanks for your reply.

    My site url is

    https://images.munyagu.com/

    Side widget is working.
    Plugin Ajax does not work well with header widgets.
    If you reload browser, the item details will be reflected.

    Plugin Contributor Kyle Maurer

    (@brashrebel)

    @munyagu I just took a quick look and when I added a download to the cart, the AJAX worked for both the cart widget in the header and in the sidebar. Have you changed something that made this work or am I missing the problem?

    Hi, BrashRebel.
    Thank you for your reply.

    Item is not inserted in the header widgets by Ajax.
    Only subtotal and total are reflected in the header widget.

    When a screen is reloaded, Item is inserted.

    I tried it with IE, FireFox and Chrome.

    Plugin Contributor Kyle Maurer

    (@brashrebel)

    Can you describe to me how you included that widget in the header? Is that a feature of the Gridsby theme? Or did you insert it somehow?

    It’s not feature of the Gridsby theme.

    I added widget area with ‘register_sidebar’ and add widget to the widget area with admin Widgets page.

    in functions.php

    function justimage_widgets_init() {
    
    	register_sidebar( array(
    		'name' => 'Header Right',
    		'id' => 'header_right',
    		'before_widget' => '<div id="head_right">',
    		'after_widget' => '</div>'
    	) );
    }
    add_action( 'widgets_init', 'justimage_widgets_init' );
    Plugin Contributor Kyle Maurer

    (@brashrebel)

    Thanks for clarifying. I just tested and confirmed that the widget will work if you wrap it in an element with the widget_edd_cart_widget class. A <span> or a <div> will work fine. You could even just add that class to the <div> you’re using as the before_widget tag. Can you try that?

    It works!

    But I don’t know why the aside element with widget_edd_cart_widget class is added in the sidebar…

    Anyway, Thank you so match!

    • This reply was modified 2 years, 11 months ago by munyagu.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cart Item is not added on additional widget’ is closed to new replies.