[Skip to main content](#vessel-content)

#   obtain discount/price information for a product in an external PHP file

##

- **[diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")**
- [![diesel1984's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30999-diesel1984 "View diesel1984's Profile") Topic Author
- [ Offline](/forum/user/30999-diesel1984)

Less More

- Posts: 32
- Thank you received: 0
-
-

8 years 10 months ago [\#284191](#284191) by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")  *[obtain discount/price information for a product in an external PHP file](/forum/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#284191 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : I only obtain the product information - not the price/discount information  Hi,  How can i programmatically obtain all of the data for a product (including the discount and prices for that product) in an external php file. When i use the following code, i can obtain the product information but unfortunately i cannot obtain the price/discount information (which i really need). All i can obtain is general information about the product...  Thanks in advance")* was created by *[diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")*

-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.18
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : I only obtain the product information - not the price/discount information

Hi,

How can i programmatically obtain all of the data for a product (including the discount and prices for that product) in an external php file. When i use the following code, i can obtain the product information but unfortunately i cannot obtain the price/discount information (which i really need). All i can obtain is general information about the product...
Code:

define( '_JEXEC', 1 ); define( '_VALID_MOS', 1 ); define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../../..')); define( 'DS', DIRECTORY_SEPARATOR ); require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); $mainframe =&amp; JFactory::getApplication('site'); $mainframe-&gt;initialise(); include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'); $productClass = hikashop_get('class.product'); $product=$productClass-&gt;get(4893);

Thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTMxMzYtb2J0YWluLWRpc2NvdW50LXByaWNlLWluZm9ybWF0aW9uLWZvci1hLXByb2R1Y3QtaW4tYW4tZXh0ZXJuYWwtcGhwLWZpbGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

8 years 10 months ago [\#284197](#284197) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[obtain discount/price information for a product in an external PHP file](/forum/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#284197 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : I only obtain the product information - not the price/discount information  Hi,  How can i programmatically obtain all of the data for a product (including the discount and prices for that product) in an external php file. When i use the following code, i can obtain the product information but unfortunately i cannot obtain the price/discount information (which i really need). All i can obtain is general information about the product...  Thanks in advance")*

Hi,

You can add: Code:

$currencyClass = hikashop_get('class.currency'); $config = hikashop_config(); $ids = array($product-&gt;product_id); $currencyClass-&gt;getPrices($product, $ids, hikashop_getCurrency(), $config-&gt;get('main_currency'), hikashop_getZone(), $config-&gt;get('discount_before_tax'));

You will then have the prices in $product-&gt;prices

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTMxMzYtb2J0YWluLWRpc2NvdW50LXByaWNlLWluZm9ybWF0aW9uLWZvci1hLXByb2R1Y3QtaW4tYW4tZXh0ZXJuYWwtcGhwLWZpbGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile")
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

5 years 11 months ago -  5 years 11 months ago [\#326065](#326065) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[obtain discount/price information for a product in an external PHP file](/forum/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#326065 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : I only obtain the product information - not the price/discount information  Hi,  How can i programmatically obtain all of the data for a product (including the discount and prices for that product) in an external php file. When i use the following code, i can obtain the product information but unfortunately i cannot obtain the price/discount information (which i really need). All i can obtain is general information about the product...  Thanks in advance")*

Hello!
I tried the code and it works for tha main product. But when there are subproducts I get wrong calculation. Does this work for subproducts too? Or only for the main products?

Here is an example of price and discount of a product object Code:

[prices] =&gt; Array ( [0] =&gt; stdClass Object ( [price_id] =&gt; 186 [price_currency_id] =&gt; 1 [price_product_id] =&gt; 870 [price_value] =&gt; 69.84 [price_min_quantity] =&gt; 0 [price_access] =&gt; all [price_users] =&gt; [price_site_id] =&gt; [price_start_date] =&gt; 0 [price_end_date] =&gt; 0 [price_value_with_tax] =&gt; 69.84 [taxes_added] =&gt; 1 [taxes] =&gt; Array ( ) [price_value_without_discount] =&gt; 87.30000 [price_value_without_discount_with_tax] =&gt; 87.30000 [taxes_without_discount] =&gt; Array ( ) ) ) [discount] =&gt; stdClass Object ( [discount_id] =&gt; 6 [discount_type] =&gt; discount [discount_start] =&gt; 0 [discount_end] =&gt; 0 [discount_flat_amount] =&gt; 0.00000 [discount_percent_amount] =&gt; 20.000 [discount_minimum_order] =&gt; 0.00000 [discount_quota] =&gt; 0 [discount_used_times] =&gt; 0 [discount_code] =&gt; BLACK FRIDAY [discount_published] =&gt; 1 [discount_product_id] =&gt; [discount_category_id] =&gt; Array ( [0] =&gt; 171 [1] =&gt; 24 ) [discount_zone_id] =&gt; [discount_currency_id] =&gt; 1 [discount_category_childs] =&gt; 1 [discount_auto_load] =&gt; 0 [discount_access] =&gt; all [discount_tax_id] =&gt; 0 [discount_minimum_products] =&gt; 0 [discount_quota_per_user] =&gt; 0 [discount_coupon_nodoubling] =&gt; 0 [discount_coupon_product_only] =&gt; 0 [discount_affiliate] =&gt; -1 [discount_site_id] =&gt; [discount_user_id] =&gt; [discount_tax] =&gt; 0 [discount_shipping_percent] =&gt; 0.000 )

At the front end i have this price
[ ![Screenshot2020-11-18213138.png](/forum/attachment/51089) ](/forum/attachment/51089 "...1-18213138.png")

At the back end price of the same product
[ ![Screenshot2020-11-18213611.png](/forum/attachment/51090) ](/forum/attachment/51090 "...1-18213611.png")

Tthis data is from a variant of a product

Best Regards!

- [ ![Screenshot2020-11-18213138.png](/forum/attachment/51089) ](/forum/attachment/51089 "...1-18213138.png") [ ](/forum/attachment/51089?download=1 "...1-18213138.png")
- [ ![Screenshot2020-11-18213611.png](/forum/attachment/51090) ](/forum/attachment/51090 "...1-18213611.png") [ ](/forum/attachment/51090?download=1 "...1-18213611.png")

Last edit: 5 years 11 months ago by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile"). Reason: To add more details

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTMxMzYtb2J0YWluLWRpc2NvdW50LXByaWNlLWluZm9ybWF0aW9uLWZvci1hLXByb2R1Y3QtaW4tYW4tZXh0ZXJuYWwtcGhwLWZpbGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

5 years 11 months ago [\#326076](#326076) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[obtain discount/price information for a product in an external PHP file](/forum/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#326076 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : I only obtain the product information - not the price/discount information  Hi,  How can i programmatically obtain all of the data for a product (including the discount and prices for that product) in an external php file. When i use the following code, i can obtain the product information but unfortunately i cannot obtain the price/discount information (which i really need). All i can obtain is general information about the product...  Thanks in advance")*

Hi,

By "subproducts" I suppose that you're talking about variants, is that right ?
This code could work for some variants. It depends on how the variants and the main product is configured, and if you have discounts, taxes, etc.
This code is not complete enough to take into account all the cases.
The proper way to do it would be to load the main product and the variant data, feed them both in $ids and add the variant in the variants array of the product: $product-&gt;variants = array($variant);

Something like that: Code:

$currencyClass = hikashop_get('class.currency'); $config = hikashop_config(); $parent = $productClass-&gt;get(($product-&gt;product_parent_id); $ids = array($product-&gt;product_id, $parent-&gt;product_id); $parent-&gt;variants = array($product); $currencyClass-&gt;getPrices($parent, $ids, hikashop_getCurrency(), $config-&gt;get('main_currency'), hikashop_getZone(), $config-&gt;get('discount_before_tax'));

And then you'll get the prices of the main product in $parent-&gt;prices and the prices of the variant in $parent-&gt;variants[0]-&gt;prices and if the variant doesn't have any prices configured but the main product has prices, you need to use the prices from the parent.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTMxMzYtb2J0YWluLWRpc2NvdW50LXByaWNlLWluZm9ybWF0aW9uLWZvci1hLXByb2R1Y3QtaW4tYW4tZXh0ZXJuYWwtcGhwLWZpbGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile")
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

5 years 11 months ago [\#326116](#326116) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[obtain discount/price information for a product in an external PHP file](/forum/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#326116 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : I only obtain the product information - not the price/discount information  Hi,  How can i programmatically obtain all of the data for a product (including the discount and prices for that product) in an external php file. When i use the following code, i can obtain the product information but unfortunately i cannot obtain the price/discount information (which i really need). All i can obtain is general information about the product...  Thanks in advance")*

Hi,
By subproduct yes i mean Variants
the problem still exists . Code:

parent stdClass Object ( ... [variants] =&gt; Array ( [0] =&gt; stdClass Object ( ... [prices] =&gt; Array ( [0] =&gt; stdClass Object ( [price_id] =&gt; 186 [price_currency_id] =&gt; 1 [price_product_id] =&gt; 870 [price_value] =&gt; 69.84 [price_min_quantity] =&gt; 0 [price_access] =&gt; all [price_users] =&gt; [price_site_id] =&gt; [price_start_date] =&gt; 0 [price_end_date] =&gt; 0 [price_value_with_tax] =&gt; 69.84 [taxes_added] =&gt; 1 [taxes] =&gt; Array ( ) [price_value_without_discount] =&gt; 87.30000 [price_value_without_discount_with_tax] =&gt; 87.30000 [taxes_without_discount] =&gt; Array ( ) ) ) [discount] =&gt; stdClass Object ( [discount_id] =&gt; 6 [discount_type] =&gt; discount [discount_start] =&gt; 0 [discount_end] =&gt; 0 [discount_flat_amount] =&gt; 0.00000 [discount_percent_amount] =&gt; 20.000 [discount_minimum_order] =&gt; 0.00000 [discount_quota] =&gt; 0 [discount_used_times] =&gt; 0 [discount_code] =&gt; BLACK FRIDAY [discount_published] =&gt; 1 [discount_product_id] =&gt; [discount_category_id] =&gt; Array ( [0] =&gt; 171 [1] =&gt; 24 ) [discount_zone_id] =&gt; [discount_currency_id] =&gt; 1 [discount_category_childs] =&gt; 1 [discount_auto_load] =&gt; 0 [discount_access] =&gt; all [discount_tax_id] =&gt; 0 [discount_minimum_products] =&gt; 0 [discount_quota_per_user] =&gt; 0 [discount_coupon_nodoubling] =&gt; 0 [discount_coupon_product_only] =&gt; 0 [discount_affiliate] =&gt; -1 [discount_site_id] =&gt; [discount_user_id] =&gt; [discount_tax] =&gt; 0 [discount_shipping_percent] =&gt; 0.000 ) ) )

if you see the price_value its ok but price_value_with_tax is the same with price_value insted of 86.60
the tax amout missing 24% of the price
Thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTMxMzYtb2J0YWluLWRpc2NvdW50LXByaWNlLWluZm9ybWF0aW9uLWZvci1hLXByb2R1Y3QtaW4tYW4tZXh0ZXJuYWwtcGhwLWZpbGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

5 years 11 months ago [\#326130](#326130) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[obtain discount/price information for a product in an external PHP file](/forum/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#326130 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : I only obtain the product information - not the price/discount information  Hi,  How can i programmatically obtain all of the data for a product (including the discount and prices for that product) in an external php file. When i use the following code, i can obtain the product information but unfortunately i cannot obtain the price/discount information (which i really need). All i can obtain is general information about the product...  Thanks in advance")*

Hi,

That would indicate that the product_tax_id of the main product is not taken into account for the calculations of the taxes for the variant I suppose.
However, I'm not able to reproduce the problem on my end.
I just tried that code: Code:

$productClass = hikashop_get('class.product'); $currencyClass = hikashop_get('class.currency'); $product=$productClass-&gt;get(64); $config = hikashop_config(); $parent = $productClass-&gt;get($product-&gt;product_parent_id); $ids = array($product-&gt;product_id, $parent-&gt;product_id); $parent-&gt;variants = array($product); $currencyClass-&gt;getPrices($parent, $ids, hikashop_getCurrency(), $config-&gt;get('main_currency'), hikashop_getZone(), $config-&gt;get('discount_before_tax')); var_dump($parent);

where 64 is the id of a variant of the "star stilleto" product of the sample data you get when you install HikaShop. And I do get the taxes applied on the price of the variant: Code:

object(stdClass)#928 (70) { ["product_id"]=&gt; string(1) "2" ... ["variants"]=&gt; array(1) { [0]=&gt; object(stdClass)#1075 (69) { ["product_id"]=&gt; string(2) "64" ["product_parent_id"]=&gt; string(1) "2" ... ["prices"]=&gt; array(1) { [0]=&gt; object(stdClass)#1093 (16) { ["price_id"]=&gt; string(2) "63" ["price_currency_id"]=&gt; string(1) "1" ["price_product_id"]=&gt; string(2) "64" ["price_value"]=&gt; float(55) ["price_min_quantity"]=&gt; string(1) "0" ["price_access"]=&gt; string(3) "all" ["price_users"]=&gt; string(0) "" ["price_site_id"]=&gt; string(0) "" ["price_start_date"]=&gt; string(1) "0" ["price_end_date"]=&gt; string(1) "0" ["price_value_with_tax"]=&gt; float(60.5) ["taxes_added"]=&gt; bool(true) ["taxes"]=&gt; array(1) { ["0000_00000002"]=&gt; object(stdClass)#1098 (19) { ["taxation_id"]=&gt; string(1) "2" ["zone_namekey"]=&gt; string(0) "" ["category_namekey"]=&gt; string(11) "default_tax" ["tax_namekey"]=&gt; string(2) "10" ["taxation_published"]=&gt; string(1) "1" ["taxation_type"]=&gt; string(0) "" ["taxation_access"]=&gt; string(3) "all" ["taxation_cumulative"]=&gt; string(1) "0" ["taxation_post_code"]=&gt; string(0) "" ["taxation_date_start"]=&gt; string(1) "0" ["taxation_date_end"]=&gt; string(1) "0" ["taxation_internal_code"]=&gt; string(0) "" ["taxation_note"]=&gt; string(0) "" ["taxation_site_id"]=&gt; string(0) "" ["taxation_ordering"]=&gt; string(1) "0" ["tax_rate"]=&gt; string(7) "0.10000" ["tax_ratio"]=&gt; int(1) ["tax_amount"]=&gt; float(5.5) ["amount"]=&gt; float(55) } } ["price_value_without_discount"]=&gt; float(110) ["price_value_without_discount_with_tax"]=&gt; float(121) ["taxes_without_discount"]=&gt; array(1) { ["0000_00000002"]=&gt; object(stdClass)#1085 (19) { ["taxation_id"]=&gt; string(1) "2" ["zone_namekey"]=&gt; string(0) "" ["category_namekey"]=&gt; string(11) "default_tax" ["tax_namekey"]=&gt; string(2) "10" ["taxation_published"]=&gt; string(1) "1" ["taxation_type"]=&gt; string(0) "" ["taxation_access"]=&gt; string(3) "all" ["taxation_cumulative"]=&gt; string(1) "0" ["taxation_post_code"]=&gt; string(0) "" ["taxation_date_start"]=&gt; string(1) "0" ["taxation_date_end"]=&gt; string(1) "0" ["taxation_internal_code"]=&gt; string(0) "" ["taxation_note"]=&gt; string(0) "" ["taxation_site_id"]=&gt; string(0) "" ["taxation_ordering"]=&gt; string(1) "0" ["tax_rate"]=&gt; string(7) "0.10000" ["tax_ratio"]=&gt; int(1) ["tax_amount"]=&gt; float(11) ["amount"]=&gt; float(110) } } } } ["discount"]=&gt; object(stdClass)#1097 (29) { ["discount_id"]=&gt; string(1) "2" ["discount_type"]=&gt; string(8) "discount" ["discount_start"]=&gt; string(1) "0" ["discount_end"]=&gt; string(1) "0" ["discount_flat_amount"]=&gt; string(7) "0.00000" ["discount_percent_amount"]=&gt; string(6) "50.000" ["discount_minimum_order"]=&gt; string(7) "0.00000" ["discount_quota"]=&gt; string(1) "0" ["discount_used_times"]=&gt; string(1) "0" ["discount_code"]=&gt; string(7) "stileto" ["discount_published"]=&gt; string(1) "1" ["discount_product_id"]=&gt; array(4) { [0]=&gt; string(0) "" [1]=&gt; string(2) "64" [2]=&gt; string(2) "65" [3]=&gt; string(0) "" } ["discount_category_id"]=&gt; string(0) "" ["discount_zone_id"]=&gt; string(0) "" ["discount_currency_id"]=&gt; string(1) "1" ["discount_category_childs"]=&gt; string(1) "0" ["discount_auto_load"]=&gt; string(1) "0" ["discount_access"]=&gt; string(3) "all" ["discount_tax_id"]=&gt; string(1) "0" ["discount_minimum_products"]=&gt; string(1) "0" ["discount_quota_per_user"]=&gt; string(1) "0" ["discount_coupon_nodoubling"]=&gt; string(1) "0" ["discount_coupon_product_only"]=&gt; string(1) "0" ["discount_affiliate"]=&gt; string(2) "-1" ["discount_site_id"]=&gt; string(0) "" ["discount_user_id"]=&gt; string(0) "" ["discount_tax"]=&gt; string(1) "0" ["discount_shipping_percent"]=&gt; string(5) "0.000" ["discount_target_vendor"]=&gt; string(1) "0" } } } ["prices"]=&gt; array(1) { [0]=&gt; object(stdClass)#1090 (16) { ["price_id"]=&gt; string(3) "142" ["price_currency_id"]=&gt; string(1) "1" ["price_product_id"]=&gt; string(1) "2" ["price_value"]=&gt; float(111.555) ["price_min_quantity"]=&gt; string(1) "0" ["price_access"]=&gt; string(3) "all" ["price_users"]=&gt; string(0) "" ["price_site_id"]=&gt; string(0) "" ["price_start_date"]=&gt; string(1) "0" ["price_end_date"]=&gt; string(1) "0" ["price_value_with_tax"]=&gt; float(122.7105) ["taxes_added"]=&gt; bool(true) ["taxes"]=&gt; array(1) { ["0000_00000002"]=&gt; object(stdClass)#1099 (19) { ["taxation_id"]=&gt; string(1) "2" ["zone_namekey"]=&gt; string(0) "" ["category_namekey"]=&gt; string(11) "default_tax" ["tax_namekey"]=&gt; string(2) "10" ["taxation_published"]=&gt; string(1) "1" ["taxation_type"]=&gt; string(0) "" ["taxation_access"]=&gt; string(3) "all" ["taxation_cumulative"]=&gt; string(1) "0" ["taxation_post_code"]=&gt; string(0) "" ["taxation_date_start"]=&gt; string(1) "0" ["taxation_date_end"]=&gt; string(1) "0" ["taxation_internal_code"]=&gt; string(0) "" ["taxation_note"]=&gt; string(0) "" ["taxation_site_id"]=&gt; string(0) "" ["taxation_ordering"]=&gt; string(1) "0" ["tax_rate"]=&gt; string(7) "0.10000" ["tax_ratio"]=&gt; int(1) ["tax_amount"]=&gt; float(11.1555) ["amount"]=&gt; float(111.555) } } ["price_value_without_discount"]=&gt; float(123.95) ["price_value_without_discount_with_tax"]=&gt; float(136.345) ["taxes_without_discount"]=&gt; array(1) { ["0000_00000002"]=&gt; object(stdClass)#1094 (19) { ["taxation_id"]=&gt; string(1) "2" ["zone_namekey"]=&gt; string(0) "" ["category_namekey"]=&gt; string(11) "default_tax" ["tax_namekey"]=&gt; string(2) "10" ["taxation_published"]=&gt; string(1) "1" ["taxation_type"]=&gt; string(0) "" ["taxation_access"]=&gt; string(3) "all" ["taxation_cumulative"]=&gt; string(1) "0" ["taxation_post_code"]=&gt; string(0) "" ["taxation_date_start"]=&gt; string(1) "0" ["taxation_date_end"]=&gt; string(1) "0" ["taxation_internal_code"]=&gt; string(0) "" ["taxation_note"]=&gt; string(0) "" ["taxation_site_id"]=&gt; string(0) "" ["taxation_ordering"]=&gt; string(1) "0" ["tax_rate"]=&gt; string(7) "0.10000" ["tax_ratio"]=&gt; int(1) ["tax_amount"]=&gt; float(12.395) ["amount"]=&gt; float(123.95) } } } } ["discount"]=&gt; object(stdClass)#1096 (29) { ["discount_id"]=&gt; string(1) "4" ["discount_type"]=&gt; string(8) "discount" ["discount_start"]=&gt; string(1) "0" ["discount_end"]=&gt; string(1) "0" ["discount_flat_amount"]=&gt; string(7) "0.00000" ["discount_percent_amount"]=&gt; string(6) "10.000" ["discount_minimum_order"]=&gt; string(7) "0.00000" ["discount_quota"]=&gt; string(1) "0" ["discount_used_times"]=&gt; string(2) "12" ["discount_code"]=&gt; string(13) "test-discount" ["discount_published"]=&gt; string(1) "1" ["discount_product_id"]=&gt; string(0) "" ["discount_category_id"]=&gt; string(0) "" ["discount_zone_id"]=&gt; string(0) "" ["discount_currency_id"]=&gt; string(1) "1" ["discount_category_childs"]=&gt; string(1) "0" ["discount_auto_load"]=&gt; string(1) "0" ["discount_access"]=&gt; string(3) "all" ["discount_tax_id"]=&gt; string(1) "0" ["discount_minimum_products"]=&gt; string(1) "0" ["discount_quota_per_user"]=&gt; string(1) "0" ["discount_coupon_nodoubling"]=&gt; string(1) "0" ["discount_coupon_product_only"]=&gt; string(1) "0" ["discount_affiliate"]=&gt; string(2) "-1" ["discount_site_id"]=&gt; string(0) "" ["discount_user_id"]=&gt; string(0) "" ["discount_tax"]=&gt; string(1) "0" ["discount_shipping_percent"]=&gt; string(5) "0.000" ["discount_target_vendor"]=&gt; string(1) "0" } }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTMxMzYtb2J0YWluLWRpc2NvdW50LXByaWNlLWluZm9ybWF0aW9uLWZvci1hLXByb2R1Y3QtaW4tYW4tZXh0ZXJuYWwtcGhwLWZpbGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.098 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
