Author Topic

Claudia Kosny

Thursday 01 March 2007 7:33:44 am

Comment24161

Hi there

I don't think that the wrap operator will help much. It might be possible to use it to display the price from a remote table in the template (although even then I don't not know how to do this with the wrap operator, unless kracker does not mean the same one I do).
But displaying the price in the template is not enough. You would also need to adapt the way the VAT is computed (as it needs to be based on your external price) and the way the basket works (as it fetches all prices on each basket update from the database again).

So I would recommend krackers second solution - it is fairly easy to do, reliable and if you run it at night, the run time of the script does not matter to much.
If you should need real time sync between your external table and the prices I would have a look at the ezpricetype::objectAttributeContent. Instead of fetching the data_float attribute you could fetch the price from your external db. Please note that I don't have the slightest clue whether this is feasible....

Good luck

Claudia