- 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
Hello. I don’t remember such feature in the default Prestashop theme " Availabilty Date: “. Please try the issue with the default Prestashop theme.
…please, have a look at the attached file… thank you
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
…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 :
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…
Hello Richard.
Could you please give me a link to product where Availability label should be.
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!…
Hello Richard.
Thank you for your report. I found and fixed the issue.
Please check that.
….it still doesn’t display available date….
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
I removed your duplicated comment.