Hi, Anne. Thank you for your work. glasgow_neat is great template and I'm using it on my live store now!
I have something that might help other people.
In the homeslider( Main flash image slider), you can show your new arrival items on the flash slider if you change some code.
in /includes/templates/glasgow_neat/common/tpl_home_slider.php
change line 15
PHP Code:
<li data-images="rm_container_1" data-rotation="-15"><img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE1 ?>" onclick="myFunction('<?php echo URL1 ?>')" alt="" /></li>
to
PHP Code:
<li data-images="rm_container_1" data-rotation="-15">
<?php $sql = " SELECT p.products_image, p.products_id, p.products_ordered, p.products_status, p.products_model, p.master_categories_id, p.products_date_added
FROM " . TABLE_PRODUCTS . " as p
WHERE p.products_status = '1'
AND p.products_quantity > 0
AND p.products_date_added BETWEEN DATE_SUB(NOW(), INTERVAL 30 DAY) AND NOW()
ORDER BY RAND()
LIMIT 1;
";
$NewImageResult1 = $db->Execute($sql);
$subject1 = $NewImageResult1->fields['products_image'] ;
$search1 = ".jpg" ;
$trimmed1 = str_replace($search1, "_500.jpg", $subject1);
?>
<img src="http://pnytrading.net/images/large/<?php echo $trimmed1; ?>" width="260px" onclick="myFunction('<?php echo zen_href_link(zen_get_info_page($NewImageResult1->fields['products_id']) . '&cPath=' . zen_get_product_path($NewImageResult1->fields['products_id']) , 'products_id=' . ($NewImageResult1->fields['products_id'])) ?>')" alt="" />
</li>
then this will allow you to take the pictures of new arrived items from "images/large" randomly. And every visit it will show another new arrived products on the flash to every customer. Also, if the customer click the products, it will bring the customer to the product info page.
its Easy trick.
my website is :
http://pnytrading.net/ if you wanna see what difference can be made with this .
If you have other recommendation for this... please let me know .
Anyway Thanks Anne for your Great job!!
Bookmarks