Results 1 to 9 of 9
  1. #1
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Adding another Shipping method in perweightunit

    I have been using perweightunit with a single rate, now I want to add another shipper who also charges by another rate by weight.

    Can I add another perweightunit shipper with another rate to this option and how ?
    Thank you for taking time to answer this query
    AVF

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

    Default Re: Adding another Shipping method in perweightunit

    Just clone the Per Unit perweightunit shipping module ...

    Do a search on:
    clone item
    clone flat

    as I don't believe there is a:
    clone perweightunit

    but I may have written one up for it ... the idea is the same ...

    Clone as many as you need, add Zones to them and set the Unit Rate unique to each Zone ...

    The idea being that the products_weight is the lowest shipping cost for the Zones and that adjusting the Unit Rate would make the shipping cost change properly 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!

  3. #3
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Re: Adding another Shipping method in perweightunit

    thanks let me look up how to clone :)

  4. #4
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Re: Adding another Shipping method in perweightunit

    tried looking up cloning perweightunit but could not find any. I am a nobody at code writing and i don't want to screw up a working cart.

    If anyone would be kind enough to guide to the simplest way to do it I would be very grateful

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

    Default Re: Adding another Shipping method in perweightunit

    Do a search on:
    clone flat
    clone item

    The same concepts apply, just the variables and constants are different ...

    See if that helps get you started ...

    If you get really, really stuck ... I will write the clone the perweightunit.php story ...
    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. #6
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Re: Adding another Shipping method in perweightunit

    Hi Linda thank you for your support only thing is i wouldn't a from z in code writting. I can replace files do mods but thats the end of my "expertise ".

    If you would be so kind as to do a clone of the perweightunit it would be awesome on your part.
    Thanks

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

    Default Re: Adding another Shipping method in perweightunit

    Shipping modules are made up from two files, the code file and the language file ...

    The code file is located in:
    /includes/modules/shipping

    The language file is located in:
    /includes/languages/english/modules/shipping

    To clone the file for Per Unit perweightunit shipping module you would copy the files:
    /includes/modules/shipping/perweightunit.php
    /includes/languages/english/modules/shipping/perweightunit.php

    to new filenames, let's use:
    perweightunitfred

    So make copies of the original files to:
    /includes/modules/shipping/perweightunitfred.php
    /includes/languages/english/modules/shipping/perweightunitfred.php

    Then, you need to edit the two cloned files and change all instances of:
    perweightunit to perweightunitfred
    PERWEIGHTUNIT to PERWEIGHTUNITFRED

    you will notice that this is case sensative ...

    Be sure to use a good TEXT editor and not your Control Panel or a word processor such as MS Word ...

    I usually like to clone shipping modules with a word that indicates what it is for, meaning if I was making a clone for the UK ... I would use: perweightunituk

    The name isn't significant other than to identify what file you are using and be able to spot it easily for the future ...

    Then, in the language file
    /includes/languages/english/modules/shipping/perweightunitfred.php

    I would change the define statements in it as needed ...

    If you do not need to make changes, then leave them as they are ...

    Now, build Zones to control which file is shown for a given shipping address ...

    See if that helps you out some more ...
    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. #8
    Join Date
    May 2008
    Posts
    87
    Plugin Contributions
    0

    Default Re: Adding another Shipping method in perweightunit

    That will simple and painless. THANK YOU VERY VERY MUCH

    You have a paypal donation coming your way
    Thanks

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

    Default Re: Adding another Shipping method in perweightunit

    Thanks for the update that this was able to get you up to speed ...

    We appreciate the donation ... it helps us continue to write Zen Cart and in providing the forums for supporting you and your shop ...
    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!

 

 

Similar Threads

  1. Another perweightunit question
    By AudioUnderground in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 7 Oct 2009, 07:16 PM
  2. How do I disable paypal if another shipping method is selected?
    By soskuthy in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 11 Jul 2009, 04:34 PM
  3. Forcing another shipping method?
    By MarkS99 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 19 Jan 2008, 04:50 AM
  4. yet another PERWEIGHTUNIT to calculate Shipping cost per Item question
    By dragoncelt in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 11 Oct 2007, 05:54 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