Announcement

Collapse
No announcement yet.

Coding Quickie please :)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Coding Quickie please :)

    Hi All,

    Can I quickly pick the brain of a knowledgeable type here please?

    I am trying to put in a bit of code that shows a Saving from the RRP etc.

    It works great if there is a RRP entered into the product details.

    But throws an error if there is no RRP entered...

    Trying to get it to not show the contents of the block, if no value in the RRP.

    I have gone to wrap the code in a block, going to Insert Block - and choosing RecommendedRetailPrice is not Empty.

    But it is not working - getting an error "Warning: Wrong parameter count for Intval() in main on line 2"

    Any idea on what the proper syntax should be?

    Currently it is this...

    Code:
    			<actinic:block if="%3cactinic%3avariable%20name%3d%22RecommendedRetailPrice%22%20%2f%3e%3d%3d%20%22%22" >					
    Code here for if there ISW a value in RRP
    </actinic:block>

    #2
    <actinic:block if="<actinic:variable name="RecommendedRetailPrice" />== """ >
    Try using single quote marks for some of the string, maybe around the RecommendedRetailPrice and blank value. I suspect the trouble you have is that the use of double quotes throughout is breaking your string.
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Originally posted by Mike Hughes View Post
      Try using single quote marks for some of the string, maybe around the RecommendedRetailPrice and blank value. I suspect the trouble you have is that the use of double quotes throughout is breaking your string.
      Is the right answer - excellent - many thanks Mike

      Comment

      Working...
      X