WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Mini Cart Implement
- AuthorPosts
- 26 April, 2016 at 1:55 pm #17633
Hello, i have buy this theme http://takeaway.uouapps.com/ and i want to use wp-pizza for my online orders. Is it possible to implement the cart from wp-pizza in my already existing cart tab on top of this theme. I appreciate ant help.
Regards
Nikolaos Kaikisiz26 April, 2016 at 2:03 pm #17639please see the settings options for the minicart in wppizza->layout where you can append the cart to whatever element you like
26 April, 2016 at 2:20 pm #17640I have see setting but dont understand how can i add wp-pizza cart in my existing theme cart. Can you help me please. I need to know if this is posibble so i can buy the rest of extensions please.
26 April, 2016 at 2:23 pm #17641please refer to the install instructions
https://www.wp-pizza.com/topic/things-to-do-on-first-install/
26 April, 2016 at 2:42 pm #17642I have read this alreday and i have searched for it before i post my issue. My theme cart cart is implement in my header.php. Here is the code.
<?php if($takeaway_option_data[‘takeaway-minicart-switch’] == 1) : ?>
<div class=”col-md-2 col-sm-3 col-xs-5 pull-right”>
<span class=”cart-contents pull-right” title=”<?php _e(‘View your shopping cart’, ‘takeaway’); ?>”>
<?php //echo sprintf(_n(‘%d item’, ‘%d items’, $woocommerce->cart->cart_contents_count, ‘woothemes’), $woocommerce->cart->cart_contents_count);?>
<?php //echo sprintf (_n( ‘%d item’, ‘%d items’, WC()->cart->cart_contents_count ), WC()->cart->cart_contents_count ); ?>
<?php _e(‘Cart ‘,’takeaway’); ?>
<?php if (class_exists(‘Woocommerce’)) : ?>
<?php //$takeaway_total = $woocommerce->cart->get_cart_total(); ?>
<?php //_e($takeaway_total, ‘takeaway’); ?>
<?php endif; ?></span> <div id=”mini-cart”>
</div></div>
<?php endif; ?>
I want to change this code and instead i want to show Shoppingcart from wp-pizza if a client have added a product to order.26 April, 2016 at 2:52 pm #17643the code above and the menu on your site is woocommerce specific. wppizza has nothing to do with that
https://www.wp-pizza.com/topic/wppizza-woocommerce/26 April, 2016 at 3:00 pm #17645Yes i know that this is from woocommerce. How can i change the code above so that i can use wp-pizza cart. If you have see the demo from my theme i think you will understand what i need. It is very simple i thing if someone has php knowledge.
26 April, 2016 at 3:05 pm #17646I think we are talking about different things.
your menuitem/products here for example : http://takeaway.uouapps.com/menu-grid-view/
are woocommerce products.
you cannot add them to the wppizza cart.
wppizza uses it’s own menu items / productsfurthermore, i cannot even see wppizza being installed on the site/link you posted
26 April, 2016 at 3:10 pm #17648I think i dont explain it right. Forget woocommerce, i will only use theme wihout woocommerce only with wp-pizza. All products and categories will be created from wp-pizza. But i want to keep the Cart button on the header of this theme. And inside this Cart i want to use the wppizza shoppingcart but i dont know how can i do that.
26 April, 2016 at 3:18 pm #17650you just enable the minicart in the cart widget and set the ID where it should be loaded in wppizza->layout . there is no php coding to be done to do this
you can then also style that minicart with css as you wish
26 April, 2016 at 3:38 pm #17658After a few hours i managed to do exactly what i needed. To add Cart into a php file use this <?php echo do_shortcode(‘[wppizza type=cart]’); ?>
26 April, 2016 at 4:15 pm #17664ok, glad you sorted it out.
(I just did not understand your question or, more accurately, misunderstood the question, sorry) - AuthorPosts
- The topic ‘Mini Cart Implement’ is closed to new replies.