Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 77
  1. #41
    Join Date
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Per Item shipping for 1 category

    Quote Originally Posted by Ajeh View Post
    What is the weight on the Gift Cart?
    The weight on the gift card is set to 0.

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

    Default Re: Per Item shipping for 1 category

    What is the master_categories_id on the Gift Card?

    Does it match what is on the Gift Card if you edit it?

    On the Attributes on the Gift Card, do any of the Attributes have weight?

    And the Gift Card is marked as:
    Always Free Shipping: Yes, Always Free Shipping
    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!

  3. #43
    Join Date
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Per Item shipping for 1 category

    Quote Originally Posted by Ajeh View Post
    What is the master_categories_id on the Gift Card?

    Does it match what is on the Gift Card if you edit it?

    On the Attributes on the Gift Card, do any of the Attributes have weight?

    And the Gift Card is marked as:
    Product Master Category: ID# 193 Gift Cards
    Always Free Shipping: xYes, Always Free Shipping
    Gift Card Product ID: 1646
    No weights assigned to any of the attributes for the gift card

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

    Default Re: Per Item shipping for 1 category

    Aha! I think I figured it out ...

    You have Gift Cards setup totally different from the norm as your Gift Cards are not treated like normal Zen Cart Gift Certificates nor configured in the same manner ...

    So, all of these changes to the Item Rate, UPS and USPS shipping have to take into account the Gift Certificate as a different kind of Product, so to speak ...

    Give me a few to give this some thought ... and while I am going out to dinner, I just got a call changing the time for everything, so hopefully I can get this done in the next few minutes to the next hour or so ...
    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!

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

    Default Re: Per Item shipping for 1 category

    Okay, let's try this new code:
    /includes/modules/shipping/ups.php

    Code:
          $qsize = sizeof($upsQuote);
    // bof: seperate item cost 1 category
    $chk_cart = $_SESSION['cart']->in_cart_check('master_categories_id','65');
    $chk_cart_always_free_shipping = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
    $extra_shipping_charge = $chk_cart * 5.99;
    //echo 'UPS $total_count: ' . $total_count . ' $chk_cart: ' . $chk_cart . ' $extra_shipping_charge: ' . $extra_shipping_charge . ' Always + chk_cart: ' . ($chk_cart + $chk_cart_always_free_shipping) . '<br>';
    // eof: seperate item cost 1 category
    
          for ($i=0; $i<$qsize; $i++) {
    Code:
            $cost = preg_replace('/[^0-9.]/', '',  $cost);
    // bof: seperate item cost 1 category
    global $total_count;
    if (($chk_cart + $chk_cart_always_free_shipping) == $total_count) {
      // skip shipping
    } else {
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost * $shipping_num_boxes) + $extra_shipping_charge + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );
    }
          }
    
          $this->quotes['methods'] = $methods;
    /includes/modules/shipping/usps.php
    Code:
    // eof: example to block USPS Priority MailTM Small Flat Rate Box when anything from master_categories_id 12 or 15 are in the cart
    
    // bof: seperate item cost 1 category
    $chk_cart = $_SESSION['cart']->in_cart_check('master_categories_id','65');
    $chk_cart_always_free_shipping = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
    $extra_shipping_charge = $chk_cart * 5.99;
    //echo 'USPS $total_count: ' . $total_count . ' $chk_cart: ' . $chk_cart . ' $extra_shipping_charge: ' . $extra_shipping_charge . ' Always + chk_cart: ' . ($chk_cart + $chk_cart_always_free_shipping) . '<br>';
    // eof: seperate item cost 1 category
          for ($i=0; $i<$PackageSize; $i++) {
    Code:
    $show_hiddenCost = '';
    // bof: seperate item cost 1 category
    global $total_count;
    if (($chk_cart + $chk_cart_always_free_shipping) == $total_count) {
      // skip shipping
    } else {
              $methods[] = array('id' => $type_rebuilt,
                                 'title' => $title . $show_hiddenCost,
                                 'cost' => $cost + $extra_shipping_charge,
                                 'insurance' => $usps_insurance_charge,
                                );
    }
    // eof: seperate item cost 1 category
    //echo 'setting insurance: ' . $usps_insurance_charge . '<br>';
            } else {
    /includes/modules/shipping/item.php
    Code:
          $item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
    // bof: seperate item cost 1 category
    $chk_cart = $_SESSION['cart']->in_cart_check('master_categories_id','65');
    $chk_cart_always_free_shipping = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
    //echo 'ITEM $total_count: ' . $total_count . ' $chk_cart: ' . $chk_cart . ' $extra_shipping_charge: ' . $extra_shipping_charge . ' Always + chk_cart: ' . ($chk_cart + $chk_cart_always_free_shipping) . '<br>';
    $extra_shipping_charge = $chk_cart * 5.99;
    if ($extra_shipping_charge == 0 || ($chk_cart + $chk_cart_always_free_shipping) != $total_count) {
      // skip shipping
    } else {
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                         'cost' => $extra_shipping_charge)));
    }
    // eof: seperate item cost 1 category
    
          if ($this->tax_class > 0) {
    Let's see if this works better 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!

  6. #46
    Join Date
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Per Item shipping for 1 category

    Quote Originally Posted by Ajeh View Post
    Okay, let's try this new code:
    /includes/modules/shipping/ups.php

    Code:
          $qsize = sizeof($upsQuote);
    // bof: seperate item cost 1 category
    $chk_cart = $_SESSION['cart']->in_cart_check('master_categories_id','65');
    $chk_cart_always_free_shipping = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
    $extra_shipping_charge = $chk_cart * 5.99;
    //echo 'UPS $total_count: ' . $total_count . ' $chk_cart: ' . $chk_cart . ' $extra_shipping_charge: ' . $extra_shipping_charge . ' Always + chk_cart: ' . ($chk_cart + $chk_cart_always_free_shipping) . '<br>';
    // eof: seperate item cost 1 category
    
          for ($i=0; $i<$qsize; $i++) {
    Code:
            $cost = preg_replace('/[^0-9.]/', '',  $cost);
    // bof: seperate item cost 1 category
    global $total_count;
    if (($chk_cart + $chk_cart_always_free_shipping) == $total_count) {
      // skip shipping
    } else {
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost * $shipping_num_boxes) + $extra_shipping_charge + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );
    }
          }
    
          $this->quotes['methods'] = $methods;
    /includes/modules/shipping/usps.php
    Code:
    // eof: example to block USPS Priority MailTM Small Flat Rate Box when anything from master_categories_id 12 or 15 are in the cart
    
    // bof: seperate item cost 1 category
    $chk_cart = $_SESSION['cart']->in_cart_check('master_categories_id','65');
    $chk_cart_always_free_shipping = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
    $extra_shipping_charge = $chk_cart * 5.99;
    //echo 'USPS $total_count: ' . $total_count . ' $chk_cart: ' . $chk_cart . ' $extra_shipping_charge: ' . $extra_shipping_charge . ' Always + chk_cart: ' . ($chk_cart + $chk_cart_always_free_shipping) . '<br>';
    // eof: seperate item cost 1 category
          for ($i=0; $i<$PackageSize; $i++) {
    Code:
    $show_hiddenCost = '';
    // bof: seperate item cost 1 category
    global $total_count;
    if (($chk_cart + $chk_cart_always_free_shipping) == $total_count) {
      // skip shipping
    } else {
              $methods[] = array('id' => $type_rebuilt,
                                 'title' => $title . $show_hiddenCost,
                                 'cost' => $cost + $extra_shipping_charge,
                                 'insurance' => $usps_insurance_charge,
                                );
    }
    // eof: seperate item cost 1 category
    //echo 'setting insurance: ' . $usps_insurance_charge . '<br>';
            } else {
    /includes/modules/shipping/item.php
    Code:
          $item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
    // bof: seperate item cost 1 category
    $chk_cart = $_SESSION['cart']->in_cart_check('master_categories_id','65');
    $chk_cart_always_free_shipping = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
    //echo 'ITEM $total_count: ' . $total_count . ' $chk_cart: ' . $chk_cart . ' $extra_shipping_charge: ' . $extra_shipping_charge . ' Always + chk_cart: ' . ($chk_cart + $chk_cart_always_free_shipping) . '<br>';
    $extra_shipping_charge = $chk_cart * 5.99;
    if ($extra_shipping_charge == 0 || ($chk_cart + $chk_cart_always_free_shipping) != $total_count) {
      // skip shipping
    } else {
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                         'cost' => $extra_shipping_charge)));
    }
    // eof: seperate item cost 1 category
    
          if ($this->tax_class > 0) {
    Let's see if this works better for you ...
    getting http 500 error at checkout now. no error logs.

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

    Default Re: Per Item shipping for 1 category

    Can you see the shipping modules Item Rate, USPS and UPS in your Zen Cart Admin in the Modules ... Shipping ...

    When you add just a normal Product to the shopping cart, do you see any debug logs in the /logs directory (/cache in older Zen Cart Versions)?
    If so, can you post the content?
    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!

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

    Default Re: Per Item shipping for 1 category

    This is a Zip of these files to compare to what you have used ...
    Attached Files Attached Files
    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!

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

    Default Re: Per Item shipping for 1 category

    Looks like you are getting somewhere but I have to get off to dinner ... I will check back later tonight ...
    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!

  10. #50
    Join Date
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Per Item shipping for 1 category

    Quote Originally Posted by Ajeh View Post
    This is a Zip of these files to compare to what you have used ...

    Thanks for that. I must have messed something up with the USPS file. That one was missing from my admin shipping module. Looks like it's working now, except for the ups shipping option tries to show during checkout. i'm trying to attach a screen shot, but I can't figure this thing out either.

 

 
Page 5 of 8 FirstFirst ... 34567 ... LastLast

Similar Threads

  1. Shipping Cost Based On Item Category With Discount Per Multiple Items In Category
    By CFen in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 22 Nov 2011, 07:05 PM
  2. Flat rate for 1 category, Per Item for all others
    By Znak in forum Built-in Shipping and Payment Modules
    Replies: 19
    Last Post: 18 Aug 2011, 03:09 PM
  3. Shipping charged per item and free shipping per item
    By ae_support in forum Addon Shipping Modules
    Replies: 2
    Last Post: 27 Jul 2011, 05:04 PM
  4. Individual Shipping Per Item, and reduced cost per extra item
    By canad1an in forum Addon Shipping Modules
    Replies: 7
    Last Post: 6 Feb 2009, 11:41 PM
  5. Per item shipping for multi item kits
    By Biometicslady in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 4 Jan 2009, 06:16 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR