My SellerDeck Account | Newsletter | Free Trial

Community and Knowledge Base

  #1  
Old 09-Jul-2017, 12:46 PM
MDN's Avatar
MDN MDN is offline
Registered User
Join Date: Jun 2010
Full Name: Lee Phillips
Posts: 115
Thanks: 26
Thanked 20 Times in 14 Posts
Automatically create Sales Page with Discount Trigger

Hi All,

Not sure if this is possible, v16.03 Using filtrering pages can be created on the fly with a variable, is there a way of taking this further by automatically pulling in products if the discount goes over a certain percentage, I currently use the following code to work out the saving:

Code:
<actinic:block php="true" selectable="false">$rrp = <actinic:variable name="RRP" selectable="false" />;
				$rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
				// only display is we have an RRP and there's a saving to show
				if ( ($rrp != 0) && ($rrp > $rawprice) )
					{
					$savepercent = round((($rrp - $rawprice) / $rrp) * 100);
					echo "save $savepercent%";
					}
			</actinic:block>
I think its probably a big ask but someone may have a solution, any help always greatly appreciated.
__________________
Many Thanks
Lee
www.mdnsupplies.co.uk
www.hookandloopfasteners.co.uk
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.