Skip to content

Commit

Permalink
Issue #2 - Merge PR Add Product Fields Dimensions with Units
Browse files Browse the repository at this point in the history
  • Loading branch information
stpaultim committed Nov 15, 2021
2 parents eefb42b + 8947980 commit 9407c46
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions uc_feeds.module
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,31 @@ function uc_feeds_feeds_processor_targets_alter(&$targets, $entity_type, $bundle
'callback' => 'uc_feeds_set_target',
'description' => 'Ubercart:' . t('Sell price'),
);
// Dimensions Path.
// Dimensions Length.
$targets['dim_length'] = array(
'name' => t('UC: Dim Length'),
'callback' => 'uc_feeds_set_target',
'description' => 'Ubercart:' . t('Dimensions - Length'),
);
// Dimensions Width.
$targets['dim_width'] = array(
'name' => t('UC: Dim Width'),
'callback' => 'uc_feeds_set_target',
'description' => 'Ubercart:' . t('Dimensions - Width'),
);
// Dimensions Height.
$targets['dim_height'] = array(
'name' => t('UC: Dim Height'),
'callback' => 'uc_feeds_set_target',
'description' => 'Ubercart:' . t('Dimensions - Height'),
);
//Dimensions Units.
$targets['length_units'] = array(
'name' => t('UC: Dim Unit'),
'callback' => 'uc_feeds_set_target',
'description' => 'Ubercart:' . t('Dimensions Unit'),
);
// Weight.
$targets['weight'] = array(
'name' => t('UC: Weight'),
Expand Down

0 comments on commit 9407c46

Please sign in to comment.