multilanguage bug with products in an order

beholder

Avatar: beholder

2009-09-06 01:43

There is a missing functionality bug in QC 3.4 and lower, which comes from not fully implemented multilanguage functionality.
Suppose we have 2 languages in a webshop, each with similar but fundamentally different products. Some products in an order that come from one language will not display in administration well, unless that particular language is selected in administration. This is simply wrong. When administrator in this situation clicks on a product ID in a displayed order, a totally different product may be displayed.

I corrected this bug by adding another element to the db/orders_products.php ('sLanguage'). This product parameter is passed from function addToBasket() where it is taken from the current LANGUAGE constant through addOrder() to the order contents. The sLanguage parameter is then used in administration template templates/admin/orders.tpl where I add it to the product's link in block PRODUCTS_LIST:


<a href="?p=products-form&amp;iProduct=$aData[iProduct]&sLang=$aData[sLanguage]" target="_blank">$aData[iProduct]</a>


This works really well, as one would expect it. It basically changes administration language when necessary. Very nice. It of course requires a small modification of database structure, so it could probably only be added in QC version 4.0. I do recommend it though. It's just about time for v. 4.x anyway.

-------------

What this eventually comes down to is actually using QuickCart 3.x multilanguage feature as a way to have different sections (=languages) in one webshop. Only one critical element is still left missing: the ability of a customer to see in the basket all products from all languages (=sections). Currently there is a "separate basket" for each language.
That is however EASILY correctible, just modify the function generateBasket() and let it iterate the basket content for each language - one after another - adding the content to the current language. Then you just need to modify addOrder() to clear "all baskets" when an order is added. And there you go. "Single basket" in multiple languages/sections. I have actually implemented a hack like this in a 2-language webshop. IT'S PROVEN IT WORKS. Please implement it to v. 4.0, it would be so nice to have.

» Quick.Cart v3.x

treewood (OpenSolution)

Avatar: treewood

2009-09-07 18:46

thank you for bug report. Of course we will solve this problem in next version :)

deividjoy

Avatar: deividjoy

2010-01-13 20:18

Hello

I buy Quick.Cart version 3.3 (Order id 14832) and now that I've seen this post.
Could you give directions to correct this error myself?

Thanks

David Alegría

Back to top
about us | contact