Yes it is possible. Read this: http://opensolution.org/Quick.Cart/docs/?id=instruction#languages_management
And change this: <a href="?sLang=pl">polski</a> <a href="?sLang=en">english</a> to: <a href="?sLang=pl">PUT HERE IMAGE CODEi</a> <a href="?sLang=en">PUT HERE IMAGE CODE</a>
Yes Cgan, that is, in the new versions of QC. 3dfx, I suggest an upgrade to 3.4. Or we have to do it the hard way.
3dfx
2009-12-18 23:32
Thank you very much for your reply! Unfortunately I really don't want to mess with the site any more - at last everything is up and running smoothly... Is the "hard" way really hard?
This solution is part of my checkUpdate mod, but since there is now language parameter enabled in the newer versions of QC, I am releasing it now as a free solution:
1. Change code: $aData[sLinkName] to: $aData[sLinkName]&sLang=$config[language] in following template files: templates/menu2.tpl (block LIST) templates/menu3.tpl (block LIST) templates/menu4.tpl (block LIST) templates/menu_X.tpl (only if you use EasyNavigation plugin, edit block LIST) templates/orders_basket.tpl (block BASKET_LIST) templates/orders_form.tpl (block ORDER_PRODUCTS_LIST) templates/pages_default.tpl (blocks SUBPAGES_LIST_1, SUBPAGES_LIST_2, PRODUCTS_LIST, PRODUCTS_IMAGE) if using plugin RandomProduct also templates/container.tpl (block RANDOM_PRODUCT) and perhaps also in templates for emails to admin and customer
2. modify this line in core/pages.php: $this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'">'.$this->aPage s[$this->aPagesParents[$iPage]]['sName'].'</a>'; to this: $this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'&sLang='.$GLOBALS[' config']['language'].'">'.$this->aPages[$this->aPagesParents[$iPage]]['sName'].'</a>';
3. modify this line in core/products.php: $sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'">'.$oPage->aPages[$iPage]['sName'].'< ;/a>'; to this: $sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'&sLang='.$GLOBALS['config']['language'].'" >'.$oPage->aPages[$iPage]['sName'].'</a>';
1. Change code: $aData[sLinkName] to: $aData[sLinkName]&sLang=$config[language] in following template files: templates/menu2.tpl (block LIST) templates/menu3.tpl (block LIST) templates/menu4.tpl (block LIST) templates/menu_X.tpl (only if you use EasyNavigation plugin, edit block LIST) templates/orders_basket.tpl (block BASKET_LIST) templates/orders_form.tpl (block ORDER_PRODUCTS_LIST) templates/pages_default.tpl (blocks SUBPAGES_LIST_1, SUBPAGES_LIST_2, PRODUCTS_LIST, PRODUCTS_IMAGE) if using plugin RandomProduct also templates/container.tpl (block RANDOM_PRODUCT) and perhaps also in templates for emails to admin and customer
2. modify this line in core/pages.php: $this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'">'.$this->aPage s[$this->aPagesParents[$iPage]]['sName'].'</a>'; to this: $this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'&sLang='.$GLOBALS[' config']['language'].'">'.$this->aPages[$this->aPagesParents[$iPage]]['sName'].'</a>';<b r />
3. modify this line in core/products.php: $sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'">'.$oPage->aPages[$iPage]['sName'].'< ;/a>'; to this: $sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'&sLang='.$GLOBALS['config']['language'].'" >'.$oPage->aPages[$iPage]['sName'].'</a>';
weird, forum fucks up my code, but it the upper code should be more readable than the one added later. Just remove the unnecessary ; in the first code line of the step #3.
3dfx
2009-12-22 07:48
Once again - thank you a lot - I'll try this today and share the results :)
3dfx
2009-12-22 10:15
OK - everything seems to work perfect - I only replaced
Hello, I want to add 3rd language, but not only in the user area, but also in administration. I created db files needed in their language, but it went into administration and then change my write this:
Fatal error: Call to undefined function de_pages() in D:\xampp\htdocs\mag\mag\core\pages.php on line 299
version is 3.5. tell me how to fix it
embaka
2010-02-01 16:13
indeed in part as a user adds another language shows the same Fatal error: Call to undefined function de_pages () in D: \ xampp \ htdocs \ mag \ mag \ core \ pages.php on line 299