Currency switcher module, Canonical Urls redirect

  • Posts: 5
  • Thank you received: 0
9 years 2 months ago #212721

-- HikaShop version -- : Starter

Hi there,
Currency Switcher
1.How do I edit the code for the currency switcher to include country flags instead of the country currency and code.
2. I would also like the drop downs for the currencies to redirect to another domain, while retaining the currency switching functionality.
In essence, all I want to do is select a country flag from a dropdown and then redirect to a specific domain of mine e.g a.)clicking on the usa flag will redirect to mydomain.com and display currency for all products in USD
b.)clicking on the UK flag will redirect to mydomain.co.uk and display currency for all products in GBP

Canonical Url Redirection/Navigation
I have made my products to redirect to external links on click, but now I need this links to open in a new window in the browser, rather than on the same page. How do I go about this?

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 2 months ago #212734

Hi,

1. Go in the templates manager of Joomla, and create an override of the currency switcher module.
There, instead of the call to the "display" function of the $currency object, you can put your own HTML with your image flags and add some kind of redirection capability of your own.

2. Go in the menu Display>Views of HikaShop and edit the file "listing_img_title" of the view "product" via the menu Display>Views. There, simply add the target="_blank" HTML attribute to the a tags.

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

  • Posts: 5
  • Thank you received: 0
9 years 2 months ago #212808

I have been able to enable my product links to redirect to a new tab?window using the method you suggested. Thank you.
As for the customization of the currency switcher module, I have created an override in the html folder for the currency switcher module. Please could you give me more assistance/information on how to achieve what I need?
I have downloaded a sprite, with a png containing all the country flags I need to implement in my dropdown as well as a css file.

Last edit: 9 years 2 months ago by Kaos. Reason: Changes in code and understanding

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 2 months ago #212825

Hi,

We can't help further. This require to know at least some basic knowledge on PHP programming and is not only about copy/pasting 2 lines. We can give hints and help with small modifications, but this goes beyond that.
Please contact our partners or our our commercial jobs forum to find someone who can develop that for you if you don't have the skills to develop it yourself.
www.hikashop.com/home/our-partners.html

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

Time to create page: 0.058 seconds
Powered by Kunena Forum