Jump to content

Change design when attribute is out of stock


Recommended Posts

Hi everybody,

I'll try to explain as best my request. On the product page, with many attributes (for example: size), when one of this attribute/size (link to the product) is out of stock - I want to change the design in attributes selections menus. With this, user can view easily which size/attribute is available to order.

I didn't find any tricks on this -

Please find a example from a competitor below to explain what I want to do 🙂 (with a module, or code update)

M-L is strikeout

image3.jpeg

 

Do you have some ideas ?

 

Thanks !

Ludovic

Link to comment
Share on other sites

  • 2 weeks later...

Hello,

I think you can create a module, use the hookHeader or hookProductFooter, get the product id with Tools::getValue('id_product').

Get all informations on it  and after it, use a tpl to display the informations with different colors based on the info got for the product.

Best regards,

PrestaBucket Team

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...