call a variable

cachousam

Avatar: cachousam

2014-02-21 16:49

I would like to know how to call a variable stored in a file as database/products.php for example,to use it in a function of calcul in a file like core/orders.php.

Thanks

» Quick.Cart v6.x

boboo

Avatar: boboo

2014-02-21 17:14

If You have the Product ID ($iProduct), then call object Products:

$oProduct=Products::getInstance();


Then call the needed data:

$fProductPurchasePrice=$oProduct->aProducts[$iProduct]['fPurchasePrice']

boboo :-)

Back to top
about us | contact