Forum Replies Created
- AuthorPosts
-
Well, that way I would need to have 2 instances of each menu item, one for deliveries that allows changes, and one for the discount week that doesn’t.
one error I found while setting up a second site after this update. If I set a minimum order amount for delivery, and to disable delivery order when order total is below that, the cart also checks for that minimum amount for pickup orders.
Example:
I have the site set up to offer pickup by default. “delivery” checkbox is NOT checked.
Minimum price for delivery is 2000ISK
Customer adds pizza to cart that costs 1940ISK
Customer is unable to continue with order as the cart says the minimum amount for delivery is 2000ISK23 June, 2016 at 11:05 am in reply to: Uncaught TypeError: Cannot read property 'ownerDocument' of undefined #19095This reply has been marked as private.Makes me mad 😡 I spent HOURS trying to figure this out.
Turned out the hosting company was messing things up. According to them the firewall on the server was blocking the connection – though I find that doubtful – they were fiddling around last week to try to speed up the site at the request of the client.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Aaaand now it’s not working again!
Error in log:2016-06-09 12:55:55 : Could not get printers 2016-06-09 13:11:17 : Could not get printers
Finally was able to get a new token… Don’t know what the problem was. It didn’t work for over 24 hours.
This reply has been marked as private.This reply has been marked as private.I am, what I mean is sort in the cart/order print by the custom groups.
Update on this. This setting displays the order of ingredients in the same order the customer selects it.
Is there a way to display the ingredients grouped in the same way the ingredients are grouped?I have a Pizza offer, small with 3 toppings and a soda. One group allows the selection of toppings, another the kind of soda. Would be good to be able to show the soda name separately, as a new line.
1x Offer 1.390 kr Pineapple, Bacon, Cheddar, Coke
would be
1x Offer 1.390 kr Toppings: Pineapple, Bacon, Cheddar Drink: Coke
You can do that using the added filter, but you would need to program your own function to handle that.
The way I do it:
I first check if it’s a pickup or delivery order.
If pickup, there is a required field to select location for pickup – determine printer from that.
If delivery, determine printer based on zip code.Thank you sooo much! it’s working now.
Alright, to get going, I copied the suggested code, verbatim – but I am not getting anything in the console as the code orders, like it’s not loading the code at all.
According to the suggested code, it should return “do stuff” and the contents of the cart variable, but it returns nothing.Try here: http://castello.is/matsedill
That I know already, what I’m wondering is on which event I should trigger. I want it to trigger when an item is added to the cart
it’ll then check if the item is not available for delivery
if so, check if the delivery checkbox is checked
if so, uncheck the box and submit the changeon reload, because of the submission, the page will hide the delivery option if an item is in the cart which does not allow for delivery.
I’m trying to write a js/jquery function to uncheck AND hide the delivery checkbox when certain products are in the cart/added to the cart. Any tips on how to trigger it?
with $(document).ready it only updates when the page is refreshed.What I’m trying to accomplish is to disable the delivery option on certain products.
I’ve set the product numbers manually in an array in the js.var checkDelivery = (function() { jQuery('div.wppizza-order-pickup-choice > label').css('display','none'); jQuery('#wppizza-order-pickup-sel').css('display','none'); var a = ['408', '411', '412', '413', '414']; for (index = 0; index < a.length; ++index) { item = a[index]; if(jQuery('.wppizza-cart-contents li[id^=wppizza-cart-item-'+item+']').length > 0 || jQuery('#wppizza-cart-contents li[id^=wppizza-cart-item-'+item+']').length > 0) { //it is in cart jQuery('#wppizza-order-pickup-sel').prop('checked', false); jQuery('div.wppizza-order-pickup-choice > label').css('display','none'); jQuery('#wppizza-order-pickup-sel').css('display','none'); } } });
thumbs up to that!
when that option is checked, it would be great if instead of the pickup checkbox there would be a delivery checkbox in the frontendanother angle is with products (or in my case, offers) that are only available for either delivery or pickup.
For example, a special offer of a pizza with 2 toppings is only available for store pickup. - AuthorPosts