BJng Posted September 1, 2015 Share Posted September 1, 2015 Hi to all, I need to test the available date and, if It is a specific date, show a message instead of the available message + available date. I tryed to modify the product.js without any success. Can anyone help me? Thanks to all Stefano PS 1.6.0.9 Link to comment Share on other sites More sharing options...
garyjj127 Posted September 14, 2015 Share Posted September 14, 2015 Hi Not sure if you've fixed this yet, but you need to find the following line (around 568): $('#availability_date_value').text(selectedCombination['available_date']['date_formatted']); Change it to: $('#availability_date_value').text('YOUR MESSAGE HERE'); Hope this helps! Link to comment Share on other sites More sharing options...
BJng Posted September 15, 2015 Author Share Posted September 15, 2015 Hi garyjj, thank for your answer. What I would like to do is this: if (tab_date[0] == '2999') $('#availability_date_value').text('YOUR MESSAGE HERE'); $(this).fadeIn(); else $('#availability_date_value').text(selectedCombination['available_date']['date_formatted']); $(this).fadeIn(); Show the message only if the year of the available date is 2999... but is not working :-( I'm not a developer, what I mistake? Thank you again Stefano Link to comment Share on other sites More sharing options...
BZZYBI Posted July 7, 2016 Share Posted July 7, 2016 Hi Guys. I am working on a Grid Style Order form.. as attached I would like to to pull data from the DB for the available_date thats under Table: product_attribute. This is the current code i have found <span id="availability_date_label">{l s='Availability date:'}</span> <span id="availability_date_value">{if Validate::isDate($product->available_date)}{dateFormat date=$product->available_date full=false} {/if}</span> with the above code its only displaying the Available date for the product as a whole and not as a variant. I am not a programer but i enjoy trying to solve the problem myself before posting. But this time I give up. Its been over a week, trial and error. Can any body help. Please Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now