[ic] How to display adjusted options prices?

Interchange interchange-users@icdevgroup.org
Tue Jul 9 13:40:00 2002


Thank you for that suggestion... :)

However, all the products across the board for the size L are priced 
at an additional cost of $5.  It would be really tedious to edit 
every size of every product.

I also realized that if I select size L, at the checkout page, it 
doesn't reflect the additional $5, instead, it's just $100, which is 
incorrect  :(  What went wrong?

I also noticed that if I don't use the options table, instead, using 
the pricing table, create a new column for size L, and put in $5 for 
every product, it worked too.  However, I just couldn't get the 
select widget to display the words "Small", "Medium" and "Large".

I've changed my products table to be:

code    size    				price
aaa     S=Small, M=Medium, L=Large	100


My html codes for using the pricing table are:

<SELECT NAME="[modifier-name size]">
[loop option="[modifier-name size]" list="S, M, L"]
<OPTION> [loop-code] -- [price code="[item-code]" size="[loop-code]"]
[/loop]
</SELECT>


But I don't want to hardcode the size list like that, since some 
products do not contain all these sizes.  How can I change my code to 
get the size options from the products table?


TIA for any pointers!




On Tuesday 09 July 2002 08:15, you wrote:
>     The simple answer is to set products.price to 0 and modify
> your options.price to   S=100, M=100, L=105
> then your prices will show up the way you want.
> But this also assumes o_matrix=0 which you didn't mention.
> Plus you didn't say if you're looking for a single
> selection via a select widget. Assuming select widget
> then you should be fine, but now your base price will
> be displayed as 0 .
>
> Jon
>
> Interchange wrote:
> > In my flypage, I would like to display the adjusted Prices in the
> > Size selection box, like this:
> >
> > S - $100
> > M - $100
> > L - $105
> >
> > Instead of (what it is now):
> >
> > S
> > M
> > L - $5
> >
> > My products table contains the following:
> >
> > code    size    price
> > aaa     S, M, L 100
> >
> > My options table contains the additional cost if "L" is ordered,
> > eg,
> >
> > code    o_enable        o_value         price
> > aaa     1               S, M, L         L=+5
> >
> > My html code looks like this:
> >
> >               [if-item-data options o_enable]
> >                 [if-item-data !options o_modular]
> >                   [table-organize cols=2 table=' ' pretty=1]
> >                     [item-options td=1 label=1 bold=1 price=1]
> >                   [/table-organize]
> >                 [/if-item-data]
> >               [/if-item-data]
> >
> > This looks like a very simple problem, but I just can't seem to
> > find a solution in the archives... I must have missed out
> > something, any pointers?