Mini Cart Implement

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17633
    nikolaoskaikisis
    Participant

      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 Kaikisiz

      #17639
      Olly
      Admin & Mod

        please see the settings options for the minicart in wppizza->layout where you can append the cart to whatever element you like

        #17640
        nikolaoskaikisis
        Participant

          I 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.

          #17641
          Olly
          Admin & Mod

            please refer to the install instructions

            https://www.wp-pizza.com/topic/things-to-do-on-first-install/

            #17642
            nikolaoskaikisis
            Participant

              I 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.

              #17643
              Olly
              Admin & Mod

                the 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/

                #17645
                nikolaoskaikisis
                Participant

                  Yes 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.

                  #17646
                  Olly
                  Admin & Mod

                    I 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 / products

                    furthermore, i cannot even see wppizza being installed on the site/link you posted

                    #17648
                    nikolaoskaikisis
                    Participant

                      I 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.

                      #17650
                      Olly
                      Admin & Mod

                        you 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

                        #17658
                        nikolaoskaikisis
                        Participant

                          After 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]’); ?>

                          #17664
                          Olly
                          Admin & Mod

                            ok, glad you sorted it out.
                            (I just did not understand your question or, more accurately, misunderstood the question, sorry)

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • The topic ‘Mini Cart Implement’ is closed to new replies.