Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37
  1. #1
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Set a flat shipping cost for a single item

    Hello Ajeh or any one :-)

    How can I get a per item flat shipping cost on an item ?

    I have a few items that ship same cost no matter what
    and the normal shipping method raises the shipping to high.

    Thx,
    Erick

  2. #2
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Set a flat shipping cost for a single item

    also is there a way to have the cart HALF the weight shown per item for shipping.

    or a way to quickly change ALL weights to HALF what they are currently set at at checkout, or I will have a whole lot of updating to do...

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

    Default Re: Set a flat shipping cost for a single item

    Set the weight of the Product to 0, then, in the function quote of your shipping modules you could use:

    Code:
        global $cart;
        $chk_products = 0;
        $extra_products_charge = 0.00;
    // check for products_id 12 and add $5.00 to shipping
        $chk_products += $_SESSION['cart']->in_cart_check('products_id','12');
        if ($chk_products > 0) {
          $extra_products_charge = 5.00;
        }
    Then, add the new variable:
    $extra_products_charge

    to the cost on your shipping module(s) ...
    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!

  4. #4
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Set a flat shipping cost for a single item

    will give it a try,
    also how to add like a small truck icon to the categories.php
    page so that with each Item when it shows the other small icons such as status, sort, edit, move, copy and such.

    add one as a small truck to show the item has free shipping set. free_shipping_set.png set in the same admin icon location as the other images such as the icon_edit.gif

  5. #5
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Set a flat shipping cost for a single item

    can the free shipping also be clickable like the status is to turn on and off the free shipping for that item ?

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

    Default Re: Set a flat shipping cost for a single item

    You will need to write your own code for the:
    /admin/includes/modules/category_product_listing.php

    look around line 335-342 for:
    action=setflag

    to see how that is writen ... then look at the:
    /admin/categories.php

    around line 107 for:
    case 'setflag':

    and see how the code is written ...

    You can build your custom code using the same method ...
    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
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Set a flat shipping cost for a single item

    is ok, It confuses me, I just do not understand php programing. will find someone to get it done.

  8. #8
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Set a flat shipping cost for a single item

    what would I use to replace the products_status in the code ?
    what am I making a call for ?

  9. #9
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Set a flat shipping cost for a single item

    I looked in product.php, the file that seems to load to admin the item, but the word shipping is not in the code ?

  10. #10
    Join Date
    Feb 2006
    Location
    Boise, ID
    Posts
    334
    Plugin Contributions
    0

    Default Re: Set a flat shipping cost for a single item

    so copy the bit of code you say and change the products_status to use
    TEXT_PRODUCT_IS_ALWAYS_FREE_SHIPPING from the product.php page ?

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v139h Calculating Shipping - First Item a Set Cost, Each Additional Item $1.00 Per Item
    By Beachcovers in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 31 Mar 2012, 04:00 AM
  2. Create shipping cost for a single product?
    By Platinum Place in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 12 Jan 2011, 02:59 AM
  3. How Can I Set a Flat Rate for shipping on 1 item and rest by weight ?
    By vividbreeze in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jan 2010, 05:26 AM
  4. Shipping - Different Flat Rate Freight Cost For Each Item
    By Donn in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 1 May 2009, 03:06 PM
  5. I need to set a flat rate for one item.
    By HighHobbies in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 24 Jun 2008, 02:08 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