WP Menu Cart
[resolved] WP Menu Cart in Template (4 posts)

  1. technolovegy
    Posted 3 years ago #

    Hi Guys!

    I am wondering if I can put this into my template? Not sure how I would do it, but it's easier if I don't use the Menus in wordpress. I am using Jigoshop.

    Thanks so much!



  2. Ewout
    Plugin Author

    Posted 3 years ago #

    Hey Mike,
    You can put this in your template, but not straight out of the box. It's probably much easier to copy the essential bits from wp-menu-cart.php (the wpmenucart_menu_item function) and /includes/wpmenucart-jigoshop.php (which is where the data is collected).

    It does require a bit of php skill though...

    More about the implementation can be found here: http://docs.woothemes.com/document/show-cart-contents-total/
    It's for WooCommerce, but the same principles apply and you can of course take a few hints from our code.

    Hope that helps!


  3. technolovegy
    Posted 3 years ago #

    Thanks Ewout! I'll give it a shot if my workaround gives me problems. What I did was make a menu with one page in it, and told the cart to go there, then called that menu into my template. I then hid the page link and overrode a bit of css.

    Seems to be ok!

  4. Ewout
    Plugin Author

    Posted 3 years ago #

    Great fix! I'll go ahead and set this topic to resolved, but do let us know if you have any other questions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Menu Cart
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic