Jump to content

Modify mailalert module to have more visible product quantity


ietax

Recommended Posts

Hi, i'd like to have more visibile product quantity in order confirmation mail.

 

I added 

 

 

<td style="padding:0.6em 0.4em; font-weight: bold; text-align:center;"><big><big>'.(int)$product['product_quantity'].'</big></big></td>
 
inside mailalerts.php
 
but I'd like to optimize it.
 
 
I'd like to change text color inside cell depending on its value.
 
 
  • If number is 1 should be yellow
  • If number >1 should be red

I found this code but I cannot use it inside my file, thanks

$('#mytable tr td').each(function(){

if($(this).text() > 1)$(this).css('background-color','red');
});

 

 

thanks

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