News:

Looking for documentation? Take a look on our wiki

Main Menu

Get product object in json format through Ajax

Started by balai, June 02, 2016, 14:52:59 PM

Previous topic - Next topic

balai

Is there any way to get a product object in json format, from the front-end of my site?

Studio 42

Yes, call the product model with a plugin, module using ajax(com_ajax for eg.) or use a system plugin.  but it's not really safe. Because VM product object include all details.
So best is to use own way or remove all datas to hide to users.

balai

#2
QuoteYes, call the product model with a plugin, module using ajax(com_ajax for eg.) or use a system plugin.  but it's not really safe. Because VM product object include all details.

Thanks for the tip.
More details about the com_ajax can be found here:
https://docs.joomla.org/Using_Joomla_Ajax_Interface