Guest kencash Posted August 31, 2004 Share Posted August 31, 2004 Hi, Thanks to the help of the cubecart members, my site http://www.dogtoysmart.com is finally open for business. Please visit it and give me your honest feedback. Good and bad, I will work hard to improve on it. Thanks in advance. KenCash DogToysMart.com Quote Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2004 Share Posted August 31, 2004 I like it. :) Quote Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2004 Share Posted August 31, 2004 nice site my dogs would love those toys !!!!!! Quote Link to comment Share on other sites More sharing options...
Guest Posted September 12, 2004 Share Posted September 12, 2004 Nice site, my dog was already happy when he saw it, lol. One question, how did you get the "New Products" item on your site, is it just a mod?? Or did you make it yourself?? Quote Link to comment Share on other sites More sharing options...
Guest kencash Posted September 13, 2004 Share Posted September 13, 2004 hi, I found the following code on this forum, just follow the instruction below to add the new products section. However, the code will only display products based on product code. open up your index.php file and AFTER line 478 which is; eb($bg_colour,$colour_1); add after, echo"<br>"; //New Products sb("100%","New Products",$colour_1,$bg_colour); $query = "select * from ".$prefix."store_inventory order by product desc LIMIT 5"; $result = mysql_query($query); $count = mysql_num_rows($result); $columns = 5; if($count==0) { echo"$la_new_product"; } $no = 0; echo"<table width='100%' border='0' cellpadding='0' cellspacing='0'>"; for($i = 0; $i < $count; $i++) { $row = mysql_fetch_array($result); { $title=$row["title"]; $product=$row["product"]; $image=$row["image"]; $title=stripslashes($title); $title=substr($title,0,12); } if($i % $columns == 0) { echo"<tr><center>\n"; } echo"<td> <table height=\"100%\" width=\"100%\"> <tr> <td><center><a href=\"view_product.php?product=$product\" target=\"_self\"><img src='images/thumb_$image' border=\"0\"></a></center></td> </tr> <tr> <td><center><a href=\"view_product.php?product=$product\" target=\"_self\">$title</a></center></td> </tr> </table>\n"; if(($i % columns) == ($columns - 1) || ($i + 1) == $count) { echo"</tr></center>\n"; } } echo"</table>\n"; eb($bg_colour,$colour_1); Hope this help. KenCash Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.