[ic] Bug in shipping lookup

Grant emailgrant at gmail.com
Fri Dec 16 21:00:13 UTC 2011

>> I've noticed that when the shipping cost is based on price, the
>> shipping tag determines that cost based on the price field in the
>> products table.  Instead, I think this should be done based on the
>> field specified by $Config->{PriceField}.  Should I file a bug?
> No, this is not a bug. From shipping docs (old but still the best docs
> available for shipping):
> http://www.icdevgroup.org/interchange-doc-5.2.0/frames/icdatabase_43.html
>    A valid database field (column) name as main criterion will cause
> the number of items in the shopping cart to be multiplied by the value
> of the field for each item to obtain the accumulated criteria. If the
> table is not supplied, defaults to the first ProductFiles table.
> So it's looking at the "price" field in the products database because
> you explicitly told it to when you specified "price" for the criteria.

Got it, thank you.

I'd like to be able to base the "accumulated criteria" calculation on
one of two fields depending on the value of a particular variable in a
user's session.  Can I change the main criterion on the fly?

- Grant

More information about the interchange-users mailing list