Guest stijnj Posted October 19, 2004 Share Posted October 19, 2004 Here's another free one too enhance your store with this mod you will show the price and/or sale price in the featured product sidebox step 1 open spotlight.php find $image_spot = $row["image"]; add below $price = $row["price"]; $sale_price = $row["sale_price"]; step 2 find if($gd_version!==0){ echo"<center><a href=\"view_product.php?product=$product_spot\" target=\"_self\"><img src=\"images/thumb_$image_spot\" border=\"0\"><br>$title_spot</a></center>";} delete the verry last } from the line above !! next add below if(($sale=="Y")and($sale_price!=="0.00")) { echo"<center><br><b>$la_normal_price</b> $currency<s>$price</s></br>"; echo"<b>$la_sale_price</b> $currency<font color=\"990000\">$sale_price</font></br></center>"; } if(($sale=="Y")and($sale_price=="0.00")) { echo"<center><br><b>$la_store_price:</b> $currency$price</br></center>"; } if($sale=="N") { echo"<center><br><b>$la_store_price:</b> $currency$price</br></center>"; } } step 3 find else{ echo"<center><a href=\"view_product.php?product=$product_spot\" target=\"_self\"><img src=\"images/$image_spot\" border=\"0\" width=\"75\" height=\"75\"><br>$title_spot</a></center>";} again : delete the verry last } from the line above !! next add below if(($sale=="Y")and($sale_price!=="0.00")) { echo"<center><br><b>$la_normal_price</b> $currency<s>$price</s></br>"; echo"<b>$la_sale_price</b> $currency<font color=\"990000\">$sale_price</font></br></center>"; } if(($sale=="Y")and($sale_price=="0.00")) { echo"<center><br><b>$la_store_price:</b> $currency$price</br></center>"; } if($sale=="N") { echo"<center><br><b>$la_store_price:</b> $currency$price</br></center>"; } } the result will be like this image below : when the product is on sale it looks like Find it usefull? a smalll thank you will do :wub: Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2004 Share Posted October 19, 2004 A BIG THANKYOU Stijnj You're a right proper geezar Many thanks indeed. Link to comment Share on other sites More sharing options...
Guest Posted November 18, 2004 Share Posted November 18, 2004 An actual cut n paste mod that works the first time without any issues. Wow!!! Great job! Thanks a lot! Link to comment Share on other sites More sharing options...
Guest Posted January 27, 2005 Share Posted January 27, 2005 Hi, I have used this Great Mod, and it worked first time. I have a little question if i want to use a different word instead of sale price and normal price how do i do it. Any Help would be really appreiciated. Link to comment Share on other sites More sharing options...
Guest jbdancer Posted January 27, 2005 Share Posted January 27, 2005 Change $sale_price & $la_normal_price to whatever you want Link to comment Share on other sites More sharing options...
Guest Posted January 27, 2005 Share Posted January 27, 2005 Thanks for the reply! I tried that but when i made the change nothing appeared other than the £ sign. Not sure what i have done wrong, but i have been hours at it Link to comment Share on other sites More sharing options...
Guest jbdancer Posted January 27, 2005 Share Posted January 27, 2005 Open up view_product.php : Find echo"<center><br><b>$la_normal_price</b> $currency<s>$price</s></br>"; echo"<b>$la_sale_price</b> $currency<font color=\"990000\">$sale_price</font></br></center>"; And Change like something to this : echo"<center><br><b>Other NAME for normal price</b> $currency<s>$price</s></br>"; echo"<b>Other NAME for sale price</b> $currency<font color=\"990000\">$sale_price</font></br></center>"; Link to comment Share on other sites More sharing options...
Guest Posted January 28, 2005 Share Posted January 28, 2005 Thanks Again for your help! I am not sure what is happening but i changed them exactly how you advised. Now one of them has changed the other remains as sale price. This has drove me nuts, but thanks again and again for all your help. Could you help me with this error i keep getting when i do a test order which takes me to a printer page. At the bottom of the screen it says "return to site" When i click it i get a error message saying "Warning: Cannot modify header information - headers already sent by (output started at /home/lowest3/public_html/admin/lang/English.inc.php:1147) in /home/lowest3/public_html/shoppingcart.php on line 44" Do you have your own Mod Site? Link to comment Share on other sites More sharing options...
roban Posted February 7, 2005 Share Posted February 7, 2005 Thanks for the Mod jbd. Worked the first time. Link to comment Share on other sites More sharing options...
Guest twisted Posted February 7, 2005 Share Posted February 7, 2005 Actually, $la_sale_price and $la_normal_price should be changed in the language file. If you only change it in view_product,php, then it is only in view_product.php that this change will show. By changing it in the language file, it changes it for ALL pages that call the price, or sale price. Link to comment Share on other sites More sharing options...
Recommended Posts