Shop based on credits and currecy. How to display price with credits or currency

  • Posts: 5
  • Thank you received: 0
  • Hikashop Business
7 months 5 days ago #360988

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 5
-- PHP version -- : 8.1

Hi all, I have been searching for long about this, but can't find anything related.

I have a shop (it is an intranet shop, not open to public) with two categories:

1. Prizes: it works with the points system, no prices are shown, so I have setup a new currency called "Credits" with the symbol "C" and people can spend their points (credits) ordering things from this category. I also set this C as default currency.

2. Outlet: in this category there are outlet products (ex-demo, b-stock, etc), but this works in Euros, it sould show the price in Euros.

Everything works fine, the only problem is that the products in the second category, are shown in a very ugly way, like in the product category:

-50% 425,00 C (425,00 €)

In the product page:

850,00 C () 425,00 ¢ (425,00 €)

My question is: Is there a way to show in the second category the prices only in Euros? Like

"-50% 425,00 €" and "850,00 € 425,00 €"

Thanks a lot.

Please Log in or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
7 months 5 days ago #360991

Hi,

The currency is global to the whole shop.
There is no mechanism to display the price of some products with one currency and the price of other products with another currency at the same time.
That's why, on your second listing, HikaShop automatically converts the price in euros to the main currency.

Doing what you want would require the development of a custom plugin. The plugin should:
- use the "onAfterRoute" event of Joomla to check the price of the current product being displayed, or the price of a product of the current category being displayed to force the current currency based on this price.
- use the "onAfterProductCheckQuantities" event of HikaShop to refuse adding the product in the cart, if the currency of the price of the product being added is different from the currency of the products already in the cart.
- use the "onAfterHikashopLoad" event of HikaShop to force the current currency based on the currency of the price of the products in the cart if a cart is present and we are on the frontend.
So it's possible, but not that simple. It will require several hours of development by a skilled PHP developer.

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
  • Hikashop Business
7 months 5 days ago #361001

Hi, thank you for your answer. I understand the problem. I'll try to manage it in some other way, it's not worth the effort.

Last edit: 7 months 5 days ago by maurop.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum