WooCommerce wrong price

I have a very strange issue in a woocommerce shop with a special price for b2b customers.

We use the german market, and german market b2b extension to calculate custom prices for business customers (40% off for example). € 7,45 should be the correct price output and it actually is at first time in the shop and product page:

screenshot

But after adding the product to the cart it reduces the price once more for 40% to € 4,47

If tried troubleshooting with deactivating all plugins except woocommerce, german market and german market b2b. The price still remains at € 4,47

When switching the theme to twenty twenty three, the correct price with € 7,45 ist displayed:

i just using the {{dc:woocommerce:product_price decimals="2"}} tag.

Any idea?

Hi @Regnalf,

Unfortunately, the website is showing a critical error. Can you please check and let us know once it is accessible?

Thanks

Should work now.

Hey @Regnalf,

I check the shop page and the cart page, then the price is just the same. I don’t see any differences.

Product Page:

Cart Page:

Please let us know how it goes.

I apologize if my information was too inaccurate. The prices for normal customers works as expected. Here are the exact steps to reproduce the wrong prices:

  1. to see the reduced price for merchants the customer group “Händler” must be used.

screenshot 5

  1. then two prices appear. The regular price and the reduced price for the merchant. (The layout for this can be found in the “Produkt Element” component). At this point, the price is correct with 40% discount.

screenshot 7

  1. after adding the product to the cart, 40% will be deducted again. This happens only in pro, twenty twenty three shows the correct price of € 7,45 (see screenshot above).

screenshot 8

The price in cart is always correct with € 7,45.

screenshot 9

Hi @Regnalf,

I have checked by adding the specific product to the cart, but didn’t find the issue you described here. If you are still facing the same problem, there might be some different reasons behind your issue. I would like to suggest troubleshooting the following common issue to help us recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above helps, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access to the secure note, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

The reason why i asked here is, because the plugin developer says a few days ago, that it only happens with the pro theme.

But he apparently took another look at it and made a change on the page that I myself was just now informed about via email.

He added the following to the function.php, this is maybe helpful for other who use the German Market B2B Plugin. And it seems to work for now.

// disable Runtime-Cache
add_action( 'init', function() {	add_filter( 'bm_filter_disable_runtime_cache_cheapest_price', '__return_true' ); });

I really don’t know what that means in the background. But is the runtime cache somehow handled differently in the pro theme?

Hi @Regnalf,

Glad to know that it is resolve now.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.