Just had a look at Auspost mod...
I notice that Auspost will take parcels up to 20kg... why is 10kg your limit?
Just had a look at Auspost mod...
I notice that Auspost will take parcels up to 20kg... why is 10kg your limit?
20 years a Zencart User
10kg was just a number i choose, it will be 20kg, i would like to use this mod when AUSTPOST is unable to send.
Cheers
www.skyraven.com.au
What CURRENTLY happens with Auspost Module when a shopper's cart exceeds 20kg?
20 years a Zencart User
OK, I see what happened... I filled a cart on your site then clicked shipping estimator.
You can try this:
(Backup all files relating to Auspost first).
1. Get the zonetables module in the Free Software Addons.
2. Unzip it on your local drive.
3. Open the following file in that module for editing in a PLAIN TEXT EDITOR (or PHP editor): includes/modules/shipping/zonetable.php
Find this code (around line 74)
DIRECTLY BENEATH IT, add the following:PHP Code:// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ZONETABLE_STATUS == 'True') ? true : false);
}
So it now looks like:PHP Code:// Check for Weight and display module if weight exceeds stated value
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() < 20) {
$this->enabled = false;
} else {
$this->enabled = true;
}
What this is saying is that if the cart weight value is LESS THAN (<) 20, then DO NOT enable the module.PHP Code:// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ZONETABLE_STATUS == 'True') ? true : false);
}
// Check for Weight and display module if weight exceeds stated value
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() < 20) {
$this->enabled = false;
} else {
$this->enabled = true;
}
You can see the conditional being applied to the value of 20 by this line:- if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() < 20) {
Now, this 20 value assumes your selected UNIT of weight in your store is KG. If it is GRAMS, then the value will be 20000. Apply the necessary value as per your store's weight unit.
4. SAVE the file on your local machine.
5. Check and edit the associated LANGUAGE files of both Auspost and Zonetables modules to display appropriate module labelling and messaging to your customers.
6. FTP the fully edited zonetables module to the appropriate locations on your server.
7. In your admin panel, ENABLE and CONFIGURE the zonetables module to suit your shipping zone and pricing policies.
8. TEST various order combinations (weights and regions), and adjust your language labels and messages accordingly, so that when Auspost "Over 20kg" message appears, customers are told to either contact you (Auspost default), or select the other module if they want to.
20 years a Zencart User
With the AustPost mod, it will not allow checkout, i have now edited the Free shipping mod to display a message to contact site to arrange postage.
Brodie
www.skyraven.com.au
OK... but why not try what I suggest?
In that way, Auspost wont be presented as an option, but if the weight exceeds 20kg then zonetables will.
Either way, your shopper will be given an option:
Sorry, Auspost is unavailable to you because your cart weight exceeds 20kg, so you can:
1. Either contact us to discuss, or
2. Select the shipping option below...
... and by selecting an alternative - (priced appropriately by you) - checkout can then proceed.
20 years a Zencart User
I have the same problem with aust post module, it wont do orders over 20KG's
I tried the zonetables module and edited it before I installed it but got the error
Warning: constant(): Couldn't find constant MODULE_SHIPPING_ZONETABLE_ZONE_1 in /home/content/v/a/n/vandiermen2/html/geewiztoys.com.au/includes/modules/shipping/zonetable.php on line 91
Warning: Cannot modify header information - headers already sent by (output started at /home/content/v/a/n/vandiermen2/html/geewiztoys.com.au/includes/modules/shipping/zonetable.php:91) in /home/content/v/a/n/vandiermen2/html/geewiztoys.com.au/admin/includes/functions/general.php on line 21
As this mod was made for 1.3.7, I then tried to add the same code to the zones.php (normal zone rates mod) as I thought I could also use this
in the right placePHP Code:// Check for Weight and display module if weight exceeds stated value
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() < 20) {
$this->enabled = false;
} else {
$this->enabled = true;
}
Then got the error on the [FONT=Verdana]original [/FONT]zone rates
Parse error: parse error, unexpected T_IF, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/v/a/n/vandiermen2/html/geewiztoys.com.au/includes/modules/shipping/zones.php on line 120
I really need to have a shipping mod activated only after >20, hope someone knows what I can do to make it work with out errors