WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. technolovegy
    Member
    Posted 8 months 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!

    Mike

    http://wordpress.org/plugins/wp-menu-cart/

  2. Ewout
    Member
    Plugin Author

    Posted 8 months 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!

    Ewout

  3. technolovegy
    Member
    Posted 8 months 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
    Member
    Plugin Author

    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic