[ic] creating a custom link

Gort IC icgort33 at gmail.com
Wed Dec 30 02:34:35 UTC 2015


I think that wouldn't be allowed by Interchange as it would allow anyone to
craft a discount on any product.

So I think you might have to add a cgi value to the url and then test in
the page for it and then allow the discount. Something like:

http://www.airdelights.com/order.html?mv_arg=401187&offer=401187

and then in your template have something like:

[tmp cgioffer][cgi offer][/tmp]
[if scratch cgioffer eq 401187]
[discount 401187] $s * .75 [/discount]
[/if]

(Note: [if type="cgi" term="offer" op="eq" compare="401187">  doesn't work
for me.)

You might need to check if prices in the cart are being displayed with
discount activated or adjust the price in the cart component to something
like:

[if discount [item-code]]
            Regular price <STRIKE>[item-price]</STRIKE>
            <BR>
            <b>Special price: [price code="[item-code]" discount=1]</b>

[else]
Price: <b>[price code="[item-code]"]</b>
[/else]
        [/if]








On Wed, Dec 30, 2015 at 4:56 AM, Steve Bronson <steve at airdelights.com>
wrote:

>   I have a link for adding an item to the shopping cart:
>
>
>
> http://www.airdelights.com/order.html?mv_arg=401187
>
>
>
> Is there a way to make this link add this item to the cart with a special
> price?
>
>
>
>
>
> Steve Bronson
> Air Delights, Inc.
> http://www.airdelights.com
>
> Air Delights, Inc. is a National Distributor of Plumbing Products and
> Restroom Accessories. Please visit our website at
> http://www.airdelights.com
>
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.icdevgroup.org/pipermail/interchange-users/attachments/20151230/fae9265a/attachment.html>


More information about the interchange-users mailing list