Announcement

Collapse
No announcement yet.

Display Trade prices for information next to retail price

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

    Display Trade prices for information next to retail price

    How may I Display Trade prices for information next to retail price?

    Client wants retail customers to see the savings if they register for an account

    I cannot get the 'Online Tax Exclusive Price' layout to display correctly in the product layout.

    Thank you
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    OK here is my clumsy php solution, yet to be styled. Polishing would be much appreciated...
    (Note: UK Retail x.625 / UK Trade x.6)

    Placed within <span class="product-price"> of standard tax exclusive price...*

    Code:
    <actinic:block php="true">
    $tep = <actinic:variable encoding="perl" name="TaxExclusivePrice" name="TaxExclusivePriceRaw" selectable="false" />;
    $yt = .6;
    $yr = .625;
    
    echo "<div>Trade Price £";
    echo number_format($tep * $yt, 2, '.', ' ');
    echo "</div><div>";
    echo "Retail Price £";
    echo number_format($tep * $yr, 2, '.', ' ');
    echo "</div>";
    </actinic:block>
    Click image for larger version  Name:	tradenretails.jpg Views:	0 Size:	8.9 KB ID:	555551
    * Note - it can go anywhere in the product layout. Wrap it in <actinic:notinb2b></actinic:notinb2b> to only show when not logged in.
    Last edited by graphicz; 02-Sep-2022, 09:37 AM. Reason: Added note.
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    Comment

    Working...
    X