[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] mv_price and CommonAdjust
Karen Gold wrote:
>Hi John,
>
>Here's how I got a price override to work on 4.8.7 for the IC admin order
>entry page.
>Mike Heins also mentioned:
>[set mv_UseModifier]mv_price[/set]
>in the html page, but I haven't got it to work, so I used UseModifier in the
>catalog.cfg.
>
>Change CommonAdjust and add UseModifier in ./catalogs/_STORE_/catalog.cfg:
>The first CommonAdjust entry needs to be "$".
>CommonAdjust $, ;:sale_price, ;:price, ==:options
>UseModifier mv_price
>
>Makesure after.cfg isn't change CommonaAdjust to something different than in
>catalog.cfg
>./catlogs/_STORE_/etc/after.cfg
>
>Restart IC if you make changes in the cfg's.
>
>./interchange/lib/UI/pages/admin/entry.html
>[item-list]
>[comment} modifier-name only works in item-list [/comment]
><TR BGCOLOR=__UI_C_INTBLOCK__>
> <TD BGCOLOR=__UI_C_INTBLOCK__ VALIGN=TOP align=center>
> <FONT SIZE="-2"><INPUT TYPE=checkbox NAME="[quantity-name]"
> onClick="this.form.action='[process-target]',
> this.form.submit()"
>
>VALUE=0>remove</FONT> [item-code]</TD>
> <TH BGCOLOR=__UI_C_INTBLOCK__ WIDTH="2"> </TH>
> <TD BGCOLOR=__UI_C_INTBLOCK__ VALIGN=TOP MARGINWIDTH=12
>MARGINHEIGHT=12>
> [page [item-code]][item-description]</A>
> [if-item-field weight]
> <SMALL>WEIGHT: [summary amount=`[item-quantity] * [item-field
>weight]`]</SMALL>
> [/if-item-field]
>
> [if-item-data options o_enable]
> <br>
> <table>
> [table-organize cols=2]
> [item-options td=1]
> [/table-organize]
> </table>
> [/if-item-data]
> </TD>
> <TD BGCOLOR=__UI_C_INTBLOCK__ VALIGN=TOP ALIGN=CENTER>
> <INPUT TYPE=text NAME="[quantity-name]" VALUE="[item-quantity]"
>SIZE=3>
>
> </TD>
> <TD BGCOLOR=__UI_C_INTBLOCK__ VALIGN=TOP ALIGN=RIGHT>
> [discount-price]
> [if discount [item-code]]
> <BR><FONT COLOR=__CONTRAST__ SIZE=-2>[L]Item is
>discounted[/L]
> [item-discount]
> </FONT>
> [/if]
> <INPUT NAME="[modifier-name mv_price]" value="[item_modifier
>mv_price]" size=12>
> </TD>
> <TH BGCOLOR=__UI_C_INTBLOCK__ WIDTH="2"> </TH>
> <TD BGCOLOR=__UI_C_INTBLOCK__ VALIGN=TOP ALIGN=RIGHT>
> [item-subtotal]
> </TD>
></TR>
><TR><TD ALIGN=CENTER COLSPAN=7><IMG SRC="clear.gif" WIDTH="1" ALT=""
>HEIGHT="1" BORDER="0"></TR>
>[/item-list]
>
>I didn't notice it at first, so I'll mentions again.
>modifier-name only works in [item-list]
>http://www.icdevgroup.org/cgi-bin/ic/docfly.html?mv_arg=ictemplates08.10
>
>
>
>--
>Karen Gold <kareng@LOADUP.COM>
>http://www.loadup.com
>
>
Thanks Karen and Ed. I think i've finally got my head around
CommonAdjust! I think i have it all working the way i want now. The only
extra bit of advice i have for anyone else in this situation is to make
sure that there's nothing Autoload-ed into every page that fiddles with
your CommonAdjust or your $Config->{PriceField}.
thanks
John