[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] CommonAdjust 3.14->4.03 woes and hints
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting cfm@maine.com (cfm@maine.com):
>
> Re CommonAdjust and mv3.14 -> 4.03 conversion:
>
> I got beat up pretty badly today converting a catalog to 4.03
> because of my confusion about CommonAdjust. Maybe this will help
> someone else.
>
> --
>
> This worked fine with a bit of tweaking to tag_calc in 3.14 catalogs:
>
> CommonAdjust &{Vend::CFM::group_price();} , ;specials:price:, ;products:price:, &{MV::ClientPricing::bulk();}
>
> Now in 4.03, the CommonAdjust string does not come into play at all
> because of this in Data.pm::item_price
>
> $price = database_field($base, $item->{code}, $Vend::Cfg->{PriceField})
> if $Vend::Cfg->{PriceField};
> $price = chain_cost($item,$price || $Vend::Cfg->{CommonAdjust});
>
> When the item appears in chain_cost it has a price so chain_cost
> returns immediately.
>
> sub chain_cost {
> my ($item, $raw) = @_;
> ::logGlobal("Starting chain_cost ($item,$raw)");
>
> return $raw if $raw =~ /^[\d.]*$/;
>
> The implication is that one must null or set to zero the price
> to use the vanilla commonadjust string. That didn't make any sense to
> me on the face of it, since one has to start with some price somewhere.
Thus has CommonAdjust always worked, even in MV3.xx. It allows you to set
different CommonAdjust strings for different products, among other things.
--
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.8220 fax 7501 <heins@akopia.com>
I don't buy from direct telephone or email marketers. This makes it
hard for me to find a phone company. ;>
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list