I have a simple function that used to work that I got online somewhere a few years back. It allows me to manually change the currency conversion rate for EUR (€, Euro). Problem now is this: Whereof the notice refers to this line: This is what I need help fixing. This is the complete code: Answer Since WooCommerce 3.2.0 the
Tag: price
Discount cart item price excluding a category and its children in WooCommerce
The fact is that the customer asks for a 50% discount for “Local Pickup” – I have already done this (I found a code here on StackOverFlow that applies a discount on all goods), but there is …
Get non formatted value from $order->get_formatted_line_subtotal() in WooCommerce
I need to make certain changes to the file order-details-item.php Product prices are formed in custom meta fields. So in my case the value is: $qty = $item->get_quantity(); is incorrect. It is always the same. To solve the problem, I can use the simplest arephmetic operation. Divide the total order price by the product price. For example, if a customer
Display the WooCommerce product price (with discount) in a custom template
I need to display a product in a specific template. Here is the template code:
Avoid cart items price update for specific product categories in Woocommerce
I am using below script under my WordPress child theme functions.php to overwrite price, but below code is affecting to all the products. Can you please help me “not to run” below code if the product is under some specific “shirts”, “games” category? Above code is working smoothly for all the products but I don’t want to run this code
Add the variation price to variable product dropdown item names in Woocommerce
I’m using this code to get the variable product options I tried a lot of codes to get price next to the name in dropdown menu , but nothing get right Answer It will only work if you have just one product attribute for variations set in the variable product (so only one dropdown). If you have more than one
Change product variation prices via a hook in WooCommerce 3.3
I´m using hooks for customizing variable product prices. However, this answer does not seem to be working for Woocommerce 3.3.5. I use following (from the previous post) on my functions.php file: …
Display lowest variation price and discounted percentage in WooCommerce
Based on this post : Displaying the lowest variation price of variable products And this topic : Display the discounted percentage near sale price in Single product pages for WC 3.0+ I’ve been trying to show everywhere on my website the lowest variation price with the associated discount %, for variable and non variable products. Here is the current code
Change product prices via a hook in WooCommerce 3+
IN WooCommerce, I need to multiply all product prices by a number. So I have used the following (via a plugin): But, that doesn’t work for variation products. I have tried the following hooks with no luck: The only one that works half way is this one: But that just changed the overall price, not the selected variation price. See