Re: need a shipping module please help
Zen Cart 1.3.6
Database Patch Level: 1.3.6
v1.3.5 [2006-12-11 15:40:49] (Version Update 1.3.0.2->1.3.5)
v1.3.0.2 [2006-12-11 15:40:45] (Version Update 1.3.0.1->1.3.0.2)
v1.3.0.1 [2006-07-19 15:43:21] (Version Update 1.3.0->1.3.0.1)
v1.3.0 [2006-07-19 14:22:03] (Version Update 1.2.7->1.3.0)
v1.2.7 [2006-03-06 12:04:22] (Fresh Installation)
Re: need a shipping module please help
Quote:
Originally Posted by
Ajeh
What version of Zen Cart are you using?
Clean install or Upgrade?
If an upgrade, from what version and how?
Did you edit the Free Shipping Options freeoptions file with the change?
This is a Upgraded version with Fantastico...
yes i changed the areas on that file there was 2 of them in that file i use Dreamweaver to edit the file it was on 2 lines the first line and then the second one was towards the end of the of the file.. After the Second Check area in the file
I also need this for only within the USA but it seems the Freeoptions is for anywhere in the world how can i change that??
Re: need a shipping module please help
Can you just write a new file for me and i can just download it and put it in my cart?? It would be easier for my that way so i know its right.. What can you do about the international part too we don't want free shipping world wide just within the United states,,
Re: need a shipping module please help
You only need to change line 175 with the code I posted above ... :smile:
Re: need a shipping module please help
What is the program you are useing to edit the PHP file because on my line 175 it is different...
Re: need a shipping module please help
Look in the file:
/includes/modules/shipping/freeoptions.php
for the code in this section:
PHP Code:
// final check for display of Free Options
if ($this->ck_freeoptions_total or $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
$this->enabled = true;
} else {
$this->enabled = false;
}
change the IF statement to read:
PHP Code:
if ($this->ck_freeoptions_total and $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
Notice the AND in place of the OR ...
Re: need a shipping module please help
I changed 2 lines that said that the first one was up higher on the page.. So i don't want to change the first one i just want to change the second one after the final part correct??
What about limiting it to USA??
Re: need a shipping module please help
Only change it in the 2nd occurance of that IF where the IF is preceeded with the comment so that this code:
PHP Code:
// final check for display of Free Options
if ($this->ck_freeoptions_total or $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
$this->enabled = true;
} else {
$this->enabled = false;
}
Will now read as this code (in just this one place):
PHP Code:
// final check for display of Free Options
if ($this->ck_freeoptions_total and $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
$this->enabled = true;
} else {
$this->enabled = false;
}
Re: need a shipping module please help
Ok now that works but now its giving free shipping world wide how to i regulate it to just the USA
Re: need a shipping module please help
You would need to make a zone for the US only to see this Shipping Module so that anyone outside the US does not ...
Note: when setting this up there are the States, DC, Armed services and US territories related to the US ...
You need to decide if the US is "all of the US" or just the states etc.