I want to bring this feature from my current site into ZenCart:
I run a query:
PHP Code:
$query_Masthead = "SELECT Alt, Address FROM mastheads WHERE CURDATE() >= BeginDate AND CURDATE() <= EndDate LIMIT 0, 30 ";
$URL = $row['Address'];
$ALT = $row['Alt'];
$Masthead = mysql_query($query_Masthead, $whatwouldwaltdo) or die(mysql_error());
$row_Masthead = mysql_fetch_assoc($Masthead);
$totalRows_Masthead = mysql_num_rows($Masthead);
$URL = $row['URL'];
$ALT = $row['Alt'];
Then, where the current logo.jpg appears, I want to instead insert:
HTML Code:
"><img src = "<?php echo $row_Masthead['Address']; ?>" Alt = "<?php echo $row_Masthead['Alt'] ?>"/>
Basically, it changes the my company's logo based on pre-defined holidays, a la Google.
How can I do this in ZenCart?
Bookmarks