Jump to content

Testing available_date


BJng

Recommended Posts

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

  • 2 weeks later...

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

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

  • 9 months later...

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 

 

post-836566-0-73751600-1467872705_thumb.png

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