Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jun 2010
    Location
    Vancouver Island, BC
    Posts
    6
    Plugin Contributions
    0

    Default Percentage of Total Amount or Dollar Value

    Hey folks ...

    Has anyone come across either a module, or did some changes to be able to have this as a shipping option.

    Shipping & Handling: 10% of the subtotal or $10.00 (whichever is greater)?

    Many thanks

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

    Default Re: Percentage of Total Amount or Dollar Value

    You can customize the Table Rate to have 10% and add in a test to make it a minimum of $10.00 ...
    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
    Jun 2010
    Location
    Vancouver Island, BC
    Posts
    6
    Plugin Contributions
    0

    Default Re: Percentage of Total Amount or Dollar Value

    Hey Ajeh,

    Thanks for the reply, but I am not sure what you are meaning. I know how to set within the table rate ... eg: 10:5.00,5%

    how would I do what you are suggesting?

    Cheers :)

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

    Default Re: Percentage of Total Amount or Dollar Value

    In the Table Rate table shipping module, the final cost is built in:
    Code:
        $this->quotes = array('id' => $this->code,
        'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
        'methods' => array(array('id' => $this->code,
        'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
        'cost' => $shipping + (MODULE_SHIPPING_TABLE_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_TABLE_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_TABLE_HANDLING) ) ));
    What you want to do is test if the cost is <= 10 then you need to adjust the cost to be at least 10.00 ...
    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. #5
    Join Date
    Jun 2010
    Location
    Vancouver Island, BC
    Posts
    6
    Plugin Contributions
    0

    Default Re: Percentage of Total Amount or Dollar Value

    Hey there .. sorry if I am being difficult, but I have no idea what you are asking. I checked my table.php file in modules>shipping and it has the same code that you pasted ...

    As for the <= 10 ... not sure ...

    Do you know what formula is needed in the admin section under the Shipping Rate?

    This is what I have tried: 1:10.00,2:10% (1=number of products : costing 10.00, or 2=number of products : 10% off)

    Any ideas?

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

    Default Re: Percentage of Total Amount or Dollar Value

    You can customize the shipping charge in the Table Rate table shipping module by editing the file:
    /includes/modules/shipping/table.php

    and changing the code from:
    Code:
        $this->quotes = array('id' => $this->code,
        'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
        'methods' => array(array('id' => $this->code,
        'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
        'cost' => $shipping + (MODULE_SHIPPING_TABLE_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_TABLE_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_TABLE_HANDLING) ) ));
    to read:
    Code:
    // bof: charge minimum of $10.00 shipping
        $chk_shipping_cost = $shipping + (MODULE_SHIPPING_TABLE_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_TABLE_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_TABLE_HANDLING);
        if ($chk_shipping_cost < 10.00) {
          $chk_shipping_cost = 10.00;
        }
        $this->quotes = array('id' => $this->code,
        'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
        'methods' => array(array('id' => $this->code,
        'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
        'cost' =>  $chk_shipping_cost) ));
    // eof: charge minimum of $10.00 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!

  7. #7
    Join Date
    Jun 2010
    Location
    Vancouver Island, BC
    Posts
    6
    Plugin Contributions
    0

    Default Re: Percentage of Total Amount or Dollar Value

    Ahhh excellent, that worked perfect!!!

    Thanks very much again for all your work, I really appreciate it.

    Cheers :)

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

    Default Re: Percentage of Total Amount or Dollar Value

    Sure thing ... remember the Zen Cart Team when you are rich and famous!
    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. #9
    Join Date
    Jun 2010
    Location
    Vancouver Island, BC
    Posts
    6
    Plugin Contributions
    0

    Default Re: Percentage of Total Amount or Dollar Value

    I sure will ... I think they have done a fabulous job!!! :)

  10. #10
    Join Date
    Jun 2010
    Location
    Vancouver Island, BC
    Posts
    6
    Plugin Contributions
    0

    Default Re: Percentage of Total Amount or Dollar Value

    Actually, one last question if I could. Is there a way to use this function, but to have it work for all of Canada and the US, but for Alaska and Hawaii be $12.00 or 12% or subtotal?

    Cheers

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Applying dollar amount to quantities of 2
    By keyconn in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 7 Jul 2015, 05:25 PM
  2. v139h Hide/show shipping options by cart total dollar amount.
    By Barf in forum Addon Shipping Modules
    Replies: 4
    Last Post: 13 Nov 2014, 03:27 AM
  3. Shipping by percentage of retail value vs sale or discounted value
    By giftsandwhatnot in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Aug 2011, 05:16 PM
  4. Attribute by percentage versus dollar amount
    By discountvials in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Aug 2007, 07: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