How do i set the attributes so i have a $25 (one time) fee for all products in the cart. Lets say i order product A and product B
(10 of each) and if they select the attribute i want to add a $25 on the final price and not $25 for each product.
How do i set the attributes so i have a $25 (one time) fee for all products in the cart. Lets say i order product A and product B
(10 of each) and if they select the attribute i want to add a $25 on the final price and not $25 for each product.
Anyone know, i really need this
Maybe you can do it so if you select the attributes on 1 product $25 is added then if you select it on the next product it's free because you have already selected it before but how do you add this?
In the Attributes Controller, on the Attribute that you want the One Time $25.00 charge, did you try filling in for the:
One Time:
25.00
so that it will charge that once per Product, regardless of quantity?![]()
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!]
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!
yes but that is per product not per order. The buyer should not pay a one time fee more than once
They should be able to select the attributes more than once but only pay one time.
It's like a bag of candy they select all the candy they want but only pays for 1 bag
So this is just a Fee you want to charge per order separate regardless of what is ordered ...
So I order 1 Product or 27 Products I get this extra charge ... correct?![]()
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!]
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!
...But apparently only if a certain attribute is also selected. So presumably some orders would not have this fee.
Is it the same options_id and options_value regardless of Product?
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!]
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!
And a customer couldn't order different greetings on different products in one order? Or are you saying your printer will allow multiple different custom greetings for one additional price?
Are you using the Low Order Fee or do you ever plan on using that?
If not, you could use that and customize it with the following code in:
/includes/modules/order_total/ot_loworderfee.php
Install it in the Modules ... Order Totals ... and turn on:
Low Order Fee ot_loworderfee.php
and set it to Enable and the amount to: 10000
Then change the code from:
to read:Code:if (MODULE_ORDER_TOTAL_LOWORDERFEE_LOW_ORDER_FEE == 'true') { switch (MODULE_ORDER_TOTAL_LOWORDERFEE_DESTINATION) { case 'national': if ($order->delivery['country_id'] == STORE_COUNTRY) $pass = true; break; case 'international': if ($order->delivery['country_id'] != STORE_COUNTRY) $pass = true; break; case 'both': $pass = true; break; default: $pass = false; break; }
and just set the correct Option ID (currently set to 1) and Option Value ID (currently set to use 16) ... to your values ...Code:if (MODULE_ORDER_TOTAL_LOWORDERFEE_LOW_ORDER_FEE == 'true') { switch (MODULE_ORDER_TOTAL_LOWORDERFEE_DESTINATION) { case 'national': if ($order->delivery['country_id'] == STORE_COUNTRY) $pass = true; break; case 'international': if ($order->delivery['country_id'] != STORE_COUNTRY) $pass = true; break; case 'both': $pass = true; break; default: $pass = false; break; } // bof: turn ON for Option ID 1 and Option Value ID 16 global $cart; $cnt_attribute = 0; $products = $_SESSION['cart']->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { foreach ($products[$i]['attributes'] as $option => $value) { // comment out echo when done testing //echo 'I see: ' . $products[$i]['id'] . ' - ' . $option . ' - ' . $value . '<br>'; if ($option == 1 and $value == 16) { $cnt_attribute += 1; } } } } if ($cnt_attribute > 0) { $pass = true; } else { $pass = false; } // eof: turn ON for Option ID 1 and Option Value ID 16
NOTE: you can then change the language file with your templates and overrides ...
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!]
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!