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

    red flag Custom Shipping rate calculated by category

    We want to charge a flat-percentage of the order total as the shipping rate. So for example if the order total is $100 and we decided we are charging 10% for shipping the total shipping cost would be $10. Now that would be easy enough if that was it, but of course there has to be more! ;-)

    We want to charge varying percentages based on categories. We can use master categorys, so for example let's say I have three categories:

    CATEGORY 1, shipping rate is charged at 10%
    CATEGORY 2, shipping rate is charged at 15%
    CATEGORY 3, shipping rate is charged at 20%

    So the "shipping module" would have to figure out order totals from each category and then calculate the total shipping price based on that. If the category didn't have a specific shipping rate set then we could just say it charges a generic 10%.

    Now, the best way to accomplish this -- should I hack the flat rate shipping module or the table-rate shipping module? Anyone try this before, can you guys point out at least were the calculations occour in the flat rate module file so I can see what's going on and take a stab at it?

    Appreciate the help guys :-)

    ~ Dave

    Dave Mehta
    Pangea Webhosting

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

    Default Re: Custom Shipping rate calculated by category

    What you seek will not be easily programmed but...

    Totals wiil have to be calc'd in /includes/classes/shoppingcart.php - given some variable for each cat to be used for applying rates to it
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Per Weight Shipping not Calculated when Tax is Calculated
    By CascianoLtd in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 28 Sep 2009, 04:29 AM
  2. Shipping rate based on cost calculated before discounts
    By mylildarlings in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 9 Oct 2008, 03:04 AM
  3. First order and flat rate shipping was calculated incorrectly
    By bakdoor in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 4 Oct 2008, 12:16 PM
  4. To offer flat rate shipping on certain items and calculated on others
    By thomasjmiller in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 Jul 2007, 07:18 PM
  5. tax rate not being calculated at the correct rate
    By lsbu in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 14 Mar 2007, 03:52 PM

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