I contacted their support and they said the following:
“As far?as we see, most Yith-built plugins bypass woocommerce hooks that modify pricing and look directly into the database to retrieve product data. That’s why products like Filter, Quick View, Wishlist, etc by Yith won’t recognize and display modified pricing.”
Is there any way to have YITH quickview display the correct modified pricing?
You can check the error here: https://test2.apexbotanicals.com
Thank you!
]]>Working Snippet:
$user = wp_get_current_user();
$allowed_roles = array( 'tier2');
if ( array_intersect( $allowed_roles, $user->roles ) || !is_user_logged_in()) {
add_filter('woocommerce_get_price_html', 'custom_price_html', 10, 2 );
function custom_price_html( $price, $product ) {
if ( $product->is_on_sale() && ! is_admin() ) {
$price = wc_price( wc_get_price_to_display( $product, array( 'price' => $product->get_regular_price() ) ) ) . $product->get_price_suffix();
}
return $price;
}
}
]]>Have already tried a few plugins but I can only offer the price reduced for normal products (Ticket are in woocommerce a other product type)
Does anyone know a plugin where you can sell the ticket prices reduced (e.g. roll based)?
Thanks
I set a price rule Role Based Pricing (By Customers) with Priority 5 and the decreased price is applying to ordinary price.
On some products i have a Sale-price set up and these products i dont want the decreased price to apply on.
I therefore added a product category called Sale Price and i set up a new rule in Role Based Pricing with priority 1 and selected category Sale Price.
I want that to apply and not the percentage decreased rule.
I can not get it to work? All help needed. Thanks.
]]>Is there a way to default the price to always show the lowest possible price (enabling the sale price if that happens to be lower than the user’s role-based price)?
I know it would be possible to create a default role that every user is also assigned to, but it would be easier if there was a way to set the sale price to override user roles.
Thanks!
]]>Thanks!
]]>When a customer with a specific role adds a fixed-price bundle to their cart, the cart total is the price of the bundle plus the price of each product in the bundle.
The issue occurs when the customer’s role gets a discount on a product inside the bundle (but not on the bundle itself). If the customer does not have a special role, or is not logged in, there is no issue.
I think this issue is happening because Role based pricing adds a filter on the woocommerce_product_get_price hook, and this messes with your own calculations of the cart content and totals.
I’ve tried removing the filter in your own code (in class-woosb.php) before you add items to the cart and adding the filter again afterwards, but I can’t seem to fix the issue.
Any help or direction you could provide into getting these two plugins to work together would be greatly appreciated.
I realize that your plugin is offered for free and that this issue involves another plugin, and I will happily buy a premium licence for your plugin if you think this conflict can be solved.
Best regards,
Magalie