Re: Synchronizing translated product nodes

selinav's picture
Offline
Joined: 08/17/2009
Juice: 148
Re: Synchronizing translated product nodes

I have a field "Reseller price" which has name [reseller_price] when I doing a print_r($node), but if I added it in the custommod, nothing happend

<?php
/**
* Implementation of hook_i18nsync_fields_alter().
*/
function custommod_i18nsync_fields_alter($fields, $type) {
$fields['uc_products']['#title'] = 'Products';
// These values were found by doing a print_r($node) in node-product.tpl.php
$fields['uc_products']['#options'] = array (
'model' => 'SKU',
'list_price' => 'List Price',
'cost' => 'Cost',
'sell_price' => 'Sell Price',
'weight' => 'Weight',
'weight_units' => 'Weight Units',
'length' => 'Length',
'width' => 'Width',
'height' => 'Height',
'length_units' => 'Length Units',
'pkg_qty' => 'Quantity',
'default_qty' => 'Default quantity to add to cart',
'reseller_price' => 'Reseller price'
);
}
?>

How should I do to get the value of the reseller price and the attributes. When I've doing a print_r($node),
this information are in the object [referencing_node]=> array [attributes], [referencing_node]=> [reseller_price]

Please help me

i18n issues i D6/UC2 for Multilingual sites By: CpILL (147 replies) Mon, 05/11/2009 - 15:02