Minor Problem with “Array” in URL – can this be modified?
-
Hi,
I want to buy the premium version of this plugin, but I came across one minor problem on my site.
I integrated this plugin with my theme without modifying the code of currency switcher.
Basically, my site is a search engine and the only place the currency switcher is used on is on the search page where people search for product prices.
Currency switcher works fine, except when you use use the advance search. Currency switcher removes certain taxonomy search parameters from the URL and replaces it with “Array”, so the advanced search is no longer maintained. Example:
If the advanced search URL is
http://vapespider.com/?s=&s=limitless&price--2=&price--3=&tx_intship=0&tx_rewards=0&tx_discreet=0&ct7546[]=118&ct7547[]=123&advanced_search=yesBut when you select a currency, the URL changes to
http://vapespider.com/?s=&s=limitless&price--2=&price--3=&tx_intship=0&tx_rewards=0&tx_discreet=0&ct7546=Array&ct7547=Array&advanced_search=yes¤cy=GBPSo basically, the currency switcher removes the “[]=118” and “[]=123” and replaces them with “=Array“. This messes up the search results.
Is there a block of code I can modify or is there any thing else I can do to stop currency switcher from doing this?
The topic ‘Minor Problem with “Array” in URL – can this be modified?’ is closed to new replies.