[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [mv] Quantity Pricing Question-Different Approach!
Gosh, all I was wanting to know was how to addd a quantity of items to
the cart from quantity.html.
I was checking to see if the item is already in the cart. Then is
someone goes to 'Quantiry Pricing' they could make the choice to
purchase a quantity at the quantity price. Then, if they did, the cart
would be adjusted for the quantity and the quantity price. Nothing more
nothing less.
By the way, Mike, did you ever look at the Cybercash/Minivend inteface
that I developed and offered to Minivend?
I am now in the process of developing a FULL accounting system similar
to MAS90 that will interface to Minivend.
Murrah Boswell
Mike Heins wrote:
>
> Quoting OTR Comm (otrcomm@isp-systems.com):
> > Hello,
> >
> > I have a code snippet:
> >
> > [page form="
> > mv_order_item=[loop-code]
> > mv_order_quantity=4
> > mv_separate_items=0
> > mv_todo=return
> > mv_nextpage=boudicca/bags"
> > ] [loop-price 5]</A>
> >
> > and then another one:
> >
> > [page form="
> > mv_order_item=[loop-code]
> >
> > [if ordered [loop-code]]
> > [set mv_order_quantity]9[/set]
> > [else]
> > [set mv_order_quantity]10[/set]
> > [/else]
> > [/if]
> >
> > mv_separate_items=0
> > mv_todo=return
> > mv_nextpage=boudicca/bags"
> > ] [loop-price 10]</A>
> >
> > The first reference works fine, it will increase the quantity of an item
> > in my cart by 4 and use the q5 quantity price defined in pricing.asc.
> >
> > However, the second snippet does not 'set' mv_order_quantity based on
> > whether or not the item is already in the cart.
>
> I think you greatly misunderstand what [set ...] does.
>
> The tag:
>
> [set mv_order_quantity]9[/set]
>
> is simply equivalent to:
>
> [calc] $Scratch->{mv_order_quantity} = '9'; return; [/calc]
>
> Nothing more, nothing less. Nowhere is it documented that it does
> anything different.
>
> I think what you want is:
>
> [page form="
> mv_order_item=[loop-code]
> mv_order_quantity="=5"
> mv_separate_items=0
> mv_todo=return
> mv_nextpage=boudicca/bags"
> ] [loop-price 5]</A>
>
> When mv_separate_items is off, i.e. you are incrementing/adjusting
> the quantity of an item already in the cart (if any), a quantity
> with a leading "=" sign essentially says "Set the quantity to this,
> no questions asked."
>
> --
> Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
> phone +1.513.523.7621 fax 7501 <heins@akopia.com>
>
> Unix version of an Outlook-style virus:
> It works on the honor system. Please forward this message to everyone
> you know, and delete a bunch of your files at random.
>
> _______________________________________________
> Minivend-users mailing list
> Minivend-users@minivend.com
> http://www.minivend.com/mailman/listinfo/minivend-users
_______________________________________________
Minivend-users mailing list
Minivend-users@minivend.com
http://www.minivend.com/mailman/listinfo/minivend-users