Jump to content

reload product page after changing color option


Recommended Posts

Hi,

 

I want to sell my products on-line (I'm a brand new prestashop user)

manufacturing of my products starts when someone byes.

In some cases I have a product on stock.

 

So I'm setting up a lightning, available in 4 colours:

RAL 7016 / RAL 9016 / RAL 3004 and rust.

 

I do have 1 "rust" lightning in stock, the other colours are out of stock and manufactured when commanded.

Stock is set as: "7016": 0 / "9016": 0 / "3004": 0 / "rust": 1

 

On the front office product page the default colour is set to 7016.

A comment "product manufactured @ command. manufacturing time: 20 days"

When the client changes colour to "rust" this comment disappears and he sees "1 product"

 

But when he changes his colour choice again to one of the colours out of stock, my "product manufactured @ ..." sense don't come back on the screen.  I need to do a page reload do make it reappear again.

 

Is there a way to reload automatic the pages when the user changes his choice, or is there an other way to fix my problem.

 

Image to explain even better my problem: https://goo.gl/photos/fwHYR4NUUicX6DSk8

 

Thanks for your help!

Link to comment
Share on other sites

How did you set the manufacturing message in the first place?

If you need that message to display for all the out of stock products, a easier way to do it is to change the message associated with out of stock for product page from BO > Localization > Translations.

In your example, when the user changes from "rust" to something that is out of stock, instead of seeing displayed "This product is no longer in stock with those attributes but is available with others." it will see your manufacturing message.

  • Like 1
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...