could anyone modify the woocommerce [login to view URL] (ChildTheme !!) code below in clean & fast working lines, that it also works for this requirements:
> Works for product variations
> Works only for user role "b2b" & "gold" and NOT for role "visitors/customers"
> Excludes product categories "polish" & "accessories"
> Will give "b2" *0,95 (5% discount) and "gold "0,90" (10% discount")
add_filter('woocommerce_get_sale_price', 'my_custom_price', 99, 2);
add_filter('woocommerce_get_price', 'my_custom_price', 99, 2);
function my_custom_price( $price, $product )
//your logic for calculating the new price here
$price = $product->get_regular_price() * 0.8;
//Return the new price (this is the price that will be used everywhere in the store)
28 freelancers están ofertando el promedio de €203 para este trabajo
Hello, I can help you in woocommerce wordpress as per your given brief on project post. Let me know when you available to discuss more in detailed. Regards Rina
Hi I have 5 year experience I can show you my precious work. I'm Individual freelancer I have no timing issue I can do work any time day/nights. so can we discuss once thanks.
Hey I can modify the [login to view URL] file of your woocommerce store to change the roles of user, categories and price calculations so feel free to contact