Announcement

Collapse
No announcement yet.

How can I show an RRP price next to the selling price of my products?

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

    How can I show an RRP price next to the selling price of my products?

    Do the following:

    * go to the 'Design' menu and select 'Library'

    * click on the 'Variables' tab

    * right-click on the 'Product' group and select 'New Variable'

    * set the following in the variable:

    o Name: RRP
    o Prompt: RRP Price
    o Place of Setting: Product
    o Type: Text
    o Allow Empty Value: ticked
    o Make a note of the 'Panel Name' as this is where the field will appear on the product for you to enter the value (you can change this if you wish or create new panel)

    * click 'OK'

    * add the following code to your product layouts for the section page and single product page (if used). This may vary depending on what layouts are used, i.e. in the default site supplied with the software, the section page product layout is called 'Regular Product Summary' and the single product page layout is called 'Image On Left Text Wrapped Around'. Yours may be different especially if you have custom layouts:

    * within your layouts, locate the following code: -

    Click image for larger version

Name:	PriceCode.png
Views:	59
Size:	10.6 KB
ID:	551538

    and add: -

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22RRP%22%20%2f%3e%20%21%3d%20%22%22">(RRP: £<actinic:variable name="RRP" />)</actinic:block>
    * immediately after
    Code:
    <p class="product-price">
    It will look like:


    * then click 'Apply'.

    * the 'block if' condition stops anything from displaying if the 'RRP' field is left empty.

    * you can add some css styling to the code to display it in a different colour to the selling price so as not to confuse customers.
    Attached Files
    Last edited by G.W.Green; 29-Jul-2019, 04:00 PM.
Working...
X