Author Topic: How TO ADD A FUNCTION IN ps_product.php  (Read 3210 times)


  • Beginner
  • *
  • Posts: 1
How TO ADD A FUNCTION IN ps_product.php
« on: April 10, 2006, 20:14:59 pm »
can anybody help me in adding a function in ps_product.php as i have added a function product_snapshot1 same as product_snapshot and have called it from mod_featuredprod.php in modules but is not working.

Please somebody help me asap



  • Beginner
  • *
  • Posts: 5
Re: How TO ADD A FUNCTION IN ps_product.php
« Reply #1 on: July 06, 2006, 00:48:55 am »
Have you got anywhere with this?

Have a look in product_shop_details.php to see how it makes the call to the product_snapshot in ps_product.php.

Basically you will have to declare a variable in product_shop_details.php (at the begining usually), then call your function later on passing it the variable that will be required by your new function.

The new function should return data\table\etc. which will require substituting into the placeholder - that you have added into the flypage.php file - see end of the product_shop_details file where it does the substitution.

Hope it helps.