VIEW CART button is sending up the screen of few pixel

WPPizza – A Restaurant Plugin for WordPress Support General Support VIEW CART button is sending up the screen of few pixel

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #10602
    Marcus Hunter
    Participant

      In mobile VIEW CART button is sending up the screen of few pixel, and not opening the cart, instead I think it should open the cart and show it? Yes the shop is open

      http://taxi.inclusiveit.co.uk

      #10603
      Olly
      Admin & Mod

        it scrolls the cart to the top of the page / in view. that’s it

        your problem is that your sidebar (and the cart within) does not get displayed in mobile view

        #10604
        Marcus Hunter
        Participant

          Thanks for the quick response, so how would a mobile user see there cart and what do i need to do to enable this as the view cart button is redundant on a mobile? and if they want to remove some thing from the cart how would they go about it?

          #10605
          Olly
          Admin & Mod

            it’s your theme hiding the sidebar in mobile view.
            that’s what the theme developers chose to do.

            so either
            override what they are doing (css media queries probably),
            or
            display the cart somewhere where it’s always visible
            or
            write some javascript that clones that cart on click into a popup when it’s hidden
            or
            use a different theme/template that does not do this
            or
            …probably a few other ways to do this …

            #10606
            Marcus Hunter
            Participant

              Hi

              Can you confirm where the code is for the button so I can link the button on the moblie view to the cart which I can put in the footer?

              Or can you provide the code that will pop up the cart when you click on it?

              Ps I like the theme so it would be difficult to change this

              #10607
              Olly
              Admin & Mod

                i dont know what “code” exactly you are referring to to link what to what.
                use css selectors and jquery i would have thought

                #10608
                Olly
                Admin & Mod

                  or maybe you are looking for shortcodes to add the cart elsewhere

                  https://www.wp-pizza.com/topic/wppizza-shortcodes/

                  #10609
                  Marcus Hunter
                  Participant

                    Hi olly

                    The code I’m on about is the code for the button, which php file do I alter to point the link code behind the button (view cart) so I can point it to the footer cart?

                    #10610
                    Olly
                    Admin & Mod

                      do not edit core files. period.

                      you can however use a filter “wppizza_filter_shortcode_totals” to edit/change the output of the elements there.

                      (though i still dont understand why you would want to do that if you can just use css selectors/jquery, but that’s of course up to you)

                      PS: your main footer also gets hidden by your theme in mobile view btw…..

                      #10611
                      Olly
                      Admin & Mod

                        if i were you i would write some javascript along the lines of :

                        if .wppizza-cart hidden => clone cart into popup and show this on click of .wppizza-totals-viewcart (or something to that effect)

                        #10612
                        Marcus Hunter
                        Participant

                          Hi thanks

                          I’m not a code person and I’m trying to sort this takeaway shop as my startup can you recommend a coder?

                          #10613
                          Olly
                          Admin & Mod

                            >can you recommend a coder

                            no i can’t, sorry.

                            #10636
                            Marcus Hunter
                            Participant

                              hi i have sorted it so that the widgets work at the bottom, could you be kind enough to provide the file and location so I can link the view cart button to point to the widget? (i also may need help to link this to the widget? 🙂

                              #10640
                              Olly
                              Admin & Mod

                                i really don’t know what file/location you are referring to.
                                as mentioned though, there is a filter (“wppizza_filter_shortcode_totals”) you can use .
                                it really depends entirely on your particular scenario as to what you need to do where though…

                                >i also may need help to link this to the widget

                                sorry, but i cannot provide suppport for individual themes and/or circumstances and/or requirements

                              Viewing 14 posts - 1 through 14 (of 14 total)
                              • The topic ‘VIEW CART button is sending up the screen of few pixel’ is closed to new replies.