Jump to content

Hide unit price for specific combinations


astral667

Recommended Posts

Hi the community !

I work on a site that sells bottles.
I want to display the unit price when the 6-bottle case combination is active and hide the unit price when the 1-bottle combination is active.
Can anyone help me ?

Thanks

Best Regards

 

Capture d’écran 2023-08-03 121330.jpg

Capture d’écran 2023-08-03 121419.jpg

Link to comment
Share on other sites

Yep but what i want is :

I have 2 combination, I want the unit price to be displayed when the default combination (Case 6x75) is chosen and when the combination (bottle) is chosen the unit price is hidden.
I would like to do this in code and not by calculating the unit price of the combination.

Link to comment
Share on other sites

5 hours ago, astral667 said:

Yep but what i want is :

I have 2 combination, I want the unit price to be displayed when the default combination (Case 6x75) is chosen and when the combination (bottle) is chosen the unit price is hidden.
I would like to do this in code and not by calculating the unit price of the combination.

There is no easy way to do that. This is handled by javascript. So you would need to find the right place in the right script and then add something like "if (id_product_combination == '123') make it empty".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...