NO BUG: Woocommerce cart items not updating price

Browser: Chrome 110
OS: macOS

when adding products into cart, price is not updating if its extra product options.

for example, if i add my product options, price isnt updating (it does add product and its options). if i click on remove a product that was already in the cart, then it updates the price of the item that wasnt updating.

it does not update automatically.

total price bottom is correct. its individual total price that isnt updated.



any acknowledgements?

Hi @Spipov ,

Is it possible to provide a link to your page?
What plugin you are using?
Did you try using the default Bricks Single product template? (Put your custom template as draft)
If it’s working well in the default Bricks Single product template but not for your custom one, you might missed out template hooks.

Regards,
Jenn

Thanks Jenn

i am using frames but now not using any plugins for displaying product page. ive tried a couple of extra product options, and the items do not update whether it is mini cart from bricks or cart from bricksultimate

i dont think i see any js console errors

Hi @Spipov

Thanks for the link.
However, I am not able to see the issue as you describe…
I add the products from the homepage, mini cart update successfully.

Then I went to your single product page

And seems working good for me too.

Possible to test in different browser? Or best if you could record a video for us.

Regards,
Jenn

Hi Jenn no sorry the issue is only with Test Pizza – The Pizza Truck . All other simple products are ok.

the issue is when there are extra product options, clicking them , does not update the price in the cart (it only gives the base pizza price and not the extra options). all product options plugins i have tried are having this issue. one plugin developer said:

" Hello!

If you are using ajax the tool that is sending the data needs to send all the data to WC, probably Currently it is just sending the product ID and the quantity. To fix this please contact the support team of the tool that is sending the information through ajax and ask them if it is possible for it to send the whole form (all the fields within the form) or disable ajax so your site uses the standards submission mechanism (which would send the whole form).

Regards!"

i have also tried clickign the ajax add to cart button in bricks settings woocommerce, but that made it not work at all.

Hi @Spipov ,

I can see the issue in that page.
May I know what is your current plugin name?
Alternatively, please can you send a temp admin access to help@bricksbuilder.io for me to do some quick troubleshoot on your site?
Kindly include this thread URL as a reference.

Regards,
Jenn

Hi Jenn

i have emailed access details to the address, thank you!

adding something else. i have managed to find a plugin that does a better job and puts the prices in the cart. (pluginrepublic product addons).

however, the extra product options do not appear i have anything in the bricks>templates>woocommerce single product page. if i have anything in there (elements/components), those fields do not appear.

This picture is if the template is empty

this is i have anything inserted into the product page

Hi @Spipov ,

Thank you for the site login details.

  1. Back to your original question, the plugin you installed and activated on your test site ( Extra Product Options Builder for WooCommerce) not showing each option prices in cart or minicart is not a BUG in Bricks. You will see the same issue if you switched to other theme like Twenty Twenty Three.

  1. Regarding your latest question (plugin republic product addons) Can you please replicate the issue in the test site? I don’t see a single product template inside. Most probably it’s due to missing template hook on single product template.
    WooCommerce Template Hooks – Bricks Academy

Regards,
Jenn

Thank you Jenn but thats my point. it works when bricks is not involved with the mini cart.

with the /cart page, it will work, its when adding those options to the mini cart, the mini cart does not update the price with the product options. it just shows the item and then the base price, not the additional prices.

if i add 3 items, then delete one, then it updates the cart to reflect the right prices based on the options.

try and go to Test Pizza – The Pizza Truck add in options then add to basket. see what the mini cart shows (im leaving both bricks’ default mini cart and bricksultimate as comparison). the mini cart only puts in the base product price.

if you remove the previous item in the cart, it will then update the price accordingly. its as if its not ajax loading when the item with product options is inserted.

Hi @Spipov ,

Just tested with standard Woo theme like StoreFront with mini cart.
You will also get the same mini cart result.


It seems like not Bricks modifying the mini cart price.

Could it be the plugin issue?

Regards,
Jenn

Thanks

so using storefront, i switched to this plugin

PPOM for woocommerce.

in storefront theme

it works as it should.

If i however use bricks theme and empty product page template it works better i would say, but you cannot unselect anything, and it remains the same checked box, as in if i click onion, it will never allow me to uncheck it.

so my conclusion is that there is something weird with product options and how its being handles with woocommerce/wordpress at that version we have?

im wondering if anyone has encountered any of that issue. im puzzled.

i appreciate its not specifically bricks, at this stage it would appear now.

another plugin (petsekeye)

So same thing - doesnt give the proper subtotal (both storefront and bricks)…

im guessing at this stage you are correct, its not bricks.

Hi - I’m the developer of the Plugin Republic plugin referred to in this post, Product Add-Ons Ultimate - WooCommerce Product Add-Ons Ultimate: custom fields and extra options. I’m not aware of any compatibility issues between our plugin and the Bricks Builder but I’m happy to look into this further. Please raise a support ticket here, Support - Plugin Republic, with details of the issue and the steps to reproduce and we’ll investigate.

Thanks

Gareth