9 replies [Last post]
manos_ws's picture
Offline
Joined: 01/28/2009
Juice: 3

• I have a drupal 6.9 ubercart 6.x-2.0-beta3 website.

• I use cck and views for the product listing. We have added extra fields on the product content type (tech description, product files, and links) and we are creating products of the cck’s product content type.

• We want our site to be multilingual, so we are using i18n internationalization module to translate the drupal/ubercart interface, and the product nodes in drupal’s product content. The website translation works for each language the product node page is showing accordingly with the user’s language selection
.

But the problem is that when I translate the product node in cck , a second product is created in the ubercart product database(Administer->store administration-> products -> view products), and the cart gets the translated instance of the ubercart’s product in the cart. Each translated instance has each own sku and price fields so as you guess the stock manager doesn’t works.

Do I miss something on how is the correct procedure for translating a product page in drupal/ubercart ?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6841
Re: Translating product content node creates second ubercart pro

I think that's the intended behavior of i18n, and we just haven't figured out what to do about it yet. I would call them incompatible design decisions, to make each product a node, and each translation a node. One of these will have to go through major changes for translatable products to be easier. Fortunately, there are major changes for Ubercart products being planned, but they are a ways down the road yet.

Docc's picture
Offline
Getting busy with the Ubercode.
Joined: 07/03/2008
Juice: 168
Problem

This is a major problem for me aswell. For example. A customer adds a product with Dutch language selected.
Down the road the customer changes to the english language. But the cart node remains the Dutch node.

Anyone have any ideas on this? Im thinking of creating a module that checks the cart on a language change. And then replace the node with the current selected language node.

Ideas are welcome as im going to workout this idea.

CpILL's picture
Offline
Early adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/08/2007
Juice: 549
Re: Re: Translating product content node creates second ubercart

The answer for the stock tracking is not to track stock based on Node ID but on SKU.

Uberdevelopment www.tsd.net.au/blog

Bensbury's picture
Offline
Joined: 04/06/2009
Juice: 9
My problem too

I think this is the answer to my problem......but not a nice happy ending.

Such a feature is really important to any online shop wanting to be on the international market but I can see the trickiness in how to handle it.

Docc's picture
Offline
Getting busy with the Ubercode.
Joined: 07/03/2008
Juice: 168
Re: Translating product content node creates second ubercart pro

Yeah multilanguage still sucks for ubercart/drupal ATM

My workaround for now is to replace the product node by its source node on the cart load but keeping the translated Title intact.

rudeboyal's picture
Offline
Joined: 05/20/2009
Juice: 10
How dyou go about doing that?

I think that's a smart move my friend! How did you go about doing this?

asak@drupal.org's picture
Offline
Joined: 10/23/2008
Juice: 67
Yea...

Hey Docc - that really sounds interesting. could you provide some more info about that?

selinav's picture
Offline
Joined: 08/17/2009
Juice: 148
Re: Re: Translating product content node creates second ubercart

have you found a solution to admin the stock in multilanguage shop?

copyhold's picture
Offline
Joined: 12/03/2009
Juice: 5
translate node content

What do you think about translating product via strings?
OK , I undestand this might be a very long strings. but it'll b the same node.