WPPizza – A Restaurant Plugin for WordPress › Support › General Support › VIEW CART button is sending up the screen of few pixel
- AuthorPosts
- 10 June, 2015 at 6:59 pm #10602
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
10 June, 2015 at 7:09 pm #10603it 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
10 June, 2015 at 7:19 pm #10604Thanks 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?
10 June, 2015 at 7:51 pm #10605it’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 …10 June, 2015 at 8:20 pm #10606Hi
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
10 June, 2015 at 8:28 pm #10607i dont know what “code” exactly you are referring to to link what to what.
use css selectors and jquery i would have thought10 June, 2015 at 8:30 pm #10608or maybe you are looking for shortcodes to add the cart elsewhere
10 June, 2015 at 8:34 pm #10609Hi 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?
10 June, 2015 at 8:44 pm #10610do 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…..
10 June, 2015 at 8:50 pm #10611if 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)
10 June, 2015 at 8:56 pm #10612Hi thanks
I’m not a code person and I’m trying to sort this takeaway shop as my startup can you recommend a coder?
10 June, 2015 at 9:01 pm #10613>can you recommend a coder
no i can’t, sorry.
12 June, 2015 at 9:02 pm #10636hi 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? 🙂
12 June, 2015 at 11:39 pm #10640i 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
- AuthorPosts
- The topic ‘VIEW CART button is sending up the screen of few pixel’ is closed to new replies.