Install the free plugin "WPC Product Options for WooCommerce" and "Side Cart Woocommerce (Ajax)".
Create a new variable product
Add one attribute with 2 options
Generate the 2 variations, give 2 differents price
Got to the Product options tab of the product and choose override in the dropdown menu
Add a checkbox, with one option and a flat fee amount.
Save everything
Go to the product page, choose the second option, check the checkbox option and add to cart
The sidecart show a wrong price.
In my test, the second option price is $30, the checkbox option is $50. Adding to cart, it show $180 in the sidecart. If i refresh the page, it show $130 in the sidecart.
I already contacted Xootix, they said that it's in your side :
"Possibly the other plugin is having issues with the ajax and lacks the compatibility.
Side cart uses this function to get the price $product_price = apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );"
For your information, we have a plugin for that called WPC Fly Cart for WooCommerce. Both of our plugins can work together properly. You can give it a try. There's a free version for you to try on the WP repository.
In order to check and investigate the compatibility issue with external plugins, we will need to acquire access to the admin area of users' site and check. We are not familiar with the other plugin so we can't tell.
In case you still want to use the other plugin, as it's using AJAX, you can kindly install this plugin https://wordpress.org/plugins/wpc-ajax-add-to-cart/ to assist the AJAX loading on your site. It's easy and simple, with no special settings required. Just 1-click installation.
Since not all themes and plugins are integrated with the standardized AJAX for the Add to Cart button, we have developed a plugin for our own WPC users to make sure it has what it needs to work properly. Please install then clear both your site and browser's caches/cookies before checking again.
Thank you for your response. In my initial message, I provided all the necessary information to assist in your investigation, including the suggestion to install the free plugin sidecart and check what the developer of the other plugin has said:
Side cart uses this function to get the price $product_price = apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );"
So you just have to install woocommerce + WPC Product Options + Side Cart Woocommerce (Ajax) in a new wordpress to make the compatibility test as i describe.
I understand that you are not familiar with the other plugin, and that's perfectly fine. But a compatibility issue is still here. I have tested your plugin with AJAX loading, but unfortunately, it did not resolve the issue as it remained unchanged.
Unfortunately, according to our policy, we do not provide Premium support for free plugins.
We only provide free support in case of third-party conflicts when users have an active license of Premium version. This forum is for providing post-purchase support service for Premium users of our plugins.
So the process is to first verify the user license, then acquire the admin credentials to their site or staging site.
If you would like us to help you make our plugin work with the other cart plugin, it's required that you own an active license for the Premium version of WPC Product Options. Or you can kindly consider using our WPC Fly Cart plugin instead.
Hello,
I tested you plugin WPC Product Options 1.5.1 with sidecart from xootix ( https://wordpress.org/plugins/side-cart-woocommerce/ )
And it show a wrong price to the sidecart.
How to reproduce?
In my test, the second option price is $30, the checkbox option is $50.
Adding to cart, it show $180 in the sidecart.
If i refresh the page, it show $130 in the sidecart.
I already contacted Xootix, they said that it's in your side :
"Possibly the other plugin is having issues with the ajax and lacks the compatibility.
Side cart uses this function to get the price
$product_price = apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );"
Are you aware of this kind of issue ?
Do you have a quick fix ?
Best regards
Hi Johan,
Thanks for contacting us here.
For your information, we have a plugin for that called WPC Fly Cart for WooCommerce. Both of our plugins can work together properly. You can give it a try. There's a free version for you to try on the WP repository.
Best regards.
Janilyn T. - WPClever Support Agent
Hello,
Thanks for the recommendation. However, could you also verify if the issue with the other plugin will be resolved?
Regards
Hi Johan,
We are not sure about the other plugin.
In order to check and investigate the compatibility issue with external plugins, we will need to acquire access to the admin area of users' site and check. We are not familiar with the other plugin so we can't tell.
In case you still want to use the other plugin, as it's using AJAX, you can kindly install this plugin https://wordpress.org/plugins/wpc-ajax-add-to-cart/ to assist the AJAX loading on your site. It's easy and simple, with no special settings required. Just 1-click installation.
Since not all themes and plugins are integrated with the standardized AJAX for the Add to Cart button, we have developed a plugin for our own WPC users to make sure it has what it needs to work properly. Please install then clear both your site and browser's caches/cookies before checking again.
Best regards.
Janilyn T. - WPClever Support Agent
Hello,
Thank you for your response. In my initial message, I provided all the necessary information to assist in your investigation, including the suggestion to install the free plugin sidecart and check what the developer of the other plugin has said:
Side cart uses this function to get the price
$product_price = apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );"
So you just have to install woocommerce + WPC Product Options + Side Cart Woocommerce (Ajax) in a new wordpress to make the compatibility test as i describe.
I understand that you are not familiar with the other plugin, and that's perfectly fine. But a compatibility issue is still here. I have tested your plugin with AJAX loading, but unfortunately, it did not resolve the issue as it remained unchanged.
Regards
Hi Johan,
Unfortunately, according to our policy, we do not provide Premium support for free plugins.
We only provide free support in case of third-party conflicts when users have an active license of Premium version. This forum is for providing post-purchase support service for Premium users of our plugins.
So the process is to first verify the user license, then acquire the admin credentials to their site or staging site.
If you would like us to help you make our plugin work with the other cart plugin, it's required that you own an active license for the Premium version of WPC Product Options. Or you can kindly consider using our WPC Fly Cart plugin instead.
Best regards.
Janilyn T. - WPClever Support Agent
Ok,
Due to the incompatibility, i stopped using this plugin. Found another one who doesn't have this bug.
Thank you for your time.
Regards