Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

products_id from within display_price method

Nick Weisser

Recommended Posts

I'm rewriting the display_price method in classes/currencies.php in order to change $products_price under certain conditions.


When products are displayed, e.g. with help of modules/new_products.php the display_price method is called for every products_id. The problem I have is that I don't know how to find out about the present products_id from within the display_price method. Even if I say

global $products_id;

, $products_id is empty.

(I have to know the products_id to formulate a select statement in order to retrieve extra information from the database).



Any hints would be really appreciated


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...