Hi Terry,

Unless you go with the idea of a cluster, I think the only solution will be to 
separate the data that is published (activated) from the data that is generated 
on the front-end.

In other words, store the number of sold products elsewhere, for example in 
their own subtree in the data module. In this way, when a product is activated, 
you won't overwrite the data generated on the public node.

Another good option for a shop (in my opinion) is to use an external database 
to store things like the stock-level. In this way you also bypass the 
activation issues entirely.

Regards from Vienna,

Richard 


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Terry Roberts (via Magnolia Forums)
Gesendet: Donnerstag, 04. Oktober 2012 13:26
An: Magnolia User List
Betreff: [magnolia-user] Re: synchronizing data

An alternative way that I am thinking about is to have two attributes: quantity 
and quantityAdjustment When the dialog for product is opened quantityAdjustment 
is the only one visible and you can enter a positive or negative number. When 
you publish you have some listener or observer on the publish stage (what is 
the hook I should use here?) that will use the quantityAdjustment to increase 
or decrease quantity. 
Does that sound feasible to you ?

--
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=fe931336-09a1-4e66-955c-c34a8da692f8


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to