Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 1 votes

Minimum cost to ship the product


10 replies to this topic

#1 Mc_Gregor

  • Community Member
  • 26 posts
  • Real Name:Mac

Posted 08 June 2011, 22:04

Hi everyone,
Anyone know if there is a total order form that allows me to specify if: The total order amount does not reach a minimum and you can not do the shipping?

Eg
Sub-Total 1 + 2 + 3 = 9.8 $
Total = 9.8 $ (but the minimum cost = 10 $)

Then show a Message = "Sorry, we can only do the shipping from $ 10"

There is something similar? Or any idea how?

Appreciate any help.. Cheers...

#2 DunWeb

  • Community Sponsor
  • 10,464 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 08 June 2011, 22:41

Mac,

You could enable The Low Order total module and set your minimum purchase amount of $x.xx. Anything less than x.xx would be subject to the low order fee.




Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#3 Mc_Gregor

  • Community Member
  • 26 posts
  • Real Name:Mac

Posted 09 June 2011, 08:46

Hi Chris!!...
Thanks for your answer.. The problem in the Low Order Total Module, you have to pay For Orders Under certain amount..
I dont want to charge more in the total price.

Minimum ordering for delivery = 10 $
Less than that amount = "Error Message"

(One of the advantages I offer with home delivery service is "not delivery charge")


Appreciate any help.. Thanks




View PostDunWeb, on 08 June 2011, 22:41, said:

Mac,

You could enable The Low Order total module and set your minimum purchase amount of $x.xx. Anything less than x.xx would be subject to the low order fee.




Chris


#4 Mc_Gregor

  • Community Member
  • 26 posts
  • Real Name:Mac

Posted 09 June 2011, 09:31

In the Community Add-Ons is an example but is for the v2.2.
http://addons.oscommerce.com/info/5876

I need the same but for the 2.3.1 version :)

#5 burt

  • Community Sponsor
  • 6,970 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 09 June 2011, 10:47

http://www.clubosc.com/minimum-weight-to-checkout.html

which is WEIGHT. You can easily amend for postage price.
The Dirty Little Secrets that no osCommerce template sellers want you to know...revealed...

Support is commercially available. The question is whether you value your business
highly enough to spend money on it.

For commercial support from known developers who support osCommerce
ethos, please post at http://forums.oscommerce.com/forum/79-commercial-support/

#6 Mc_Gregor

  • Community Member
  • 26 posts
  • Real Name:Mac

Posted 09 June 2011, 12:18

Hi burt, thanks!!..
I see your recomendation but in the weight case is more easy because your have:

$total_weight = $cart->show_weight();
$total_count = $cart->count_contents();
in checkout_process.php

and you compare if ($total_weight < SHIPPING_MIN_WEIGHT)

In my case i have to compare Eg. if ($subtotal < MINIMUM_ORDER_SUBTOTAL) do something

but, where is the subtotal price variable to compare if greater or lesser? Mmmm... :/

Apreciate any help!!.. Thanks




View Postburt, on 09 June 2011, 10:47, said:

http://www.clubosc.com/minimum-weight-to-checkout.html

which is WEIGHT. You can easily amend for postage price.


#7 Mc_Gregor

  • Community Member
  • 26 posts
  • Real Name:Mac

Posted 09 June 2011, 17:20

Finally solved the problem!!!!

Thanks burt...

The solution:
In PhPMyAdmin

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added)
VALUES ('Enter the Minimum Order to Ship', 'SHIPPING_MIN_ORDER', '0', 'The minimum order that you will ship. 0 = unlimited.', '7', '6', now());


In checkout_shipping.php
if ((SHIPPING_MIN_ORDER > 0) && ($order->info['total'] < SHIPPING_MIN_ORDER)) tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . urlencode(sprintf(ERROR_MIN_ORDER_SHIPPING, SHIPPING_MIN_ORDER, SHIPPING_MIN_ORDER - $order->info['total'])), 'NONSSL'));

And in /includes/languages/english.php
define('ERROR_MIN_ORDER_SHIPPING', ' The minimum order to shipping is %s euros. You need to add another %s euros to be able to checkout.');


Thanks to burt for the original code!!!!....

Cheers :)

#8 Mc_Gregor

  • Community Member
  • 26 posts
  • Real Name:Mac

Posted 18 June 2011, 18:34

Hello!!....

I have a problem visualization whit Mozilla Firefox for the error solved up..
I'm not expert css and php. How I can do to make the same error is displayed in all browsers? Is there any way to put him top and fixed? (under the head and the logo).. The code is the same as above..

Apreciate any help..... :thumbsup:

Cheers

#9 Mc_Gregor

  • Community Member
  • 26 posts
  • Real Name:Mac

Posted 18 June 2011, 22:40

someone??

#10 Mc_Gregor

  • Community Member
  • 26 posts
  • Real Name:Mac

Posted 20 June 2011, 12:29

Hello.. Let me explain..
In Chrome, IE, and others the error message is displayed well.. But in Mozilla Firefox, i dont know why the message is go up and right..
The CSS part to control the error is

TD.headerError {
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12px;
  background: #ff0000;
  color: #ffffff;
  font-weight : bold;
  text-align : center;
}

but i'm no expert to css, I tried whit:
# position:fixed;
# right:5px;
# top:60px;
# position:absolute;

PLease, any idea to place the error in all browsers?
thanks!!..

#11 Mc_Gregor

  • Community Member
  • 26 posts
  • Real Name:Mac

Posted 20 June 2011, 15:12

finally testing and testing and testing, I found the solution:

TD.headerError {
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 10px;
  background: #ff0000;
  color: #ffffff;
  position:fixed; 
  z-index: 1;
  left:0px;
  right:0px;
  bottom: 0%;
  font-weight : bold;
  text-align : center;  
}

This causes the error display bottom, throughout extension, white text, bold, center and red background.

Well, patiently get to heaven!!..

Cheers