6 replies [Last post]
rmmcclay's picture
Offline
Joined: 11/28/2007
Juice: 3
Was this information Helpful?

I was wondering if anyone is using Localizer with Ubercart? I just started testing Ubercart on a virgin install of the latest Drupal and yesterday installed Localizer.

If I go to Add Story or Add Page, there is a drop down for the languages. When I go to Add Product the language drop down doesn't appear. I'm not sure where to start looking in the code to correct or understand this.

Right now I just have Chinese in addition to the default English.

Thanks

zmove's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 1192
Re: Localizer and Ubercart

I suggest you to use the i18n module, Drupal 6 will come out with core internationalization module that was based on the i18n one.

kulvik's picture
Offline
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer
Joined: 08/14/2007
Juice: 336
Hi rmmcclay I have setup a

Hi rmmcclay Smiling

I have setup a couple multi-language sites now with the i18n module. One of them can be found here: http://butikk.tapirforlag.no

Just a fair warning: Setting up a complete store in Drupal/Übercart with the i18n module right now is a pain in the ass. Both because the i18n module itself has a lot of issues and because übercart itself really hasn't been written for this yet. So prepare to spend a lot of time hacking übercart core and tearing your hear out in the process Smiling There are still some issues I haven't been able to solve "in the right way" on the store i mentioned.

I have also setup some sites (non-übercart) with the localizer module and I definitely prefer that one over i18n.

I'm just looking forward to having core i18n+ support in Drupal 6 (and of course to having a übercart version that really support this stuff Eye-wink.

Best regards,
Thomas Kulvik
Ny Media AS
http://www.nymedia.no

amirtheseventh@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 2
i18n
kulvik wrote:

Hi rmmcclay Smiling

I have setup a couple multi-language sites now with the i18n module. One of them can be found here: http://butikk.tapirforlag.no

Just a fair warning: Setting up a complete store in Drupal/Übercart with the i18n module right now is a pain in the ass. Both because the i18n module itself has a lot of issues and because übercart itself really hasn't been written for this yet. So prepare to spend a lot of time hacking übercart core and tearing your hear out in the process Smiling There are still some issues I haven't been able to solve "in the right way" on the store i mentioned.

I have also setup some sites (non-übercart) with the localizer module and I definitely prefer that one over i18n.

I'm just looking forward to having core i18n+ support in Drupal 6 (and of course to having a übercart version that really support this stuff Eye-wink.

Best regards,
Thomas Kulvik
Ny Media AS
http://www.nymedia.no

thanks for the warning, can you please tell me if I will have the same difficulties if I just try to setup a non-English site with ubercart? I mean with only one active language?

PEpe's picture
Offline
Joined: 09/22/2007
Juice: 11
Re: Localizer and Ubercart

I use Localizer module now... It's not so bad... I wrote small module for synchonization of prices in translated product nodes... you can simply customize it:

<?php

function uc_localizer_nodeapi(&$node, $op){
 
  switch(
$op){
    case
'submit':
     
     
drupal_set_message('Price synchronisation start:');
     
      if(
$node->type == 'NAME_OF_YOUR_PRODUCT_CONTENT_TYPE'){

       

$nid = db_fetch_object(db_query('SELECT * FROM {localizernode} WHERE nid = %d', $node->nid));
       
$result = db_query('SELECT * FROM {localizernode} WHERE pid = %d', $nid->pid);
       
        while(
$tnode = db_fetch_object($result)){
         
$tnode = node_load($tnode->nid);
          if(
$tnode->sell_price != $node->sell_price){
           
$tnode->sell_price = $node->sell_price;
           
node_save($tnode);
          }
         
drupal_set_message('- synchroniz with node number '.$tnode->nid);
        }
      }
     
     
drupal_set_message('Synchronisation done.');
     
      break;
  }
 
}

?>
svihel's picture
Offline
Joined: 05/29/2008
Juice: 140
synchronized prices (localizer)

Hello, I tried this module, but it doesn't seems to work, or more probably I did something wrong. I created the module (attached the module files, maybe some mistake is already there), activated it, acitivated localizer support for product content type, then created product in czech language and its translation in english. Now I just guessing that this module should kick to action when I submit one of the nodes that have the translation and then automaticly make the synchronization. Or should I call this somehow?
Also I'm not sure if this would work on localization 3.x, based on date of this post I guess it was made for earlier versions.

AttachmentSize
sync_prices.zip 902 bytes
YannickD's picture
Offline
Joined: 01/30/2009
Juice: 22
i18n Synchronization

I made a very simple module that will work with i18n and synchronize all the products' data amongst translations. (Price, weight, etc.)

http://www.ubercart.org/contrib/8787

It's not been tested on a large production setup, but "It works for me"â„¢. Eye-wink