You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
For some items I use a sale price. The original regular price is shown just above it. I was wondering if there was a hack/mod to show the regular price with a line striked through it? So only the sale price is shown without a line over it? That way it is easier to tell that the sale price is the price being charged. And the regular price can still be seen, although it would be crossed out.
Offline
In your ste_catprod_salprc.txt file do this:
<strike> (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)</strike>
or if you use CSS:
<span style="text-decoration: line-through;">(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)</span>
Offline
Yea thank you superhero2000!
Offline
I sure hope this becomes part of v6
Offline
anyone have a mod for changing the color of the sale price font to say red and increasing font size?
thanks!
Offline
Hi
The file ste_catprod_salprc.txt is in directory ccp51/data/elements
Offline
The file ste_catprod_salprc.txt is in directory ccp51/data/elements
Hi,
Can anybody tell me how to access this file.
Thanks.
Mark.
Offline
zinger,04/18/2004 10:15:48 AM wrote:
Hi,
Can anybody tell me how to access this file.
Thanks.
Mark.
You should be able to access this file with your FTP program.
Offline
I have tried this mod but it isn't working. The contents of my
ste_catprod_salprc.txt is as follows
<BR>Regularly: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)<BR>
On Sale: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_saleprice(/CGIVAR)<BR><strike>
(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)</strike>
with the mod at the end. Is this correct please ?
Offline
Stephen, you put the strike statements in the wrong place.
Your modified file should look like the following:
<BR>Regularly: <strike>(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)</strike><BR> On Sale: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_saleprice(/CGIVAR)
You want the strike statements to be around the regular price, since that is what you want a line (strike) going through.
Offline
Darnell,
Thank you very much for the reply. I have done as you have suggested but still not joy.
I do have the txt not the CSV file. I have checked the spaces and exactly copied and pasted as per your post. I have configured a product for the sale cost but no strike through is seen in any of the shop pages.
Grateful for any ideas. The problem is obviously my end - and I will keep trying to track it down. Thanks once again for the post,
Stephen
Offline
I just did this mod. Works perfectly! By any chance, is there a syntax for a diagonal slash through the price instead of a horizontal slash?
Offline
there is no such code for that.
Offline
You'd have to get a little creative with CSS and an image editor to accomplish this. You'd need to create the slash image to use as a background and modify ste_catprod_salprc.txt as follows:
<BR>Regularly: <span style="background-image: url(/image_path/slash.gif); background-repeat: no-repeat;">(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)</span><BR> On Sale: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_saleprice(/CGIVAR)
The problem with a slash image is that if your product regular prices cover a wide range the background image won't fit 1.00 the same as 1,000.00
Offline
To further emphasize the sale price you might use this code in the Category Product Sale Price Display (ste_catprod_salprc) element.
Original Code
<BR>Regularly: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)
<BR>
On Sale: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_saleprice(/CGIVAR)</font>
New Code - Sale Price is bolded and in red.
<BR>Regularly: <span style="text-decoration: line-through;">(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)</span>
<BR>
<font color="#FF0000"><strong>On Sale: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_saleprice(/CGIVAR)</strong></font>
New sale price display should look something like this.
Regularly: <s>$79.99</s>
Stands out a bit more.
Offline
Todd,06/26/2005 08:59:44 PM wrote:
To further emphasize the sale price you might use this code in the Category Product Sale Price Display (ste_catprod_salprc) element.
Original Code
<BR>Regularly: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)
<BR>
On Sale: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_saleprice(/CGIVAR)</font>
New Code - Sale Price is bolded and in red.
<BR>Regularly: <span style="text-decoration: line-through;">(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_regprice(/CGIVAR)</span>
<BR>
<font color="#FF0000"><strong>On Sale: (CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)product_saleprice(/CGIVAR)</strong></font>
New sale price display should look something like this.
Regularly: <s>$79.99</s>
Stands out a bit more.
if in the uk and you charge vat the name of the file you need to change is
ste_catprod_salprc_ivat.txt
works fine with the above code on our website
nice mod - thanks
Offline
Hi
I have tried the mod with the bold red strick out but it did not work. I changed the code in Manage Site Elements / Update Site Element / Category Product Sale Price Display. Is the place to do this change?
Anyone help?
Offline
hi
You need to edit the file ste_catprod_salprc.txt file by using an ftp program
it is normally found in a similar path to this on your website
/ccp51/data/elements/nameoffileyouneedtouse
however if you are in the uk and charge VAT you need to change the
ste_catprod_salprc_ivat.txt
and NOT
ste_catprod_salprc.txt which is in the same folder
post here if you need further clarification
Ged
Offline
Hi
What is a good ftp program to use for this?
Offline