• Resolved randommess

    (@randommess)


    Hi, I used the cart menu item class from my theme as the trigger class in side cart settings [without ‘.’] But when I click on the menu item it both opens the side cart AND forwards to the cart page, closing the side cart as the page changes and loads the cart page.

    With items already in the cart when I activated the plugin, but before adding additional items to the cart the trigger link/menu item opened/closed the side cart perfectly. Even after customizing the side cart. After testing that ajax worked for add to cart buttons on single product pages, I styled the wc view cart link that appears next to the add to cart button after ajax add to cart ends. That’s when I tested the menu link again to open the side cart, but was forwarded to the cart page, instead, while the side cart still appeared to open and display normally along with its content.

    I removed all my additional css, emptied the cart, removed ajax from the add to cart buttons, added new items to the cart while testing after each. But, clicking the trigger class link in the menu to open the side cart still shows the side cart, briefly, while forwarding to the cart page. Fix? Ideas? Thanks for your help…

    Ann

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xootix

    (@xootix)

    Hi @randommess

    If its a menu item, can’t you remove the link itself?
    Share your website link.

    Thread Starter randommess

    (@randommess)

    Hi, @xootix The theme is coded with php/hooks to display the wc cart + item count in a small menu alongside social media links. I can’t just open wp menus and swap it for a custom placeholder, unfortunately. So I would have to make this theme fit your plugin which would involve pulling three template files, removing the hook, and placing those files into my child theme rather than simply entering the class for the cart wrap as the trigger class in side cart’s settings, or switch to using the included basket icon which is a no go. There isn’t a function available? Something that gets the side cart using the trigger class while preventing the link from forwarding the page…

    Thanks, Ann

    Thread Starter randommess

    (@randommess)

    Hi, @xootix I wanted to let you know that I deactivated this plugin and found a separate plugin for the side cart that works with my menu. But, for ajax add to cart I am using your plugin, Woocommerce Added to Cart Popup, and I really love it. I’ve styled it for my website and the popup looks glorious after an item is added to the cart ?? Thank you!

    Ann

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘trigger class opens side cart and cart link’ is closed to new replies.