I am building pizza delivery website with WooCommerce. In fact when customer is checking out, he can select when he want to have food delivered. The select box should contain 15 minute intervals ranging from the current time and clearing all past hours. The first option I want is to be “As soon as possible”, and then the next option
Tag: woocommerce
Rename “Select options” button on products archive for sold out products
I have a shop and each product that’s sold out is still referring to the product page despite it’s unavailability. The button “product options” still exists. So I found this code that’s …
How to get custom fields values from WooCommerce orders
I have checked similar questions but couldn’t resolve the problem. This is my code so far: It is giving me this error: “billing_vergi_dairesi was called incorrectly. Order properties should not be accessed directly”. So I replaced $order->billing_vergi_dairesi; and $order->billing_vergi_no; with $order->get_billing_vergi_dairesi(); and $order->get_billing_vergi_no(); Then I got: “uncaught Error: Call to undefined method”. What I am doing wrong? Answer Since WooCommerce
Product variation and parent variable product objects in WooCommerce hook
I developed a custom delivery time info for variations. But for some reason, I can’t get the parent product id of the variation to use it in my function. I tried the following – if I set $id straight …
Remove specific product variation from cart in WooCommerce
I want to remove a variation product from the cart in wordpress, woocommerce. I’m able to remove a simple product but not a variation product. With this code I can remove a simple product. I have tried passing in both the variation id and the parent variation id. I have no idea why its not working, would appreciate if some
Show estimated dispatch date after add to cart form in product page
I have a Woocommerce store and I would like to show my customers an estimated dispatch date below the add to cart form. The logic is If the customer places the order by 12PM IST, it would be dispatched by 3-5 Working Days. If the customer places the order after 12PM IST, it would be dispatched by 4-5 Working Days.
Sync two product quantities at cart woocommerce
I am trying to sync two product ids at the cart in woocommerce so that change in one bring change in the other quantity, I am trying this code but it updates all the products in the cart with master product ID, which I dont want. Answer I took an interest in this as the problem is quite tricky to
Display custom taxonomy terms on WooCommerce shop page
I am figuring out how to display a custom taxonomy on the WooCommerce shop loop. I found this answer, which has pointed me in the right direction. I have modified the code from that answer, to the following: The part I am stuck on is this line: I changed was was Vendor and Vendors (the name of the taxonomy) to
How to enable update cart button in woocommerce cart.php?
Hi I’ve been trying to get my “update cart” button to work on the cart page made by woocommerce. It is on my own theme and I have added the cart.php template to it. In the woocommerce template it had quantity but it didn’t have an easy to use add more or less buttons. So I edited the global/quantity-input.php to
Redirect specific user role to specific location after WordPress login
I need to redirect the Shop manager user to the orders page i added this in functions.php but not worked add_action(‘init’, ‘edit_for_shop_manager’); function edit_for_shop_manager(){ $user = …