[ic] not working: $Config->{PriceField} = 'other_price';

Grant emailgrant at gmail.com
Thu Dec 17 21:05:37 UTC 2009


>> I'm trying to change prices on the fly like this:
>>
>> [fly-list code=sku1]
>>    [perl no_return=1]
>>       $Config->{PriceField} = 'other_price';
>>    [/perl]
>>    [item-price]
>> [/fly-list]
>>
>> But the change isn't being reflected in [item-price].  Does anyone
>> know what could be wrong?
>
> Can only imagine that it has to do with parsing-order ...
> Changing to:
> [perl no_return=1]
>   $Config->{PriceField} = 'other_price';
> [/perl]
> [fly-list code=sku1]
>   [item-price]
> [/fly-list]
>
> does not help either I suppose?

You aced it Gert!  Moving the perl block outside of fly-list fixed it.
 Setting it in an autoload doesn't work, so the default PriceField
must be set after the autoload.

Thanks!

- Grant



More information about the interchange-users mailing list