[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [mv] Quantity Pricing Question-Different Approach!
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. If have tested the
[if][else] conditional outside the structure and it works.
Am I using the set tag incorrectly here or is it that I can not use an
[if][else] conditional in this structure?
What I did get to work is:
[if ordered [loop-code]]
[page form="
mv_order_item=[loop-code]
mv_order_quantity=9
mv_separate_items=0
mv_todo=return
mv_nextpage=boudicca/bags"
] [loop-price 10]</A>
[else]
[page form="
mv_order_item=[loop-code]
mv_order_quantity=10
mv_separate_items=0
mv_todo=return
mv_nextpage=boudicca/bags"
] [loop-price 10]</A>
[/else]
[/if]
but this seems like a lot of redundant code to include. It would be
nice if I code just work with the mv_order_quantity variable.
Thanks again,
Murrah Boswell
OTR Comm wrote:
>
> Yeah, I think you are right. But, this being the case, what is the
> 'Quantity Pricing' for? Is it just to show someone what the price would
> be if they decided to purchase quantity?
>
> Murrah Boswell
>
> John Beima wrote:
> >
> > I think you maybe taking the wrong approach. Once the item is IN the care an
> > order tag most likely wont change the quantity...
> >
> > However if you click on the Q5 button to INITIALLY place the item in your cart
> > then it should go in with a quantity of 5...
> >
> > Or so it looks according to your code...
> >
> > John
> >
> > Quoting OTR Comm <otrcomm@isp-systems.com>:
> >
> > > Hello,
> > >
> > > I realize that this is probably a trivial question for a lot of you
> > > guys, but I am confused. I guess the answer might be someplace in the
> > > MV3 mail-archive, but I do not know where it moved to. All I can find is
> > > the Interchange archive.
> > >
> > > Anyway...,
> > >
> > > I use MV3.14.
> > >
> > > The results for my fltpage for one of my items gives:
> > >
> > > <a
> > >
> > href="http://www.artisansorb.com/cgi-bin/artisansorb/quantity?8HAQXery;boud-mama
> > -105;2338">Quantity
> > > Pricing</a>
> > >
> > > When I click on it, I get the Quantity Pricing page for this item (as
> > > expected).
> > >
> > > In quantity.html I see:
> > >
> > > <TR>
> > > <TD VALIGN=TOP>[loop-code]</TD>
> > > <TD VALIGN=TOP ALIGN=RIGHT>
> > > [order code="[loop-code]" quantity=1][loop-price 1]</A>
> > > </TD>
> > > <TD VALIGN=TOP ALIGN=RIGHT>
> > > [order code="[loop-code]" quantity=2][loop-price 2]</A>
> > > </TD>
> > > <TD VALIGN=TOP ALIGN=RIGHT>
> > > [order code="[loop-code]" quantity=5][loop-price 5]</A>
> > > </TD>
> > > <TD VALIGN=TOP ALIGN=RIGHT>
> > > [order code="[loop-code]" quantity=10][loop-price 10]</A>
> > > </TD>
> > > <TD VALIGN=TOP ALIGN=RIGHT>
> > > [order code="[loop-code]" quantity=25][loop-price
> > > 25]</A><p></TD>
> > > </TR>
> > >
> > > Now, when I click on the option for a quantity of 5, shouldn't the cart
> > > quantity for item boud-mama-105 be changed to 5 and the unit price
> > > adjusted to the q5 price that I have defined in pricing.asc (One (1)
> > > item cost $54 and q5 is set to 45) ? If so, then I have something wrong
> > > because this is not what is happening. The quantity does not change for
> > > item boud-mama-105 in my cart.
> > >
> > > If I change the quantity to 5 in the cart and recalculate, then it
> > > adjust the unit price correctly based on the q5 value in pricing.asc.
> > >
> > > Am I misunderstanding something here?
> > >
> > >
> > > _______________________________________________
> > > Minivend-users mailing list
> > > Minivend-users@minivend.com
> > > http://www.minivend.com/mailman/listinfo/minivend-users
> > >
> >
> > John Beima
> > jbeima@palb.com, support@alocalagent.com, and support@alocalchurch.com
> >
> > P.A.L.B. Systems - Phone: (780)451-1086 - Fax: (780)447-4760
> > 11639-122 Street, Edmonton, Alberta, Canada, T5M 0B6
> >
> > Affordabel Web Pages - Phone: (888)932-9990 - Fax: (256)351-7297
> > 2713B Spring Place SW, Decatur, Alabama, United States, 35603
> >
> > _______________________________________________
> > 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
_______________________________________________
Minivend-users mailing list
Minivend-users@minivend.com
http://www.minivend.com/mailman/listinfo/minivend-users