Skip Navigation

[Resolved] Product Price not updating using toolset template

This thread is resolved. Here is a description of the problem and solution.

Problem: I am using the b2b-market plugin to display a variable price based on the quantity selected. However, when I use the WooCommerce Views template for single products, the price does not update automatically.

Solution: Add the "summary" CSS class to a wrapping container, then use the wpv-woo-buy-options shortcode to display the standard product purchase button. The updated price will be shown when a different quantity is selected.

This support ticket is created 5 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 7 replies, has 2 voices.

Last updated by kaiD 5 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#1297673

I am trying to:
I am using the plugin "b2b market". With this plugin i am able to define prices on the number of items the user select (f.e. if he just select 1 the price is 25,-€, if he select 2 the price is 10,-€).
With the default woocommerce template for products this works fine and the price is updating depending on what number of items is selected. But if use a toolset template, the price stays always the same.
I am a non coder. So i have no clue what i need to do.
At the moment the woocommerce template is active so you are able to see how it should works.

Link to a page where the issue can be seen:
hidden link

(just select the variation "100" and select 2 items - the price should fall from 25,-€ to 10,-€)

I expected to see:
The price should update in the toolset template

Instead, I got:
The price stays always the same

#1298041

Hi, I was taking a look at this but it seems like the prices are shown as a range now. When I change the quantity to 2, some other content disappears. Are you running some tests? Is there another product I can test with?

#1298319

Hi Christian,

sorry, maybe my description wasn´t clear enough.
When you visited the site the standard woocommerce template was active. With this template updating the price depending how many items are selected works fine.

But it doesn´t work with the toolset content template i´ve created (Produkte Template Test). For that template i´m using the fields {!{wpv-woo-product-price}!} and [wpv-woo-buy-options add_to_cart_text="In den Warenkorb"].
The template shows the regular price but it´s not updating the price anymore when i change the number of items (like the standard template does).

Since only the standard template or the toolset templates can be activated at the same time, i´ve now activated the toolset template for you to see what the problem is.

If you like to see how the plugin changes the prices again, please feel free to change the template via woocommerce views from toolset to "WooCommerce Plugin Default Templates".

I hope my explanation helps. 🙂

Kai

#1298863
Screen Shot 2019-07-23 at 3.52.04 PM.png

Okay thanks for the additional information but I'm not seeing exactly what you described. Here's a screenshot of what I'm seeing - the price isn't 10, it's "-". I'm not sure what's going on, I have the default WC default template for products active.

#1299163

Hi,

is it possible that you checked the functionality as a logged in user? If so you need to log out or use a incognito tab. Because the prices are shown per user role.

As a guest (logged out user) you should see the prices and it´s functionality as descripted.

Can you please check again. Thanks

Kai

#1299615

Ah yes, that was the problem. Thank you, I'm running some more tests now and I will update you shortly.

#1299641

Okay check now please. I added a CSS class "summary" to the right column in your WPBakery template design. The plugin is looking for that class in the DOM to know which elements to replace, but that did not exist in your design anywhere. After I added the class I checked the product page and I can see the prices updating. Can you confirm?

#1300227

That worked fine. Thank you for your support with that.