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

#   Using "points" (with no cash value)

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

12 years 11 months ago -  12 years 11 months ago [\#133375](#133375) by [andylinde](/forum/user/28325-andylinde "View andylinde's Profile")  *[Using "points" (with no cash value)](/forum/29-payment-methods/863781-using-points-with-no-cash-value#133375 "Hello,  I'm setting up my store to use 3 kinds of products: - products with a price (in USD) - free products - products that &quot;cost&quot; points (which have no cash value)  My shop is set up to use USD as the main currency. This also works for free products. However, I'm running into 2 issues with products in the third category: - Product &quot;prices&quot; are displayed like &quot;$0.00 (5 Points) each&quot;. I'd prefer to have the products displayed as &quot;5 Points each&quot;. - Recently, the page shows the following error on load. While it's an error that makes sense, I think it's only come up after upgrading Joomla to 3.2 (though I can't confirm that is the cause, I do know that it was not showing that error earlier). It seems to display it once for each product in the current category.  Is there a way to only display these products in Points (not USD)?  -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2")* was created by *[andylinde](/forum/user/28325-andylinde "View andylinde's Profile")*

Hello,

I'm setting up my store to use 3 kinds of products:
- products with a price (in USD)
- free products
- products that "cost" points (which have no cash value)

My shop is set up to use USD as the main currency. This also works for free products. However, I'm running into 2 issues with products in the third category:
- Product "prices" are displayed like "$0.00 (5 Points) each". I'd prefer to have the products displayed as "5 Points each".
- Recently, the page shows the following error on load. While it's an error that makes sense, I think it's only come up after upgrading Joomla to 3.2 (though I can't confirm that is the cause, I do know that it was not showing that error earlier). It seems to display it once for each product in the current category. Code:

Warning: Division by zero in /var/www/vhosts/[redacted]/administrator/components/com_hikashop/classes/currency.php on line 734

Is there a way to *only* display these products in Points (not USD)?

-- HikaShop version -- : Business 2.2.2
-- Joomla version -- : 3.2.0
-- PHP version -- : 5.3.2

Last edit: 12 years 11 months ago by [andylinde](/forum/user/28325-andylinde "View andylinde's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 11 months ago [\#133493](#133493) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Using "points" (with no cash value)](/forum/29-payment-methods/863781-using-points-with-no-cash-value#133493 "Hello,  I'm setting up my store to use 3 kinds of products: - products with a price (in USD) - free products - products that &quot;cost&quot; points (which have no cash value)  My shop is set up to use USD as the main currency. This also works for free products. However, I'm running into 2 issues with products in the third category: - Product &quot;prices&quot; are displayed like &quot;$0.00 (5 Points) each&quot;. I'd prefer to have the products displayed as &quot;5 Points each&quot;. - Recently, the page shows the following error on load. While it's an error that makes sense, I think it's only come up after upgrading Joomla to 3.2 (though I can't confirm that is the cause, I do know that it was not showing that error earlier). It seems to display it once for each product in the current category.  Is there a way to only display these products in Points (not USD)?  -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2")*

Hi,

In my HikaShop 2.2.2 package, line 734 is: Code:

$prices[$k2]-&gt;taxes[$k]-&gt;tax_amount= $prices[$k2]-&gt;taxes[$k]-&gt;tax_amount/floatval($srcCurrency-&gt;currency_rate);

So it should means that your currency rate is "0".
But I see a division by the currency rate just 2 lines before. So it looks strange.
What is your line 734 ?

How did you configured your HikaShop store to have such kind of system ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

12 years 11 months ago -  12 years 11 months ago [\#133592](#133592) by [andylinde](/forum/user/28325-andylinde "View andylinde's Profile")  Replied by *[andylinde](/forum/user/28325-andylinde "View andylinde's Profile")* on topic *[Using "points" (with no cash value)](/forum/29-payment-methods/863781-using-points-with-no-cash-value#133592 "Hello,  I'm setting up my store to use 3 kinds of products: - products with a price (in USD) - free products - products that &quot;cost&quot; points (which have no cash value)  My shop is set up to use USD as the main currency. This also works for free products. However, I'm running into 2 issues with products in the third category: - Product &quot;prices&quot; are displayed like &quot;$0.00 (5 Points) each&quot;. I'd prefer to have the products displayed as &quot;5 Points each&quot;. - Recently, the page shows the following error on load. While it's an error that makes sense, I think it's only come up after upgrading Joomla to 3.2 (though I can't confirm that is the cause, I do know that it was not showing that error earlier). It seems to display it once for each product in the current category.  Is there a way to only display these products in Points (not USD)?  -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2")*

My line 734 is the same as yours: Code:

$prices[$k2]-&gt;taxes[$k]-&gt;tax_amount= $prices[$k2]-&gt;taxes[$k]-&gt;tax_amount/floatval($srcCurrency-&gt;currency_rate);

I haven't done any overrides for that file.

I only have the 2 currencies enabled: USD and Points (which is a custom currency). I have set the individual items as x points, and then let the system take care of the rest. Under system &gt; configuration &gt; currency, I have the main currency set as USD.

Thank you!

Last edit: 12 years 11 months ago by [andylinde](/forum/user/28325-andylinde "View andylinde's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 11 months ago [\#133596](#133596) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Using "points" (with no cash value)](/forum/29-payment-methods/863781-using-points-with-no-cash-value#133596 "Hello,  I'm setting up my store to use 3 kinds of products: - products with a price (in USD) - free products - products that &quot;cost&quot; points (which have no cash value)  My shop is set up to use USD as the main currency. This also works for free products. However, I'm running into 2 issues with products in the third category: - Product &quot;prices&quot; are displayed like &quot;$0.00 (5 Points) each&quot;. I'd prefer to have the products displayed as &quot;5 Points each&quot;. - Recently, the page shows the following error on load. While it's an error that makes sense, I think it's only come up after upgrading Joomla to 3.2 (though I can't confirm that is the cause, I do know that it was not showing that error earlier). It seems to display it once for each product in the current category.  Is there a way to only display these products in Points (not USD)?  -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2")*

Hi,

So it looks like your currency rate is set to "0", you have to change it.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

12 years 11 months ago -  12 years 11 months ago [\#133627](#133627) by [andylinde](/forum/user/28325-andylinde "View andylinde's Profile")  Replied by *[andylinde](/forum/user/28325-andylinde "View andylinde's Profile")* on topic *[Using "points" (with no cash value)](/forum/29-payment-methods/863781-using-points-with-no-cash-value#133627 "Hello,  I'm setting up my store to use 3 kinds of products: - products with a price (in USD) - free products - products that &quot;cost&quot; points (which have no cash value)  My shop is set up to use USD as the main currency. This also works for free products. However, I'm running into 2 issues with products in the third category: - Product &quot;prices&quot; are displayed like &quot;$0.00 (5 Points) each&quot;. I'd prefer to have the products displayed as &quot;5 Points each&quot;. - Recently, the page shows the following error on load. While it's an error that makes sense, I think it's only come up after upgrading Joomla to 3.2 (though I can't confirm that is the cause, I do know that it was not showing that error earlier). It seems to display it once for each product in the current category.  Is there a way to only display these products in Points (not USD)?  -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2")*

I'm sorry; I'm not sure I understand. It seems like you are saying to change my currency rate inside of HikaShop to something other than 0. Doing that does get rid of the divide by zero error, but that doesn't give me a way to have these items display in only the points currency--it instead shows an item as (for example) $5.00 (5 Points).

Is there something that I should change in currency.php?

Last edit: 12 years 11 months ago by [andylinde](/forum/user/28325-andylinde "View andylinde's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 11 months ago [\#133678](#133678) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Using "points" (with no cash value)](/forum/29-payment-methods/863781-using-points-with-no-cash-value#133678 "Hello,  I'm setting up my store to use 3 kinds of products: - products with a price (in USD) - free products - products that &quot;cost&quot; points (which have no cash value)  My shop is set up to use USD as the main currency. This also works for free products. However, I'm running into 2 issues with products in the third category: - Product &quot;prices&quot; are displayed like &quot;$0.00 (5 Points) each&quot;. I'd prefer to have the products displayed as &quot;5 Points each&quot;. - Recently, the page shows the following error on load. While it's an error that makes sense, I think it's only come up after upgrading Joomla to 3.2 (though I can't confirm that is the cause, I do know that it was not showing that error earlier). It seems to display it once for each product in the current category.  Is there a way to only display these products in Points (not USD)?  -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2")*

Hi,

It is not the good way to do it.
1 - HikaShop display one currency at the time.
2 - So you can't use two currencies in the same time (see point 1).
3 - A rate 0 is not authorized in HikaShop, when a product have a price for a currency, you have to be able to show this price in another currency (because you see one currency at the time).
4 - Points is not a real currency so it's not compatible with most of payment plugins.
5 - If you have one product in USD and one product in Points, one of them will be free for the other (see point 4)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjM3ODEtdXNpbmctcG9pbnRzLXdpdGgtbm8tY2FzaC12YWx1ZT90bXBsPW1hcmtkb3du) 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.121 seconds

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

[](#top)
