Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thebestbreadcrumbs

    (@thebestbreadcrumbs)

    @mongobread thanks for the suggestion!

    @prontotools Unfortunately I was compelled to find a quick fix over the past few weeks, so I decided to keep the original WooCommerce mini cart and not use plugin. (I wanted this plugin because I hid the original WooCommerce mini cart from the navigation menu and wanted to show a cart count in the top bar instead). Thank you very much for your assistance.

    Thread Starter thebestbreadcrumbs

    (@thebestbreadcrumbs)

    Hi Cory,

    Thank you very much for this. I had seen the link provided and the contents therein before posting the question on this forum. I also had tried it out but it didn’t work which made me wonder whether additional coding was necessary on my part, hence my question.

    Nevertheless, I tried it again, and the result is the same. Here is what I did:

    1. I placed the following shortcode on my topbar widget (from a plugin called Storefront top bar by WooAssist):
    [cart_button show_items=”true” show_total=”true”]

    2. The result: a little shopping cart icon appears on my topbar which links to my “shop” page (I expected it to link to the cart page). Furthermore, when I add a product, the sidebar cart provided by the WooCommerce plugin which displays on my sidebar is immediately updated. But the little cart icon from the WooCommerce Cart Count Shortcode plugin does not update. When I refresh the page, the little cart still fails to update and then the link changes to the “cart” page instead of the “shop” page as it did before.

    3. From google research, from what I understand, shortcodes do not work in WordPress widgets, so the following filter was added to my functions.php file, as per the recommendations of the article, since my shortcode is being added through a topbar widget:

    add_filter(‘widget_text’, ‘do_shortcode’);

    4. No difference was observed in the behavior of the little cart icon.

    Any assistance you could provide is greatly appreciated.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)