Vodka or Beer?????
Ah, sorry! Thought we got somewhere then.
Definitely da whiskey ... makes da coding go so much ... umm ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Okay ... change this code between the code in BLACK ...
If there are more master_categories_id that need to be added, follow the pattern ...Code:// calculate cost of master_categories_id 319 for ($i=0, $n=sizeof($products); $i<$n; $i++) { // calculate price and quantity master_categories_id 42, 59, 100 //echo 'Product id: ' . $products[$i]['id'] . ' master: ' . $products[$i]['category'] . '<br>'; // master_categories_id 42 if ($products[$i]['category'] == 42) { $chk_cost += $products[$i]['final_price']; $chk_count += $products[$i]['quantity']; } // master_categories_id 59 if ($products[$i]['category'] == 59) { $chk_cost += $products[$i]['final_price']; $chk_count += $products[$i]['quantity']; } // master_categories_id 100 if ($products[$i]['category'] == 100) { $chk_cost += $products[$i]['final_price']; $chk_count += $products[$i]['quantity']; } } // set extra_charge_amount for UK - GB
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Excellent, so I then just change the 319, 42, 59, 100 then add extra ones for more catogories?
Thanks
A
Ill just show you what im doing before I bongle it up! Gonna change the ones in red
// calculate cost of master_categories_id 319
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
// calculate price and quantity master_categories_id 42, 59, 100
//echo 'Product id: ' . $products[$i]['id'] . ' master: ' . $products[$i]['category'] . '<br>';
// master_categories_id 42
if ($products[$i]['category'] == 42) {
$chk_cost += $products[$i]['final_price'];
$chk_count += $products[$i]['quantity'];
}
// master_categories_id 59
if ($products[$i]['category'] == 59) {
$chk_cost += $products[$i]['final_price'];
$chk_count += $products[$i]['quantity'];
}
// master_categories_id 100
if ($products[$i]['category'] == 100) {
$chk_cost += $products[$i]['final_price'];
$chk_count += $products[$i]['quantity'];
}
}
// set extra_charge_amount for UK - GB
Left 319 as it is...
IT WORKS! THANKYOU! I would offer you some whiskey but you are too far away.
Thankyou
A
Thanks for the update that this is now working for you ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Hi,
I have similar problem. For example, for Category 1, I offer shipping by USPS, but for Category 2, I offer shipping based on the weight.
Items in Category 1 are less than 1 lb, if they customer choose the "best way" during check out, usually the shipping cost shows less than $1.
However, for Category 2, these are over sized items and we charge a flat rate of $130.
I would like to know if: 1, how to turn off "per Unit" module when customer purchases items from Category 1 so they can only see the rate from USPS?
2. how to turn off "USPS" module when customer purchases items from Category 2 so they can only see the $130 rate?
Please help.
Bookmarks