The Realtime® Technology on your Virtuemart e-commerce website
On our previous posts, we talked about the importance of having realtime in your Content Managment System (CMS) and we showed you the Joomla! Realtime® Extension.
But a CMS is not only a way to easily update your content pages. Due to an infitite number of plugins and extensions, you can grow to a much bigger website and turn it into a
community, auction, online real state agency or an on-line shop.
Since we already started our work with the Joomla! Content Managment System, we chose the most popular e-commerce extension for it, the Virtuemart Shopping Cart Software. And that's what we are going to talk today. The Realtime® Extension for Virtuemart.
The goal of our extension is to update the category list content everytime a new product is inserted in the backoffice, update the product details in the category list, update the product info in the product detail view, warn visitors that there's a new product in the store. All of this without the need for a refresh on the visitors browser.
How does it work?
Virtuemart doesn't allow "OnSave" events. So we must add some xRTML on the save( ) function, on the administrator/components/com_virtuemart/controllers/product.php file. You can find our product.php file in the download section.
Insert your ORTC credentials.
The next step is to install the mod_realtime_virtuemart.zip file, on your Joomla! backoffice. Just access Extensions > Extension Manager and upload the file.
We now publish the module on a loadable position in our template, on the pages that we want and insert our ORTC credentials on the Basic options sections.
For updating the category product list and enable Toast messages, we have to insert the HTML structute for items and style the Toast message.
We are now ready to use Realtime® updates on our on-line store.
Let's see how it works:
Here we have our category list.
Here we have our category list when we update it.
And that's it! Easy isn't it? We surely think so.
Don't forget our support forum in http://groups.google.com/group/xrtml.