Localizer and Ubercart

Posts: 1
Joined: 11/28/2007

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

Posts: 476
Joined: 08/13/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer

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

Posts: 129
Joined: 08/14/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer

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

Posts: 1
Joined: 03/19/2008

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?

Posts: 4
Joined: 09/22/2007

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;
  }
 
}

?>

Posts: 22
Joined: 05/29/2008

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.zip902 bytes