A simple E-commerce problem

Author Message

PaoloMellerio kk

Saturday 20 November 2004 1:28:16 am

Hi,
one of my customer wants to use his Ez site to sell some products; the particularity is that products are "unique pieces" and so when they are sold they must be not available on site anymore. The question is: is there a way to use the template <b>confirmorder.tpl</b> to change the value of an attribute of class product (<b>product available - checkbox</b>) so that when I come back from Paypal(integration with paypal is already working) site with a valid transition, the template changes the value of checkbox "product available" from <i>YES</i> to <i>NO</i>: in this way the product wouldn't be available for the Ecommerce in the exact moment in which is sold.
Any idea?
Txk in advice.

Paolo Mellerio - Clikka!com - http://www.clikka.com/

Paolo Mellerio
http://www.clikka.com

Eirik Alfstad Johansen

Saturday 20 November 2004 2:56:58 am

Hi Paolo,

I don't think you would be able to do this using the confirmorder template. Hoever, you could create a new eventtype and run it as a part of a workflow when the order has been confirmed.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Balazs Halasy

Sunday 21 November 2004 7:15:13 am

Yeah, Eirik is right - you will not be able to do this directly from the template, but a simple/short workflow even should take care of it. Just create a new event and make it do what you want (set the attribute, republish the thing, etc.). and insert it in the right place of the workflow chain. Good luck!

B.

PaoloMellerio kk

Tuesday 23 November 2004 12:47:07 am

Thanks to Eirik and thanks to Balazs.

I hoped the problem could have been solved without the need of programming a workflow event (my knowledge in PHP programming is unsufficient to do that...).
But if there is no other solution, I ask to Erik and Balazs (or someone other) if are available in the Documentation or in the Contribution some examples useful to my needs...

Thanks a lot again.

Paolo Mellerio - Clikka!com - http://www.clikka.com

Paolo Mellerio
http://www.clikka.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.