Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Sep 2010
    Location
    Finland
    Posts
    59
    Plugin Contributions
    0

    Default Different shipping price

    Is it possible to change shipping price automatically day and night different? For example an additional charge after 10:00 o'clock at night ...

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Different shipping price

    Quote Originally Posted by Cenkki View Post
    Is it possible to change shipping price automatically day and night different? For example an additional charge after 10:00 o'clock at night ...
    You could create COPIES (clones) of your shipping modules, and configure the CLONE modules to indicate that they apply to NIGHT deliveries (you will edit the LANGUAGE PHP files for the cloned modules to change the title and descriptions of the shipping option).

    Then you insert the RATES for night delivery.

    When the customer checks out they will be offered BOTH options - Day delivery, and Night delivery. Whichever they choose will add the required rate to their order total.
    20 years a Zencart User

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

    Default Re: Different shipping price

    What shipping module(s) are you using and what is the extra charge that you want to add?
    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
    Sep 2010
    Location
    Finland
    Posts
    59
    Plugin Contributions
    0

    Default Re: Different shipping price

    Per item ore flat shipping modules. Ore any shipping module which works. I just want, after 10:00am add 1.5€ to normal shipping price. Possible automatically.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Different shipping price

    Quote Originally Posted by Ajeh View Post
    What shipping module(s) are you using and what is the extra charge that you want to add?
    To me it seems Cenkki wants to give shoppers the opportunity to choose between TWO different delivery windows:

    1. Normal Hours
    2. After 10pm

    So you would want these two options available to the shopper at checkout as radio button selections.

    If the delivery methodology and procedure is the SAME for either option (the only difference being TIME), then I think the easiest solution is to CLONE the module being used, and then to price one module differently from the other. The TEXT DESCRIPTIONS are easily edited in the modules' language files.

    If Cenkki chooses to use FLAT RATE shipping, then use TWO flat_rate modules.
    20 years a Zencart User

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

    Default Re: Different shipping price

    You could add something like the code in RED, for example in Per Item item:
    /includes/modules/shipping/item.php

    Code:
          // adjusted count for free shipping
          $item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
    
    // bof: charge extra for after 10pm
    $hour = 22;
    if (date('H') >= $hour) {
      $prehour = true;
    } else {
      $prehour = false;
    }
    if ($prehour) {
      $extra_charge = 5.00;
    } else {
      $extra_charge = 0.00;
    }
    //echo 'Is it after ' . $hour . '?' . ($prehour ? ' YES!' : ' NO!') . ' Extra Charge: ' . $extra_charge . '<br>';
    
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                         'cost' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING + $extra_charge)));
    // eof: charge extra for after 10pm
    
          if ($this->tax_class > 0) {
    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 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Different shipping price

    Quote Originally Posted by Ajeh View Post
    You could add something like the code in RED, for example in Per Item item:
    /includes/modules/shipping/item.php

    Code:
          // adjusted count for free shipping
          $item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
    
    // bof: charge extra for after 10pm
    $hour = 22;
    if (date('H') >= $hour) {
      $prehour = true;
    } else {
      $prehour = false;
    }
    if ($prehour) {
      $extra_charge = 5.00;
    } else {
      $extra_charge = 0.00;
    }
    //echo 'Is it after ' . $hour . '?' . ($prehour ? ' YES!' : ' NO!') . ' Extra Charge: ' . $extra_charge . '<br>';
    
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                         'cost' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING + $extra_charge)));
    // eof: charge extra for after 10pm
    
          if ($this->tax_class > 0) {
    Hmmmm... quite neat! (I may have a use for this myself)
    20 years a Zencart User

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

    Default Re: Different shipping price

    Nifty, eh?
    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
    Sep 2010
    Location
    Finland
    Posts
    59
    Plugin Contributions
    0

    Default Re: Different shipping price

    thanks :)

  10. #10
    Join Date
    Sep 2010
    Location
    Finland
    Posts
    59
    Plugin Contributions
    0

    Default Re: Different shipping price

    is it between 22:00 - 02:00. or? must turn back day time normally shipping price. normal shipping price 3.50€. night (22:00-02:00) 5.00€

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Different Price for different shipping modules like ground
    By wildbill8448 in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 20 Sep 2011, 11:00 PM
  2. Different shipping price per product?
    By CarolineBogart in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 27 Nov 2010, 04:01 AM
  3. a different shipping price for each item
    By [email protected] in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 10 Mar 2008, 01:21 AM
  4. different shipping price for diff prods
    By dejaz85 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 9 Jun 2007, 03:32 PM
  5. How to Set Different Shipping Price for Different Items
    By metakomm2 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 2 Jan 2007, 05:33 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