Jump to content

Product object error


jojo89

Recommended Posts

hi everybody, 

 

i just try to create a new php file in racing of my website and in this file i write just : 

 

require(dirname(__FILE__).'/config/config.inc.php');
 
echo Product::getPriceStatic(7);exit;
 
To get the product price, but i get an array :s 
 
something like that : 
 
Array
(
[0] => Array
(
[file] => C:\Program Files (x86)\EasyPHP\data\localweb\presta16014\classes\Product.php
[line] => 2599
[function] => displayError
[class] => ToolsCore
[type] => ::
[args] => Array
(
)

)

[1] => Array
(
[file] => C:\Program Files (x86)\EasyPHP\data\localweb\presta16014\test.php
[line] => 7
[function] => getPriceStatic
[class] => ProductCore
[type] => ::
[args] => Array
(
[0] => 7
)

)

)
 
do u have any idea ? 
 
thanks you 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...