I’m running a woocommerce shop and using a Flat Rate shipping $15. I have written a formula to add $1.25 for each additional item. 13.50 + ( 1.25 * [qty]) Sipping “flat rate settings | $1.25 for …
Tag: cart
Get the author ID of each product in Woocommerce cart
In woocommerce, I need get the user ID of each product within the cart, The user ID isn’t from the customer, but is the user who created and published the product that is currently in the shopping cart (the author post). I have this code that I got here: WooCommerce Get Order Product Details Before Payment in Plugin code shared
Round up cart total Woocommerce
I need to round up prices on my Woocommerce cart. It rounds up to 1. For example: If the total price of the cart is $40.85, I need the cart to show $41.00. I tried with this command but the price discount this 0.15 and I do not know how to do it. I found this in other sites but
Change order of cart columns without overriding template files in Woocommerce
Is there a solution to change the order of the cart columns without copying the file in my own template folder? The reason is, that I don’t want to overwrite such a crucial template file. Unfortunately, the order is hardcoded as table in the file cart.php and not inside a function. Is there in this case any “clean” way to
GET a coupon code via URL and apply it in WooCommerce Checkout page [closed]
I have a WooCommerce website and when customer add-to-cart a product, it is get redirected to checkout page, so cart page is not accessible. I would like to apply coupon via URL (GET) on checkout …
Woocommerce: custom jquery event after added to cart
I’m trying (in archive) handle event after some product was added to cart (1 action on picture), I want catch that moment and update “Total number of products” (3 action on picture) of my mini cart in navigation menu. (With action 2 is all ok) Not working for me with second code: My custom code inited after when woocommerce js
Display shipping methods to frontend as in the admin panel?
In WooCommerce, I’m doing the form of adding / changing product (at the front-end). I need to display the fields for changing the cost of delivery of the installed methods as in the admin panel. How can I do it? Here is my actual code: Answer As Shipping Methods are connected to a Shipping Zone, WooCommerce need to know which
Woocommerce Progressive extra cost based on total number of items in the cart
I am looking for some code which can make an extra charge based on the total number of items in the cart like: If number of items in cart is > 6 ===> extra cost = 5 If number of items in cart is > 12 …
Set “flat rate” shipping method as default in woocommerce
I have a woocommerce website and I have set 2 shipping methods: – Flat Rate – Local pickup I would like to set the “Flat rate” shipping method as default (selected) in the cart or checkout page. Any help should be appreciated. Answer 1) You can use the following code (to set “flat rate” shipping method as default) In cart
WooCommerce discount: buy one get one 50% off
I wish to set up a specific discount on a particular variable products, if customer buys one product they get the another(same) on 50% discount(Buy one get another for 50% off). I’ve tried many discount plugins buy the closest that I have found are: Pricing Deals for WooCommerce WooCommerce All Discounts Lite WooCommerce Extended Coupon Features By using these plugins