KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: bharatkasodariya on May 18, 2013, 12:52:37 pm

Title: refresh singleton object data on frontend from admin
Post by: bharatkasodariya on May 18, 2013, 12:52:37 pm
I have singleton object with some product info on the front end. I want to refresh that object when product is updated from admin.  How can we achieve it.

Thanks
Bharat
Title: Re: refresh singleton object data on frontend from admin
Post by: julie on May 21, 2013, 10:40:12 am
A custom Admin engine http://www.konakart.com/docs/EngineCustomization.html (http://www.konakart.com/docs/EngineCustomization.html) allows you to add your own code whenever a product is updated.
Title: Re: refresh singleton object data on frontend from admin
Post by: bharatkasodariya on May 21, 2013, 03:19:29 pm
Thanks Julie,

Will that work? singleton object is in konakart and to refresh will give call from konakartadmin.
Title: Re: refresh singleton object data on frontend from admin
Post by: julie on May 22, 2013, 02:27:04 pm
Through the custom engine we provide a place where you can execute your own code whenever a product is edited. How you use this code to inform your singleton is really up to you. For example your singleton could periodically read a flag from a shared area such as the database.
Title: Re: refresh singleton object data on frontend from admin
Post by: bharatkasodariya on May 23, 2013, 06:38:33 am
Thanks for the quick response