• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 13.01.14, 22:09
  • Opened by: Richard
  • Closed by: Marek
  • Closed on: 03.02.14, 10:13
  • Reason: No answer from a customer

Ticket #2730 - Show Availability Status

Hello;

I need to show the Availability Status of a product attribute on the detailed product page.
The functionality seems to be there because it shows in the product.js file but for some reason it doesn’t show.
I don’t want to show the quantity available but just to say “Available’ if the product is in stock or ‘Availabilty Date: " if the product attribute has the availability date field setup.

thank you.

Comments

Alex 14 Jan 2014, 14:42

Hello. I don’t remember such feature in the default Prestashop theme " Availabilty Date: “. Please try the issue with the default Prestashop theme.

Richard 14 Jan 2014, 16:47

…please, have a look at the attached file… thank you :-)

Kate Support 15 Jan 2014, 14:17

Hello,
you need to enable the stock management http://clip2net.com/s/6BbPPG

You can do it here http://clip2net.com/s/6BbWlA

After that you will be able to set the availability date and text you need when product is available http://clip2net.com/s/6Bc0oR

Richard 17 Jan 2014, 04:16

…I have followed your instruction, but this is not working at all because of bugs in product.tpl and product.js regarding the availability date.
in product.tpl there is no tag whatsoever with id ‘availability_date_label’ or ‘availability_date_value’.
in product.js the condition that compare the eventual ‘available_date’ and current date is never true because of :

           var time_available = new Date(tab_date[2], tab_date[1], tab_date[0]);        and it should be 		var time_available = new Date(tab_date[0], tab_date[1], tab_date[2]);

but that’s not all and there are plenty of bugs in product.js related to that issue and when you start looking at the code compare the to the code of the default prestashop code you’ll see that many things are missing.
I’ve tried to fix for hours to behave like in the default prestashop template but then it wouldn’t hide the ‘availability date’ when you change to a combination that doesn’t have a future availability date or a different one.

It’s very frustrating and I would really appreciate that you would fix that issue because it is crucial for us to work as expected…

thank you…

Marek 17 Jan 2014, 10:26

Hello Richard.
Could you please give me a link to product where Availability label should be.

Richard 17 Jan 2014, 12:24

Hello Marek!
try with this one http://www.scentsandfeel.com/beach/2-fouta-bright-positive-negative-thin-stripes-bright.html and the first combination (salmon/turquoise). you can make some test with different combination for this product and I will put back the correct ones once you are done.

thank you so so much!…

Marek 17 Jan 2014, 15:17

Hello Richard.
Thank you for your report. I found and fixed the issue.
Please check that.

Richard 17 Jan 2014, 15:26

….it still doesn’t display available date….

Marek 17 Jan 2014, 16:46

I just compared this page http://www.scentsandfeel.com/beach/2-fouta-bright-positive-negative-thin-stripes-bright.html in alysum and default themes and the both the same

Marek 17 Jan 2014, 17:01

I removed your duplicated comment.