Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Feb 2009
    Posts
    108
    Plugin Contributions
    0

    Default attributes per final price and not per 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.

  2. #2
    Join Date
    Feb 2009
    Posts
    108
    Plugin Contributions
    0

    Default Re: attributes per final price and not per 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?

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: attributes per final price and not per product

    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!

  4. #4
    Join Date
    Feb 2009
    Posts
    108
    Plugin Contributions
    0

    Default Re: attributes per final price and not per product

    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

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: attributes per final price and not per product

    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!

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: attributes per final price and not per product

    ...But apparently only if a certain attribute is also selected. So presumably some orders would not have this fee.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: attributes per final price and not per product

    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!

  8. #8
    Join Date
    Feb 2009
    Posts
    108
    Plugin Contributions
    0

    Default Re: attributes per final price and not per product

    Quote Originally Posted by Ajeh View Post
    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?
    Yes if you select that attribute, it does'nt matter if you select it on more products...
    Because i will have a geeting that the user can choose with their own text and the printer charge me a one time fee for variable printing

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: attributes per final price and not per product

    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?

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: attributes per final price and not per product

    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:
    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;
            }
    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;
            }
    
    // 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
    and just set the correct Option ID (currently set to 1) and Option Value ID (currently set to use 16) ... to your values ...

    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Price units, per foot, per pound, each, etc...
    By vfrazier in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Nov 2008, 10:14 PM
  2. Change number of items per page, and adding multiple images per product
    By aidanacker in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 8 May 2008, 01:17 AM
  3. price per product per customer
    By ianhg in forum General Questions
    Replies: 3
    Last Post: 1 Jan 2008, 10:44 PM
  4. Shipping Rate per Product and per Country
    By joelbauca in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 18 Jul 2007, 04:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg