View Single Post
  #2  
Old 09-22-2016, 09:23 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Pass Product Detail To Javascript

Hello,

There are no "variables". X-Cart 5 works differently. The page is made of a number of "widgets". Every widget is a PHP class that handles all the logic, and a template file that uses methods provided by the class. So, there is no single place where "variables" are defined. Instead, there are multiple classes that define methods supplying data to templates.

You should enable the webmaster mode and determine what existing widgets render the data you need. Then check the source code of these widgets and implement a similar logic in your custom widgets.

For developer's documentation please refer to the portal at http://devs.x-cart.com/
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote