How can we improve WooCommerce?

WooCommerce Bookings integration: include data attributes in filter

I use the filter `woocommerce_product_addons_option_price` in `select.php` to change the price of an addon dynamically. However, when I add this product to the cart / use it with WooCommerce Bookings the old price is taken into account.

Theory: I change the price with the filter, but the data attributes are not affected by this.

Non invasive solution: Change `$option['price']` --> `$price`in line 24 in `woocommerce-product-addons/templates/addons/select.php`

0 votes
Vote
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
You have left! (?) (thinking…)
AdminWooCommerce (Product Owner, WooCommerce) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...

WooCommerce: Extension - WooCommerce Product Add-ons

Feedback and Knowledge Base