Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Dec 2010
    Location
    Central Indiana
    Posts
    36
    Plugin Contributions
    0

    Default How To Get Per Item to Not Show $0.00

    Almost finished setting up our new site for 2011.
    We have a bunch of products at 0 weight.
    Using cloned modules, the customer has a choice of Economy ($3.00) or Priority ($5.00).
    For some reason, per item is also there with a $0.00 price.

    We have to use per item for the other products with weight.

    Is there any way to get the per item to not show if the weight is 0?

    Thanks in advance,

    Joe

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

    Default Re: How To Get Per Item to Not Show $0.00

    You could customize the code in the Per Unit perweightunit shipping module with:
    Code:
        // disable only when entire cart is free shipping
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_PERWEIGHTUNIT_STATUS == 'True') ? true : false);
        }
    
        global $cart;
        if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() == 0) {
          $this->enabled = false;
        }
    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!

  3. #3
    Join Date
    Dec 2010
    Location
    Central Indiana
    Posts
    36
    Plugin Contributions
    0

    Default Re: How To Get Per Item to Not Show $0.00

    Thank you!
    Works perfectly!

    Joe

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

    Default Re: How To Get Per Item to Not Show $0.00

    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!]
    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!

  5. #5
    Join Date
    Dec 2010
    Location
    Central Indiana
    Posts
    36
    Plugin Contributions
    0

    Default Re: How To Get Per Item to Not Show $0.00

    Bought the team a cup of really good coffee
    Thanks again.

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

    Default Re: How To Get Per Item to Not Show $0.00

    Appreciate the coffee! Have a good holiday!
    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!

  7. #7
    Join Date
    Sep 2004
    Location
    New Brunswick, Canada
    Posts
    67
    Plugin Contributions
    0

    Default Re: How To Get Per Item to Not Show $0.00

    Working on similar problem here:
    http://h a bitathaven.com/cart

    Want my shipping to be if weight 1lb or greater -> display Zones Table Rate

    If weight = 0lbs default to Request Freight Quote

    I have the zonetable.php working fine, displays on over 1lb, hides on 0lbs.

    My problem is telling the Request Freight Quote to disable on 1lb or greater.

    Here is the section of code from includes/modules/shipping/rfq.php I have noted my custom code, does it look right? Did I put custom code in proper place? Help!
    Thanks

    Code:
    // class constructor
        function rfq() {
    	  global $order, $db;
          $this->code = 'rfq';
          $this->title = MODULE_SHIPPING_RFQ_TEXT_TITLE;
          $this->description = MODULE_SHIPPING_RFQ_TEXT_DESCRIPTION;
          $this->sort_order = MODULE_SHIPPING_RFQ_SORT_ORDER;
          $this->icon = DIR_WS_ICONS . 'shipping_rfq.gif';
          $this->enabled = ((MODULE_SHIPPING_RFQ_STATUS == 'True') ? true : false);
    	  if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_RFQ_ZONE > 0) ) {
            $check_flag = false;
            $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id <> '" . MODULE_SHIPPING_RQF_ZONE . "' and zone_country_id <> '" . $order->delivery['country']['id'] . "' order by zone_id");
            while (!$check ->EOF) {
    /* MY CUSTOM CODE START XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/
    	 global $cart;
             if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() >= 1) {
             $this->enabled = false;
             }
    /* MY CUSTOM CODE FINISH XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/
              if ($check->fields['zone_id'] < 1) {
                $check_flag = true;
                break;
              }
    		   elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
                $check_flag = true;
                break;
              }
              $check->MoveNext();
    		}
    	
    		if ($check_flag == false) {
              $this->enabled = false;
            }
          }
        }

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

    Default Re: How To Get Per Item to Not Show $0.00

    And if you move your code to be below:
    Code:
          $this->enabled = ((MODULE_SHIPPING_RFQ_STATUS == 'True') ? true : false);
    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!

  9. #9
    Join Date
    Sep 2004
    Location
    New Brunswick, Canada
    Posts
    67
    Plugin Contributions
    0

    Default Re: How To Get Per Item to Not Show $0.00

    Again, Ajeh saves the day, works perfectly in both the Estimator and Checkout.

    Many Thanks

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

    Default Re: How To Get Per Item to Not Show $0.00

    You are most welcome ... thanks for the update that moving your custom code to the right location helped resolve your issues ...
    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. v150 how do I get my product listing to show three items per row
    By Darion in forum General Questions
    Replies: 6
    Last Post: 26 Sep 2012, 10:42 PM
  2. Shipping per item does not show
    By Nordenfor in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Sep 2011, 12:54 PM
  3. How to get Group Pricing (per Item) to work with QuickUpdates?
    By Gamer in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 14 Feb 2008, 04:22 PM
  4. order confirmation email - how do I show per-item price for qty > 0 ?
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 29 Dec 2007, 10:20 PM
  5. how to get invoice to show an item was sold on sale
    By TATIANA in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 27 Oct 2007, 01:14 PM

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