Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    Default $shipping_num_boxes Problem with custom shipping module

    Hello,
    I have a question about $shipping_num_boxes please.
    ermmmm
    It may sound stupid but what does it do?
    Is it refering to the number of items in a cart?

    I attach a shipping module (class is named _) for the second biggest shipping company in Japan.

    Im trying to config the cart to use these, and the problem Im getting is....
    Add 1 widget 0.01 kg - shipping module seems to work and reports the correct shipping amount.

    Add 10 widgets 0.1 kg, shipping module reports its too heavy/large.
    Is there an admin setting I have missed somewhere?
    Appreciate any help here.
    Thanks in advance.


    PS Ive gone through and done most of the fixes in the thread for 1.8a.
    Attached Files Attached Files
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: $shipping_num_boxes Problem with shipping module

    Quote Originally Posted by Reesy View Post
    Hello,
    I have a question about $shipping_num_boxes please.
    ermmmm
    It may sound stupid but what does it do?
    Zencart has a setting for the maximum weight that you are able to ship. If the items in the cart weigh more than this then multiple parcels are created. The number of parcels is stored in the $shipping_num_boxes variable, and is used by the shipping module(s) when creating the quotes.

    Cheers
    Rod

  3. #3
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    Default Re: $shipping_num_boxes Problem with shipping module

    Thanks for the info.
    Admin>Configuration>Shipping/Packaging is presumadly where your speaking of.

    Enter the Maximum Package Weight you will ship.
    Its set to 50 (meaning 50kg).
    All items have been entered in kilos ie 0.1 etc.

    Is there any way to work out if a shipping module is configured to use grams or kg at all?
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: $shipping_num_boxes Problem with shipping module

    Quote Originally Posted by Reesy View Post
    Thanks for the info.
    Admin>Configuration>Shipping/Packaging is presumadly where your speaking of.
    Enter the Maximum Package Weight you will ship.
    Yes, that's the one.

    Quote Originally Posted by Reesy View Post
    All items have been entered in kilos ie 0.1 etc.
    Technically, any values you enter are nothing more than 'numbers'. What those numbers signify is determined by the various shipping modules.

    Quote Originally Posted by Reesy View Post
    Is there any way to work out if a shipping module is configured to use grams or kg at all?
    I suppose you could 'work it out' by looking at the code of the various shipping modules that you intend to use, but I've generally found that reading any documentation that is supplied with the module(s) is usually a lot easier.

    Cheers
    Rod

  5. #5
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    Default Re: $shipping_num_boxes Problem with shipping module

    Thanks for your help Rod, unfortunately I think there seems to be something else going on here. I will post some screenshots tomorrow. There is no documentation AFAIK and even if there were it would be in Japanese.

    You might be interested in looking at the code, as it has some lengthxheightxwidth coding for sizing (not actually used) that in my understanding is similar to how they calculate postage costs in Oz. Maybe its useful for you.
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

  6. #6
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    Default Re: $shipping_num_boxes Problem with shipping module

    Ok... its official I have a big headache LOL

    Attached are some screenshots to see if anyone can see whats going on...
    1) Admin > Config> Shipping/Packaging Settings.

    2) Add one item, yep its all working nicely.
    3) Increase this, and its all gone a bit Pete Tong (English slang for wrong). The weight is still well under the 2kg package rate for the 60 size (the same as screenshot 2 above), but its saying its too big to be delivered.

    Any help anyone would be appreciated.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	1.jpg 
Views:	161 
Size:	16.3 KB 
ID:	7399   Click image for larger version. 

Name:	2.jpg 
Views:	171 
Size:	38.2 KB 
ID:	7400   Click image for larger version. 

Name:	3.jpg 
Views:	167 
Size:	40.5 KB 
ID:	7401  

    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

  7. #7
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    Default Re: $shipping_num_boxes Problem with shipping module

    Dont you just hate it, you post something then 2 minutes later you realise you made a mistake?
    Screenshot 3 is not right, I was playing about with the free shipping option thingy.
    Imagine thats not there in the screenshot and its the same problem. (ie ignore that line).
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

  8. #8
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    Default Re: $shipping_num_boxes Problem with shipping module

    The plot thickens....
    I changed the shipping calculator to the button instead of being on the page and saw the following....

    For example... 1 item (other stuff like price and weight removed for clarity)
    Total Items: 1 Dims: 10x10x10 Boxes: 1

    10 Items...
    Total Items: 1 Dims: 100x10x10 Boxes: 1

    (thats a 1m dimension its added there).
    Did I mention I still have that headache.

    Back to searching the forum again....
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

  9. #9
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    Default Re: $shipping_num_boxes Problem with shipping module

    Fixed this by removing all the non working dimensions stuff in the code to just presume theres one parcel. :)
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

 

 

Similar Threads

  1. problem with my TPGpost shipping module
    By liz5384 in forum Addon Shipping Modules
    Replies: 7
    Last Post: 2 Feb 2014, 02:08 AM
  2. Problem with Shipping Module
    By CoolTech in forum Addon Shipping Modules
    Replies: 0
    Last Post: 3 Sep 2009, 10:44 AM
  3. Help with custom shipping module
    By gofer_p in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Mar 2009, 09:19 PM
  4. Custom shipping module problem
    By hitch in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Jan 2008, 04:02 AM
  5. Help with custom shipping module
    By FuzzyJared in forum Addon Shipping Modules
    Replies: 0
    Last Post: 7 Dec 2006, 07:33 PM

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