TomatoCart

126540 Downloads
313 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?

[Solved - Bug - Frontend]Cart box glitch when changing languages
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: [Solved - Bug - Frontend]Cart box glitch when changing languages
#19319
[Solved - Bug - Frontend]Cart box glitch when changing languages 11 Months ago Karma: 20
Hello,
thats me again

I have noticed, that Cart box have small glitch when you are changing languages. For example:

You choice language A to view website,
You Add to cart some product,
Then switch to Language B.

You will see text in that Cart box not changed, i mean you will see text written in Language A, not B as should be after change.
Gusis
Platinum Boarder
Posts: 475
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/07/09 00:48 By jack.yin.
The administrator has disabled public write access.
 
#19897
Re: Cart box glitch when changing languages 10 Months, 2 Weeks ago Karma: 20
I still were not able to come to this bug check, but maybe anyone have already found the place which need to be upgraded?
Gusis
Platinum Boarder
Posts: 475
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#19907
Re: Cart box glitch when changing languages 10 Months, 1 Week ago Karma: 50
Hi Gusis,

We have tested the section according to your report. There is the issue you metioned above. We will find the solution for this problem.

Thanks for your testing and report.
jack.yin
Jack Yin
Team Member
Posts: 2330
graph
User Offline Click here to see the profile of this user
Gender: Male support@tomatocart.com
---------------------

Jack Yin

Please help us to spread TomatoCart and tell people that you love TomatoCart!

If you are satisfied with TomatoCart, please follow us at @  
Google+
If you find this thread is useful you can share it @  



To keep updating TomatoCart status in future, Like our Facebook, Google+, LinkedIn page or Follow us on Twitter.

.Facebook: www.facebook.com/pages/TomatoCart/241732152589007
.Google+: plus.google.com/109588253708268031594?prsrc=3
.Linkedin: www.linkedin.com/groups?home=&gid=31...8&trk=anet_ug_hm
.Twitter: twitter.com/tomatocart
The administrator has disabled public write access.
 
#19910
Re:[Solved - Bug - Frontend]Cart box glitch when changing languages 10 Months, 1 Week ago Karma: 50
Hi gusis,

This issue has been fixed. You could follow the following solution to resolve it:

#1 Go to includes/classes/language.php and replace the following code:

Code:


if ((isset($_SESSION['language']) === false) || (isset($_SESSION['language']) && ($_SESSION['language'] != $this->_code))) {
        $_SESSION['language'] = $this->_code;
                
      }



With:

Code:


 if ((isset($_SESSION['language']) === false) || (isset($_SESSION['language']) && ($_SESSION['language'] != $this->_code))) {
        $_SESSION['language'] = $this->_code;
        
        $_SESSION['language_change'] = true;
      }



# Go to includes/modules/jsons/ajax_shopping_cart.php and find the _getShoppingCart method. Then add the following after the line - global $osC_ShoppingCart, $osC_Currencies, $osC_Language;

Code:


if (isset($_SESSION['language_change']) && ($_SESSION['language_change']== true)) {
        $osC_ShoppingCart->reset();
        $osC_ShoppingCart->synchronizeWithDatabase();
        
        unset($_SESSION['language_change']);
      }



Done.

You could also download the package to fix it from www.tomatocart.com/downloads/bugs-packag...142-cartbox-bug.html

Thanks for your report.
jack.yin
Jack Yin
Team Member
Posts: 2330
graph
User Offline Click here to see the profile of this user
Gender: Male support@tomatocart.com
Last Edit: 2012/07/09 01:08 By jack.yin.
---------------------

Jack Yin

Please help us to spread TomatoCart and tell people that you love TomatoCart!




To keep updating TomatoCart status in future, Like our Facebook, Google+, LinkedIn page or Follow us on Twitter.

.Facebook: www.facebook.com/pages/TomatoCart/241732152589007
.Google+: plus.google.com/109588253708268031594?prsrc=3
.Linkedin: www.linkedin.com/groups?home=&gid=31...8&trk=anet_ug_hm
.Twitter: twitter.com/tomatocart
The administrator has disabled public write access.
 
#19913
Re:[Solved - Bug - Frontend]Cart box glitch when changing languages 10 Months, 1 Week ago Karma: 20
Hi, Jack,
this fix almost do all job, just 1 small glitch. If user is not loged, then synchronizeWithDatabase will return false.
Gusis
Platinum Boarder
Posts: 475
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/07/09 03:58 By Gusis.
The administrator has disabled public write access.
 
#19914
Re:[Solved - Bug - Frontend]Cart box glitch when changing languages 10 Months, 1 Week ago Karma: 50
Hi Gusis,

Okay. I will consider how to improve it.

Thanks for your testing.
jack.yin
Jack Yin
Team Member
Posts: 2330
graph
User Offline Click here to see the profile of this user
Gender: Male support@tomatocart.com
---------------------

Jack Yin

Please help us to spread TomatoCart and tell people that you love TomatoCart!




To keep updating TomatoCart status in future, Like our Facebook, Google+, LinkedIn page or Follow us on Twitter.

.Facebook: www.facebook.com/pages/TomatoCart/241732152589007
.Google+: plus.google.com/109588253708268031594?prsrc=3
.Linkedin: www.linkedin.com/groups?home=&gid=31...8&trk=anet_ug_hm
.Twitter: twitter.com/tomatocart
The administrator has disabled public write access.
 
Go to top Page: 123

Latest Blog Post

TomatoCart v1.1.7 to v1.1.8 Upgrade Guide!

The upgrade guide is a step-by-step tutorial to help users to upgrade TomatoCart v1.1.7 to v1.1.8. If you have not yet updated to v1.1.7, please review its upgrade guide before applying these changes. [...]

By TomatoCart | august 21, 2012

contact_us

info@tomatocart.com
partner@tomatocart.com
Facebook Google+ Linkedin Twitter

Newsletter Subscription