This is a discussion on Easypopulate situation within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; I started using easy populate and here is the problem I am perplexed on. I uncommented the lines as stated ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I started using easy populate and here is the problem I am perplexed on. I uncommented the lines as stated for seperate pricing for customers in easypopulate.php but now if you download a complete tab delimited text file there is no place for the customer group prices. But if you download the model/price/quantity file then the places for your all your customer group prices are there. How do you get it to work with the complete file?? Your help will be greatly appreciated. |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| Ok thanks to Dcmo and Theengel in a couple different posts this is resolved and I will try and make it easier to find the code in oscmax v2. File to edit catalog/admin/easypopulate.php 1st around line 1039 uncomment the number of pricing groups you are using.(uncomment meaning remove pound sign) In my case I am using 2 additional wholesale pricing groups in addition to the original retail pricing group. So the code would look like this. Code: 'v_products_model' => $iii++, 'v_products_price' => $iii++, 'v_products_quantity' => $iii++, 'v_customer_price_1' => $iii++, 'v_customer_group_id_1' => $iii++, 'v_customer_price_2' => $iii++, 'v_customer_group_id_2' => $iii++, #'v_customer_price_3' => $iii++, #'v_customer_group_id_3' => $iii++, #'v_customer_price_4' => $iii++, #'v_customer_group_id_4' => $iii++, ); Find this code around line 942 Code: // VJ product attribs begin
$header_array = array(
'v_products_price' => $iii++,
'v_products_weight' => $iii++,
'v_date_avail' => $iii++,
'v_date_added' => $iii++,
'v_products_quantity' => $iii++,
);
Code: // VJ product attribs begin
$header_array = array(
'v_products_price' => $iii++,
'v_customer_price_1' => $iii++,
'v_customer_group_id_1' => $iii++,
'v_customer_price_2' => $iii++,
'v_customer_group_id_2' => $iii++,
'v_products_weight' => $iii++,
'v_date_avail' => $iii++,
'v_date_added' => $iii++,
'v_products_quantity' => $iii++,
);
Last step is your table. Find this code around line 1896 Code: '.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_1 . ',
' . $v_customer_price_1 . ',
' . $v_products_id . ',
' . $v_products_price .'
)'
);
}
if ($v_customer_price_2 != ''){
$result = tep_db_query('
INSERT INTO
'.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_2 . ',
' . $v_customer_price_2 . ',
' . $v_products_id . ',
' . $v_products_price . '
)'
);
}
if ($v_customer_price_3 != ''){
$result = tep_db_query('
INSERT INTO
'.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_3 . ',
' . $v_customer_price_3 . ',
' . $v_products_id . ',
' . $v_products_price . '
)'
);
}
if ($v_customer_price_4 != ''){
$result = tep_db_query('
INSERT INTO
'.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_4 . ',
' . $v_customer_price_4 . ',
' . $v_products_id . ',
' . $v_products_price . '
)'
);
}
}
' . $v_products_price . ' this includes the comma after previous entry so it looks like this. Code: '.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_1 . ',
' . $v_customer_price_1 . ',
' . $v_products_id . ' )'
);
}
if ($v_customer_price_2 != ''){
$result = tep_db_query('
INSERT INTO
'.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_2 . ',
' . $v_customer_price_2 . ',
' . $v_products_id . ' )'
);
}
if ($v_customer_price_3 != ''){
$result = tep_db_query('
INSERT INTO
'.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_3 . ',
' . $v_customer_price_3 . ',
' . $v_products_id . ' )'
);
}
if ($v_customer_price_4 != ''){
$result = tep_db_query('
INSERT INTO
'.TABLE_PRODUCTS_GROUPS.'
VALUES
(
' . $v_customer_group_id_4 . ',
' . $v_customer_price_4 . ',
' . $v_products_id . ' )'
);
}
}
|
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EasyPopulate | ELCHANCHO | osCMax v2 Features Discussion | 3 | 11-29-2005 09:04 AM |
| EasyPopulate 2.72 | Yari_Gio | osCMax v1.7 General Mods Discussion | 2 | 12-01-2004 12:05 AM |
| easypopulate 2.72 | Anonymous | osCMax v1.7 Installation | 1 | 05-16-2004 08:39 PM |
| easypopulate | swift | osCMax v1.7 Discussion | 4 | 04-15-2004 04:09 AM |
| NEED HELP EASYPOPULATE | Anonymous | osCMax v1.7 Discussion | 1 | 12-27-2003 03:25 AM |