PDA

View Full Version : Strikethrough - Block If


mpwildeman
08-Aug-2007, 03:25 PM
Hi,

I'm getting ready for my summer SALE. So reading through all the threads it seems the best way is to create a new variable (RRP) then add this new price variable to the product description using a Block If statement and strikethrough font.
All was going well until the Block If statement which I can't seem to get to work. Can someone with better knowledge please hold my hand.

My variable is called "OldPrice" and I want it basically to display this variable if its greater than 0 (i.e. being used) in Strikethrough font.

thanks in advance

mat

leehack
08-Aug-2007, 03:27 PM
Show us what you have done Matt, we can then correct that for you and you will understand better where you went wrong. Just paste your code into code tags in here.

jont
08-Aug-2007, 03:57 PM
Have you tried

OldPrice != ""

.. using the "is not empty" route instead....

leehack
08-Aug-2007, 04:00 PM
Support tell you that?
That is what i have also done previously, seems the best way from what i can see.

TraceyHand
08-Aug-2007, 04:00 PM
Have you tried

OldPrice != ""

.. using the "is not empty" route instead....

that's what I used (when I was playing last night)
That's assuming you haven't gone through and made entries of 0 for the rest, of course!

mpwildeman
08-Aug-2007, 04:13 PM
Thanks

but got it working now. The condition I set wasn't within the block so was display the Old price all the time.
Got it now.

I might be slow but I get there in the end!

Thanks for the help though

Mat

jont
08-Aug-2007, 04:24 PM
Support tell you that?
That is what i have also done previously, seems the best way from what i can see.

It's in the AUG page 35,5987,206

It is the best way as it installs better future proofing IMHO ... never know what is around the e-commerce corner.