Jump to content

[Solved][How to]Get product price including taxes and specific prices


GT ITECH

Recommended Posts

How i am supposed to use this function ?

 

When i try :

$specific_price_output = null;

$price = Product::getPriceStatic($productid, true, null, 2, null, false, true, 1, false, null, null, null, $specific_price_output, true, true, null, true);

It return me Fatal Error message but nothing else :/

 

I am not in a module structure it's a simple script but i'm able to use Prestashop functions because i include these files :

include 'config/settings.inc.php';

include 'config/config.inc.php';

And i use this for displaying errors :

@ini_set('display_errors', 'on');
@error_reporting(E_ALL | E_STRICT);

I don't know what is the problem, please help me ^^

Link to comment
Share on other sites

I got the same Fatal Error message :/

 

I tried also by entering manually the product id (not storing him to a variable) like this :

Product::getPriceStatic(1453);		

But still give me the simple Fatal Error message :(

 

I really don't know where is the problem to correct it :wacko:

Link to comment
Share on other sites

  • 2 months later...

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...