Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Change currency while viewing product refreshes to front page  (Read 4605 times)

Offline buddahboy

  • Full Member
  • ***
  • Posts: 234
  • Karma: +32/-0
    • View Profile
Change currency while viewing product refreshes to front page
« on: November 26, 2013, 10:46:39 AM »
Good Morning,

I have a few currencies listed on our site and noticed that when viewing a product and changing the currency from that product page refreshes and redirects to front page forcing the customer to return to the product he/she was looking at.  Site URL is www.VishwaGifts.com

Is there a setting that I am missing to allow for currency change and not being redirected? 

Thank you very much
Ron
AbanteCart is one hell of a shopping cart.  Donate once in a while and keep the development plus support going.  --  That's my opinion and I'm stickin' to it!

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: Change currency while viewing product refreshes to front page
« Reply #1 on: June 17, 2014, 12:54:58 PM »
Just noticed this post.

Problem related to SEO mode
Try following solution.

In file
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/blocks/currency.php

Line 62:
Code: [Select]
'href'  => $this->html->getURL($rt, $URI.'&currency='.$result['code'],true)


Replace with :

Code: [Select]
'href'  => $this->html->getSEOURL($rt, $URI.'&currency='.$result['code'],true)

Similar will be in language selector.
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

Offline buddahboy

  • Full Member
  • ***
  • Posts: 234
  • Karma: +32/-0
    • View Profile
Re: Change currency while viewing product refreshes to front page
« Reply #2 on: June 17, 2014, 05:20:09 PM »
Thank you very much!

All the best
Ron
AbanteCart is one hell of a shopping cart.  Donate once in a while and keep the development plus support going.  --  That's my opinion and I'm stickin' to it!

 

Powered by SMFPacks Social Login Mod