Announcement

Collapse
No announcement yet.

Show discounts in filtered search results

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

    Show discounts in filtered search results

    Is it possible to display price discounts in the filtered search results?

    For example, on an item with 20% off I have a variable (discount) which will be 0.8 and want to multiply the price displayed by that variable. I have managed it ok in the product pages using the following...

    PHP Code:
    <actinic:block php="true" >

    $rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
    $discount "<actinic:variable name="discount" selectable="false" />";

    {
    echo 
    "Save an extra <actinic:variable name="discountpc" />% OFF!! <br/>";
    echo 
    "Now Only £";
    echo 
    round(("<actinic:variable name="ProductPriceRaw" selectable="false" />") * $discount) ,2);
    }

    </
    actinic:block

    #2
    What you have done in SellerDeck is using local php that runs when the html code for the page is generated.

    The search results code is generated by perl scripts on the server.

    To do what you want would require perl script modifications, involving passing a discount variable and adding some additional code that would be written to the page. Not a straightforward task.

    Comment

    Working...
    X