Jump to content

Recommended Posts

Posted

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 :

featuredandprice1.jpg

when the product is on sale it looks like

featuredandprice2.jpg

Find it usefull? a smalll thank you will do :wub:

Posted

A BIG THANKYOU Stijnj

You're a right proper geezar :wub:

Many thanks indeed.

  • 5 weeks later...
Posted

An actual cut n paste mod that works the first time without any issues. Wow!!!

Great job!

Thanks a lot!

  • 2 months later...
Posted

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.

Guest jbdancer
Posted

Change $sale_price & $la_normal_price to whatever you want

Posted

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

Guest jbdancer
Posted

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>";

Posted

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?

  • 2 weeks later...
Guest twisted
Posted

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.

×
×
  • Create New...