Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2005
    Posts
    154
    Plugin Contributions
    0

    help question Adding a Residential Shipping checkbox in the Table Rate Module

    I have modified the table.php shipping module to calculate shipping costs based a percentage of product price for each category. Now I need one more thing... I want to add a checkbox (on the estimator page as well as the checkout shipping page) that can be checked if the buyer has a residential shipping address. Then my code will add a predetermined surcharge for the residential address.

    I am using the Table Rate module so I don't need any UPS or FedEx stuff, just a simple checkbox so they can click it if they want to signify that we are shipping to a residential address.

    I imagine I need to set a global variable (ie: RESIDENTIAL_ADDRESS) that will store if they choose the residential address checkbox either from the shipping estimator screen or the checkout shipping screen and then my code in table.php can check that and add the appropriate amount to the total shipping cost variable ($this->quotes: 'cost' => $shipping).

    Now I'm foggy on how to actually do this though. I know I'd edit the template files to add the checkbox but how do I actually track/store the varaiable?

    Thanks for the help!

  2. #2
    Join Date
    Aug 2005
    Posts
    154
    Plugin Contributions
    0

    Default Re: Adding a Residential Shipping checkbox in the Table Rate Module

    Any ideas guys? I wouldn't think this would be too difficult since it's just storing the variable and then referencing it when needed... but have no clue how to go about it!

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    92
    Plugin Contributions
    1

    Default Re: Adding a Residential Shipping checkbox in the Table Rate Module

    That feature is specialised, This isn't a php/web design forum as such. I can not teach you how to program here, It's to support the modules but doesn't cover how to modify the checkout process.

    Your changes require edits outside of the shipping module code to be implemented properly. There - I already gave you a head start!

    There is a place for this sort of thing ;)

  4. #4
    Join Date
    Aug 2005
    Posts
    154
    Plugin Contributions
    0

    Idea or Suggestion

    Ok, so seems I got the wrong forum category then. Can an admin move this to the "General Quesitons" category? I really need to figure this out and I don't think it would be that difficult if I knew variable names and how to track them. Thanks!

 

 

Similar Threads

  1. Adding a Residential Shipping checkbox in the Table Rate Module
    By davemehta in forum General Questions
    Replies: 2
    Last Post: 2 Jul 2011, 12:43 PM
  2. Table Rate - Shipping Module
    By Lazar in forum General Questions
    Replies: 4
    Last Post: 12 Feb 2011, 02:42 PM
  3. How to kill the table rate module when shipping to Canada?
    By samar777 in forum Addon Shipping Modules
    Replies: 7
    Last Post: 18 Sep 2010, 10:25 PM
  4. Adding A Second Shipping Table Rate
    By inklingsolutions in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 10 Feb 2010, 04:12 PM
  5. Clone a shipping module or define a new shipping attribute under table rate module?
    By meeven in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Sep 2007, 04:56 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