Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Nov 2010
    Posts
    8
    Plugin Contributions
    0

    Default Canada Post - Dimensions by attributes

    Hi, I'm new to zen cart but not new to PHP....

    I just installed v1.3.9h - new install - new site.

    I've installed the Canada Post Shipping Module and it seems to be working ok - one thing is I'm not seeing how many boxes are being shipped.

    My main question is this:

    In the admin-categories/products page when editing/adding a product, there's an option to price by attributes - which will also allow weight by attribute.

    Canada Post module has the weight and dimensions in the product description, right now it looks like the weight is being pulled from my attributes. I'm wondering how I can do the same thing for dimensions.

    The product/attributes are as follows:

    small bag 50g(weight) 11x10x2(size of bag)
    medium bag 100g 15x12x3.5
    large bag 200g 22x15x5

    If I all packages were the same it'd be fine but I need to calculate the sizes. I can get x amount of bags in a box depending on the size.

    Is there a way to grab dimension by attributes for CPM?

    Thanks.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Canada Post - Dimensions by attributes

    There is no DB records for l, w, h
    There is no admin code to allow entry
    There is no shopping cart, shipping calc, etc code for using

    Start with creating a new product type based upon product general
    See tutorials

    But first look at the free software addons for Canada Post Shipping Module
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Canada Post - Dimensions by attributes

    Sorry I'm not quite sure I understand... your statement:
    Start with creating a new product type based upon product general
    I'm able to creat a product and enter the l,w,h for it within the Canda Post Shipping Module (which is already installed). My problem is I'd like to add it for each size without creating three different products.

    Also:
    free software addons for Canada Post Shipping Module
    is there additional addons for this module? I didn't see any other then the module itself - which as I mentioned is already installed and functioning.
    Last edited by bloodgrave; 24 Nov 2010 at 08:13 PM. Reason: miss quoted

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Canada Post - Dimensions by attributes

    I'm not quite sure I understand... your statement:
    As stated, earlier much code and DB addition might be necessary
    A new product type will assist in inputting it into the product
    https://www.zen-cart.com/tutorials/i...hp?article=114
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Nov 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Canada Post - Dimensions by attributes

    So in theory... if I'm going to have to modify code I could essentially modify the attribute controller. Within the php code I could add values for L W H in the Prices & Weight section - as the weight isn't part of the Product Type Descriptor just part of Canada Shipping Module and the attribute controller is appending the amount just fine.?

    Canada Post module has added the products_length, products_width, products_height to the products table.

    So if I add products_length, products_lenght_previx, products_width, products_width_previx, products_heigth, product_heigth_previx to the products_attributes table this should do the same as the weight does?

    I can't do any coding right now I'm at work... so writing my theories down maybe it'll work maybe I'm way off...
    Last edited by bloodgrave; 24 Nov 2010 at 10:24 PM. Reason: spelling

  6. #6
    Join Date
    Nov 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Canada Post - Dimensions by attributes

    ]Just FYI, I did get this to work as described above...

    Basically I edited the attributes_controller.php file withing /admin. I also had to edit the /admin/includes/languages/attributes_controller.php file.

    Within these files I just copied everywhere there was a weight section and put the same code for length width height.

    Then I added products_attributes_length, products_attributes_length_prefix (same for width height) to the znc_products_attributes table.
    Attached Images Attached Images  
    Last edited by bloodgrave; 25 Nov 2010 at 05:45 AM.

  7. #7
    Join Date
    Nov 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Canada Post - Dimensions by attributes

    Does anyone know where the Canada Post Shipping module grabs the weight from or which part/page puts the weight attribute into the actual item when the Canada Post shipping module gets the info?

    As I mentioned I did get it working in terms of I can add the LxWxH to the attribute tables but for some reason canada post is still grabbing the LxWxH from the products table without adding the attributes.

  8. #8
    Join Date
    Nov 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Canada Post - Dimensions by attributes

    Figured it out ... I had an typo in my shopping_cart.php - everything is working as it should now :)

  9. #9
    Join Date
    Oct 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Canada Post - Dimensions by attributes

    Hello bloodgrave, i have sent you a private message as well as replying to your post. Would it be possible for you to share the changes you made to the shopping cart to make it work.
    thanks Mike

  10. #10
    Join Date
    Oct 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Canada Post - Dimensions by attributes

    anyone?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Canada Post Module Not Saving Dimensions
    By DUNW in forum Addon Shipping Modules
    Replies: 0
    Last Post: 6 Jul 2011, 09:29 PM
  2. Adding dimensions to attributes - Canada Post
    By sjgarg in forum Addon Shipping Modules
    Replies: 3
    Last Post: 24 Nov 2010, 10:46 PM
  3. Canada Post Module not getting dimensions
    By will250 in forum Addon Shipping Modules
    Replies: 1
    Last Post: 19 Feb 2010, 02:01 PM
  4. Shipping dimensions in products - canada post
    By Australian Caching in forum Addon Shipping Modules
    Replies: 5
    Last Post: 8 Feb 2010, 03:36 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