Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

Discount an item to zero?

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


danb at berganconsulting

May 22, 2008, 12:19 PM

Post #1 of 3 (102 views)
Permalink
Discount an item to zero?

I am trying to discount an item to zero (with a coupon code). The
discount tag is working fine in all cases except when I try to set the
price to zero.

Am I missing something, or can I not set a product to be free using
the discount tag?

[discount code="[scratch discount_item]" interpolate=1][calc][scratch
discount]*$q[/calc][/discount]

Thanks,
Dan

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


ic at 3edge

May 22, 2008, 2:34 PM

Post #2 of 3 (96 views)
Permalink
Re: Discount an item to zero? [In reply to]

Dan Bergan writes:

> I am trying to discount an item to zero (with a coupon code). The
> discount tag is working fine in all cases except when I try to set the
> price to zero.
>
> Am I missing something, or can I not set a product to be free using
> the discount tag?
>
> [discount code="[scratch discount_item]" interpolate=1][calc][scratch
> discount]*$q[/calc][/discount]

- Do you get any error messages in any logs?
- If you print [scratch discount_item] and [scratch discount] above the
[discount] tag, does it show the values you expect?
- Have you tried to just use Perl instead of the [calc] block?

[discount code="[scratch discount_item]"]
return $Scratch->{discount} * $q;
[/discount]

CU,

Gert

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


danb at berganconsulting

May 22, 2008, 3:03 PM

Post #3 of 3 (94 views)
Permalink
Re: Discount an item to zero? [In reply to]

On Thu, May 22, 2008 at 4:34 PM, <ic[at]3edge.com> wrote:
> Dan Bergan writes:
>
>> I am trying to discount an item to zero (with a coupon code). The
>> discount tag is working fine in all cases except when I try to set the
>> price to zero.
>>
>> Am I missing something, or can I not set a product to be free using
>> the discount tag?
>>
>> [discount code="[scratch discount_item]" interpolate=1][calc][scratch
>> discount]*$q[/calc][/discount]
>
> - Do you get any error messages in any logs?

No errors.

> - If you print [scratch discount_item] and [scratch discount] above the
> [discount] tag, does it show the values you expect?

Yes, they are correct.

> - Have you tried to just use Perl instead of the [calc] block?
>
> [discount code="[scratch discount_item]"]
> return $Scratch->{discount} * $q;
> [/discount]
>

It looks like that works! I wonder why I was using a [calc] block?!?!

Thanks, Gert!
Dan

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.