-
Re: ozpost shipping module
Quote:
Originally Posted by
HelenC13
I think I've figured it out - I think it was the gms / kgs that had me confused because in the description page it is kg's, but I had selected gms,
I have to admit that this (the weight factor) is one of the things that trip most people up. The reason being is that their is no 'connection' between what is displayed on screen (text) and the actual value of the 'units' that the shipping modules use. It is up to the end user make the correct match.
Quote:
Originally Posted by
HelenC13
and the extra packing it adds was bringing them to over 500g, so I've conquered that by just having it add 2%
thanks!:D
Congratulations ... far to many people (in my opinion) set this to 0%,
It is actually a pleasure to meet someone that realises/appreciates that in some instances the tare weights can make a significant difference in cost.
Cheers
Rod
-
Re: ozpost shipping module
I have just installed the ozpost module and am getting "Unexpected error (no valid methods). Using AP Flat Rate. "
Strange thing is that when I set debug on, it works.
When I did the install I had to change some code in ozpost.php as below as $pcode had NONE causing an error.
I have tried with cURL set to yes.
I am sure that is is something stupid I am doing. Thanks for any help.
----------------------------------
function install()
{
global $db;
$result = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'SHIPPING_ORIGIN_ZIP'" ) ;
$pcode = $result->fields['configuration_value'] ;
-->> if ($pcode == 'NONE') {
-->> $pcode = 2000;
-->> }
-
Re: ozpost shipping module
Quote:
Originally Posted by
rhodie1000
I have just installed the ozpost module and am getting "Unexpected error (no valid methods). Using AP Flat Rate. "
Strange thing is that when I set debug on, it works.
When I did the install I had to change some code in ozpost.php as below as $pcode had NONE causing an error.
I have tried with cURL set to yes.
I am sure that is is something stupid I am doing. Thanks for any help.
----------------------------------
function install()
{
global $db;
$result = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'SHIPPING_ORIGIN_ZIP'" ) ;
$pcode = $result->fields['configuration_value'] ;
-->> if ($pcode == 'NONE') {
-->> $pcode = 2000;
-->> }
I found the solution. I had gms selected and not Kgs. Thanks to RodG.
-
Re: ozpost shipping module
Quote:
Originally Posted by
rhodie1000
I have just installed the ozpost module and am getting "Unexpected error (no valid methods). Using AP Flat Rate. "
I see from your followup post that you have solved your problem, however I thought I'd explain a bit about about the postcode change that you thought you needed to make.
Quote:
Originally Posted by
rhodie1000
$result = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'SHIPPING_ORIGIN_ZIP'" ) ;
$pcode = $result->fields['configuration_value'] ;
-->> if ($pcode == 'NONE') {
-->> $pcode = 2000;
-->> }
What this piece of code is actually doing is *during installation* extracting the store location postcode from the zencart "shipping and packaging" configuration settings and using the information to populate the "dispatch postcode" field of the ozpost module.
IF the "shipping and packaging" values haven't yet been set (and yours apparently hasn't) then the installation would/should set a valid, but arbitary value (9999, I think) rather than leaving the field empty (which would produce an error).
Regardless of the outcome of this test and insert, it is still only a *default* value that can be changed at any time with the "dispatch postcode" field of the ozpost module.
Cheers
Rod
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
IF the "shipping and packaging" values haven't yet been set (and yours apparently hasn't) then the installation would/should set a valid, but arbitary value (9999, I think) rather than leaving the field empty (which would produce an error).
Cheers
Rod
Rod, Thanks for the detailed reply. As you can see, I am a newbie to Zen Cart and I did eventually realise my mistake with the post code. :oops:
Your response is much appreciated. :yes:
-
Re: ozpost shipping module
I have a problem that is described in the link to the post below. "Dimensions do not display for my parcels. I get Dims: xx Boxes: ".
http://www.zen-cart.com/forum/showpo...1&postcount=70
The answer here is that it is a bug. This is the only reference I can find. I am sure that it is another silly mistake on my part and was wondering if anyone knows the answer.
Thanks.
-
Re: ozpost shipping module
Quote:
Originally Posted by
rhodie1000
I have a problem that is described in the link to the post below. "Dimensions do not display for my parcels. I get Dims: xx Boxes: ".
http://www.zen-cart.com/forum/showpo...1&postcount=70
The answer here is that it is a bug. This is the only reference I can find. I am sure that it is another silly mistake on my part and was wondering if anyone knows the answer.
Thanks.
Hey Rod,
Probably a stupid question with an easy fix, and most likely not ozpost related..
I've created 8 separate zones and installed zonetables to get around the over 20kg limit and calculate freight for each state, but the shipping estimator does not show up states, which renders the zonetables option useless unless the user is registered.
I attempted to un-comment out the relevant states settings in the tpl_modules_shipping_estimator.php file, but all that did was break the estimator..!
Any clues..?
-
Re: ozpost shipping module
Quote:
Originally Posted by
Mike_Dean
Hey Rod,
Probably a stupid question with an easy fix, and most likely not ozpost related..
I've created 8 separate zones and installed zonetables to get around the over 20kg limit and calculate freight for each state, but the shipping estimator does not show up states, which renders the zonetables option useless unless the user is registered.
I attempted to un-comment out the relevant states settings in the tpl_modules_shipping_estimator.php file, but all that did was break the estimator..!
Any clues..?
Sorted it out.. grabbed an original file and dumped that it, now I have all three options, Country, State and Postcode...
-
Re: ozpost shipping module
Quote:
Originally Posted by
rhodie1000
I have a problem that is described in the link to the post below. "Dimensions do not display for my parcels. I get Dims: xx Boxes: ".
http://www.zen-cart.com/forum/showpo...1&postcount=70
The answer here is that it is a bug. This is the only reference I can find. I am sure that it is another silly mistake on my part and was wondering if anyone knows the answer.
Thanks.
It's a bug.
Cheers
Rod
-
Re: ozpost shipping module
Rod,
I'm doing my head in here..
I use the Prepaid Satchels as an option, and in the estimator, and or at checkout, if that option is available, it displays
3kg Prepaid Satchel Express
I want to rename it Express Satchel
But I cannot find the instance anywhere where 3kg Prepaid Satchel Express is documented..
:frusty:
-
Re: ozpost shipping module
Quote:
Originally Posted by
Mike_Dean
Rod,
I'm doing my head in here..
I use the Prepaid Satchels as an option, and in the estimator, and or at checkout, if that option is available, it displays
3kg Prepaid Satchel Express
I want to rename it Express Satchel
But I cannot find the instance anywhere where 3kg Prepaid Satchel Express is documented..
:frusty:
The text comes from the server. If you wish to change it you'll need to add a line or two of code into the ozpost.php file (one to test, the other to change).
Cheers
Rod
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
The text comes from the server. If you wish to change it you'll need to add a line or two of code into the ozpost.php file (one to test, the other to change).
Cheers
Rod
Thanks,
At least I know where it comes from now.. as for me writing code... hmmmmm...
Any chance you could offer some input ?
Cheers,
Mike
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
It's a bug.
Cheers
Rod
Thanks for the quick response Rod. Do you have anymore info on the bug. I have seen in some posts that it does display sometimes. Just wondering if there is a work around.
-
Re: ozpost shipping module
Quote:
Originally Posted by
integrity_designs
How would this be done though? (which files etc) I am only just learning PHP / Zen Cart etc.
Kind Regards
If anyone can work this out, I for one would love to know! :smile:
-
Re: ozpost shipping module
Quote:
Originally Posted by
Mike_Dean
Thanks,
At least I know where it comes from now.. as for me writing code... hmmmmm...
Any chance you could offer some input ?
Cheers,
Mike
In the ozpost.php file, search for the line that reads:
$description = ($xml->quote[$i]->description);
Then immediately after this, add the following:
if ( $description == "3kg Prepaid Satchel Express") {
$description = "Express Satchel" ;
}
I *think* that should work without any repercussions, but haven't actually tried it.
Cheers
Rod
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
In the ozpost.php file, search for the line that reads:
$description = ($xml->quote[$i]->description);
Then immediately after this, add the following:
if ( $description == "3kg Prepaid Satchel Express") {
$description = "Express Satchel" ;
}
I *think* that should work without any repercussions, but haven't actually tried it.
Cheers
Rod
Your blood is worth bottling... worked perfectly
Thanks Rod...
-
Re: ozpost shipping module
Quote:
Originally Posted by
rhodie1000
Thanks for the quick response Rod. Do you have anymore info on the bug. I have seen in some posts that it does display sometimes. Just wondering if there is a work around.
There are few of lines of code that didn't get ported from 'austpost' over to 'ozpost' - So the posts that say it 'displays sometimes' are either pure BS or they are referring to the older/obsolete module.
There are two fixes/workArounds.
If you just want to get rid of the 'xx's revert the tpl_modules_shipping_estimator.php file back to the original zencart copy.
If you want the dimension data to be displayed (so instead of "xx" it will show something like "2x3x4" you'll need to add the 'missing' lines to the oppost.php file.
Specifically: Locate the line that reads"
if (MODULE_SHIPPING_OZPOST_WEIGHT_FORMAT == "kgs") {$parcelweight = $parcelweight * 1000 ; }
Then immediatly after this line add the following:
$_SESSION['swidth'] = $parcelwidth ;
$_SESSION['sheight'] = $parcelheight ;
$_SESSION['slength'] = $parcellength ;
$_SESSION['boxes'] = $shipping_num_boxes ;
Cheers
Rod
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
There are few of lines of code that didn't get ported from 'austpost' over to 'ozpost' - So the posts that say it 'displays sometimes' are either pure BS or they are referring to the older/obsolete module.
There are two fixes/workArounds.
If you just want to get rid of the 'xx's revert the tpl_modules_shipping_estimator.php file back to the original zencart copy.
If you want the dimension data to be displayed (so instead of "xx" it will show something like "2x3x4" you'll need to add the 'missing' lines to the oppost.php file.
Specifically: Locate the line that reads"
if (MODULE_SHIPPING_OZPOST_WEIGHT_FORMAT == "kgs") {$parcelweight = $parcelweight * 1000 ; }
Then immediatly after this line add the following:
$_SESSION['swidth'] = $parcelwidth ;
$_SESSION['sheight'] = $parcelheight ;
$_SESSION['slength'] = $parcellength ;
$_SESSION['boxes'] = $shipping_num_boxes ;
Cheers
Rod
Thanks once again for your help Rod. Worked like a charm.
Just to correct the typo for any newbie like me, oppost = ozpost.
-
Re: ozpost shipping module
Is the server down again? It's not working at the moment...
-
Re: ozpost shipping module
Quote:
Originally Posted by
somedood
Is the server down again? It's not working at the moment...
No problems that I can see.
-
Re: ozpost shipping module
Hi Rod,
I'm having trouble with our ozpost module. It's been installed and working fine for a number of months now without problems. All of a sudden last night the module's stopped working.
During checkout, when clicking on to continue from the shopping cart, the page hangs. If you go back then go forward again, the page loads but there are no options displayed for shipping by auspost (only other installed modules). Hence does not look like a server problem.
A similar problem exists for the "estimate shipping" function.
I've checked the module and it's enabled. We haven't changed anything on the site.
The website is:
http://www.chromeaudio.com.au
Any help would be greatly appreciated.
Thanks.
-
Re: ozpost shipping module
Quote:
Originally Posted by
somedood
Hi Rod,
I'm having trouble with our ozpost module. It's been installed and working fine for a number of months now without problems. All of a sudden last night the module's stopped working.
The server appears fine, and the log files don't show any connections from your host for the last 24hours.
However, I've just checked the URL you gave and I was able to recieve a valid quote on the *one* product item I tested with. This also produced an entry in the log file.
So, your problem is either related to a specific product (or products), OR I'm suspecting that since you have changed nothing, and we've changed nothing, then your webhost must have changed something. If this is the case, it looks like they've changed it back.
Cheers
Rod
-
Re: ozpost shipping module
Hi Rod,
Yes it's totally weird. The problem just went away by itself yesterday evening. I'm not sure why, but I suspect it's some setting on our server. Just hope it doesn't happen again...
Anyway, thanks for your help.
-
Re: ozpost shipping module
Hello,
When I add up to 20 balls of wool to the shoppingcart the ozpost is ok; but if I add 30+ balls of wool I get the error
ERROR: 150cm exceeds the Maximum 105cm length allowed. Using AP Flat Rate
Is there any way to get ozpost to calculate multiple parcels if they contain numbers of small items?
E.g.
http://www.bubs2grubsknitting.com.au...x&cPath=44_121
-
Re: ozpost shipping module
Quote:
Originally Posted by
vandiermen
Hello,
When I add up to 20 balls of wool to the shoppingcart the ozpost is ok; but if I add 30+ balls of wool I get the error
ERROR: 150cm exceeds the Maximum 105cm length allowed. Using AP Flat Rate
Is there any way to get ozpost to calculate multiple parcels if they contain numbers of small items?
No.
The older AustPost module *did* attempt the splitting of parcels if they exceeded the weight or size limits imposed by the carrier, but this often caused problems whereby such parcels were 'split' in physically impossible ways. The code needed perform this task reliably is going to take someone with a lot more skills than I have (In fact, this is considered to be 'the holy grail' of shipping modules (other threads cover the issues involved in a lot more detail)
The long term plan is that eventually the ozpost module will support quotes from other carriers (eg, TNT) that will accept the larger/heavier items.
Cheers
Rod
-
Re: ozpost shipping module
Thanks for letting me know.
I understand the problem with sending multiple the figures to aust post server, etc.
-
Invalid postage calculation for ECI goods
Hi Rod,
I've run into a rather expensive problem.
I've had a customer order goods that weighted 8.56KG, and requested for them to be shipped by ECI Merchandise.
The Ozpost shipping module has charged $96.70 for the package.
The post office charged $200.00 when I shipped it. :shocking:
The error has cost me $100.00
I then went to the online Australia post calculator and it quotes $201.00 for ECI parcels between 7.5Kg and 10Kg
Any clues to why this might have occurred? And more importantly how I can debug/ fix it?
Cheers,
Peter.
-
Re: Invalid postage calculation for ECI goods
Quote:
Originally Posted by
Peter Homann
Hi Rod,
I've run into a rather expensive problem.
I've had a customer order goods that weighted 8.56KG, and requested for them to be shipped by ECI Merchandise.
The Ozpost shipping module has charged $96.70 for the package.
The post office charged $200.00 when I shipped it. :shocking:
The error has cost me $100.00
I then went to the online Australia post calculator and it quotes $201.00 for ECI parcels between 7.5Kg and 10Kg
Any clues to why this might have occurred? And more importantly how I can debug/ fix it?
Cheers,
Peter.
A URL to the offending product would be a good start. Unless/until I can see for myself exactly what data was sent to the server and can verify the under quoting there isn't much that I can do, and unless the data sent is different than what you think it is there probably isn't anything you can do either.
Cheers
Rod
-
Re: ozpost shipping module
im currently not getting the AP flat rate error option. it is displayed in the shipping estimator ok, but not in the checkout options.
i traced the error and found the failure in tpl_checkout_shipping_default.php
appx. line 68:
PHP Code:
if ($quotes[$i]['module'] != '') { // Standard
the quotes array returned if for example the girth is too big is failing this test, and then not being displayed as an option.
it is because the arrays returned as $quotes in this case doesnt have $quotes[$i]['module'] set. so i tried setting it, and i realise it also doesnt have $quotes[$i]['id'] set, and also the $quotes[$i]['methods']['id] is set wrong to the $title variable rather than some code like 'flat' or 'rrp' ..
no im not really saying its definately a problem with your code as youd think something like this would have come up b4 and been fixed. but perhaps you can help me ??
here is a var_dump on the suspect $quotes:
PHP Code:
array(2) { ["icon"]=> string(137) "Aussie Post" ["methods"]=> array(1) { [0]=> array(3) { ["id"]=> string(141) "Aussie Post" ["title"]=> string(253) "Aussie Post ERROR: (31+68.00) x 2cm exceeds the Maximum 140cm girth allowed. Using AP Flat Rate." ["cost"]=> string(5) "25.00" } } }
and for reference here is a var_dump on a healthy $quotes:
PHP Code:
array(3) { ["id"]=> string(6) "ozpost" ["module"]=> string(141) "Aussie Post" ["methods"]=> array(7) { [0]=> array(3) { ["id"]=> string(3) "RPP" ["title"]=> string(327) " Regular Parcel 1 1 days Est Delivery " ["cost"]=> float(4.35) } [1]=> array(3) { ["id"]=> string(4) "PPS5" ["title"]=> string(342) " 500gm Prepaid Satchel 1 1 days Est Delivery " ["cost"]=> float(5.7) } [2]=> array(3) { ["id"]=> string(3) "REG" ["title"]=> string(333) " Registered Parcel 2 2 days Est Delivery " ["cost"]=> float(7.15) } [3]=> array(3) { ["id"]=> string(3) "EXP" ["title"]=> string(327) " Express Parcel 1 1 days Est Delivery " ["cost"]=> float(8) } [4]=> array(3) { ["id"]=> string(5) "PPSE5" ["title"]=> string(359) " 500gm Prepaid Satchel Express 1 1 days Est Delivery " ["cost"]=> float(8) } [5]=> array(3) { ["id"]=> string(4) "RPPi" ["title"]=> string(328) " Insured Parcel 2 2 days Est Delivery " ["cost"]=> float(9.75) } [6]=> array(3) { ["id"]=> string(4) "EXPi" ["title"]=> string(330) " Insured Express 1 1 days Est Delivery " ["cost"]=> float(13.4) } } }
zencart and ozpost version is latest
-
Re: ozpost shipping module
my fix (for now) is to change:
(girth example, but works for other 2 error sections too)
PHP Code:
// Check girth
if($girth > $MAXGIRTH_P )
{
$cost = $this->_get_error_cost($dest_country) ;
if ($cost == 0) return ;
$methods[] = array( 'id' => $this->title, 'title' => $this->title . '<font color=#FF0000> ERROR: (' . $parcelheight . "+" . $parcelwidth . ') x 2cm exceeds the Maximum 140cm girth allowed.</font>'. $FlatText, 'cost' => $cost ) ;
$this->quotes['methods'] = $methods; // set it
return $this->quotes;
} // exceeds AustPost maximum girth. No point in continuing.
to:
PHP Code:
// Check girth
if($girth > $MAXGIRTH_P )
{
$cost = $this->_get_error_cost($dest_country) ;
if ($cost == 0) return ;
$methods[] = array( 'id' => 'Error', 'title' => $this->title . '<font color=#FF0000> ERROR: (' . $parcelheight . "+" . $parcelwidth . ') x 2cm exceeds the Maximum 140cm girth allowed.</font>'. $FlatText, 'cost' => $cost ) ;
$this->quotes['methods'] = $methods; // set it
$this->quotes['module'] = $this->title;
$this->quotes['id'] = 'ozpost';
return $this->quotes;
} // exceeds AustPost maximum girth. No point in continuing.
:lamo:
-
Re: ozpost shipping module
Quote:
Originally Posted by
hayden
im currently not getting the AP flat rate error option. it is displayed in the shipping estimator ok, but not in the checkout options.
This bug has been fixed in ozpost V1.0.6, which should be found attached to one on my messages in this forum.
Cheers
Rod
-
Re: ozpost shipping module
so why hasnt the zencart/free-addons download been updated ??
-
Re: ozpost shipping module
Quote:
Originally Posted by
hayden
so why hasnt the zencart/free-addons download been updated ??
Not enough people have been affected by the problem.
Lack of time to create a new distribution package.
Lack of interest/motivation to create a new distribution package.
Always busy working on the next update (v2.x.x with TNT support).
Pick any or all of the above.
Cheers
Rod
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
Is this the only update between the download in the add ons rod?
Cheers
PS I know its a big ask but any chance you can come up with some simple intructions (or some sql patch?? :))) based on the new fields added with ozpost to help with product uploads via easypopulate?
-
Re: ozpost shipping module
Quote:
Originally Posted by
michellewardley
Is this the only update between the download in the add ons rod?
Yes, but please note that the update in the forum doesn't have a complete set of files, so you'll still need to download and install the files from the add-ons and then replace the relevant files from the 1.0.6 .zip file in the forum.
Quote:
Originally Posted by
michellewardley
PS I know its a big ask but any chance you can come up with some simple intructions (or some sql patch?? :))) based on the new fields added with ozpost to help with product uploads via easypopulate?
Not any time in the foreseable future (plus I'm not really sure what you are after), but if you want to give it a go yourself, anywhere in easypopulate that has a reference to products_weight would simply need to be expanded/replicated to include products_length, products_width and products_height.
Cheers
Rod
-
Re: ozpost shipping module
but if i already have it installed then its just a case of that patch file?
-
Re: ozpost shipping module
Quote:
Originally Posted by
michellewardley
but if i already have it installed then its just a case of that patch file?
Correct.
Cheers
Rod
-
Re: ozpost shipping module
Hello Rod and everyone here,
I really appreciate this ozpost module. It is amazing and has benefited me more than a lot! Thank you, Rod. :smile:
Now I am wondering if there is a way to show the shipping cost in a table of different shipping options (i.e., just like the result we get when estimating the postage on shopping cart page) on each product description page.
Since I know there is some module that can determine the viewer's country and city simply by his IP address, I am hoping there is also a way to predetermine a viewer's location and automatically calculate the postage by the OZpost module, and then show the result of the shipping cost in somewhere of the product description area. If the viewer has already logged in, then his recorded location/address will be directly used for the this calculation...
Is this practicable? And any idea to make this 'come true'? I really need your help!!
Thanks so much for your time and attention.
Regards,
Brian
-
Re: ozpost shipping module
Quote:
Originally Posted by
bnamodel
Now I am wondering if there is a way to show the shipping cost in a table of different shipping options (i.e., just like the result we get when estimating the postage on shopping cart page) on each product description page.
I'd say that yes, this probably is possible.
Quote:
Originally Posted by
bnamodel
Since I know there is some module that can determine the viewer's country and city simply by his IP address,
This is true, but the accuracy isn't to be relied upon because IP addresses and Geographical locations have no relationship with each other other than 3rd party databases.
Quote:
Originally Posted by
bnamodel
I am hoping there is also a way to predetermine a viewer's location and automatically calculate the postage by the OZpost module and then show the result of the shipping cost in somewhere of the product description area. If the viewer has already logged in, then his recorded location/address will be directly used for the this calculation...
I'd say that yes, this is possible.
Quote:
Originally Posted by
bnamodel
Is this practicable? And any idea to make this 'come true'? I really need your help!!
OK, now that I've told you that all of your dreams are possible, time for the let down.
None of the things you are asking for is specifically 'ozpost' related. The reason being is that ozpost, like all the other shipping modules, only serve one very specific purpose, and that is to supply a shipping cost based on certain input parameters.
How or where these costs are displayed or used isn't a function of the shipping module(s) - These are controlled either by zencart itself, or the template files that are being used.
Similar applies in regards to the viewers location (geoIP) and it's relationship with ozpost and/or other shipping module(s) - The location data needs to be supplied to the shipping module(s). The shipping modules have no means or need to determine this information themselves, it just isn't a part of their required functionality.
What this basically all means is that to change how the shipping quotes 'look' you'll need to create/edit your own template file(s).
It is true that the ozpost shipping module does already come with a pre-modified template file (tpl_modules_shipping_estimator.php), but I have intentionally made as few changes as possible from the original file in order to minimise any maintainance or compatibility issues - In other words, if you feel you are up to the task (or know of someone that is) then a few tweaks of your custom tpl_modules_shipping_estimator.php file will have it looking however you wish :-)
Tip: This same file can also be used to set a destination location for visitors as well (in fact the trapping for an undefined destination is the reason I modified tpl_modules_shipping_estimator.php in the first place).
Anyway, to summarise .. I think all of your requirements can be acheived with further customisation of the tpl_modules_shipping_estimator.php file, but do keep in mind that this isn't an 'ozpost' file - it is core zencart file that it used by all of the shipping modules, so treat with caution.
Cheers
Rod
-
Re: ozpost shipping module
Thank you very much for the advise, Rod. If possible, I will make an effort to achieve this.
-
Re: ozpost shipping module
Hey Rod or anyone,
I have deselected all shipping methods except Regular Parcel (within Australia) and Air Parcel (for overseas) but I am still getting about 7 options coming up for the customer. What have I done wrong?
TIA, Jen
-
Re: ozpost shipping module
Hey, ignore this question. I refreshed about three times and it stopped happening - just the one option as I selected. Jen
-
1 Attachment(s)
Re: ozpost shipping module
Hello People,
Awhile ago I had a problem with the error messages I got when people added too many products to their cart and the package size dimensions were to large or the weight was too much. The price on error was set to 0 by the store owner so I thought it did not work when there was too many things in the cart.
I fixed this by putting the "price on error back to "25.00,99.99" and turning the errors in to comments such as "Item is over 25Kg's: Fate rate" then we just use fastway or another courier to send those items.
The errors are easy to edit (make black and to turn into comments) in
/public_html/includes/modules/shipping/ozpost.php
e.g. my edit attached
-
Re: ozpost shipping module
I've been getting a number of these errors recently, have there been server issues?
Unexpected error (no valid methods). Using AP Flat Rate.
Thanks
Jazzah
-
Re: ozpost shipping module
Quote:
Originally Posted by
jazzah
I've been getting a number of these errors recently, have there been server issues?
Unexpected error (no valid methods). Using AP Flat Rate.
Thanks
Jazzah
Sadly, yes. The server has had several reboots today, culminating in the replacement of one of the hard drives.
Hopefully all is well again now (although a little sluggish while the RAID array is rebuilding itself).
Cheers
Rod
-
Re: ozpost shipping module
Thanks Rod, Just wanted to check as we had some security work done on our site and wanted to make sure we didn't upset any ozpost apples!
-
Re: ozpost shipping module
Can't work this one out... have installed OzPost with just one option (regular parcel/air parcel) for within Australia/international. Doing some test orders to try it out. If I order one DVD it comes back with postage of $4.35, but if I change the order to 20 DVDs the postage remains at $4.35. I've got the debugger on and I can see that it's stacking 20 items on top of each other to get the correct dimensions, and the weight is correct, but still just $4.35? What's going wrong?
-
Re: ozpost shipping module
Quote:
Originally Posted by
jenpen
If I order one DVD it comes back with postage of $4.35, but if I change the order to 20 DVDs the postage remains at $4.35.
What do you think the postage should be?
Do you have a URL so I can see for myself what the problem is?
Cheers
Rod
-
Re: ozpost shipping module
Quote:
Originally Posted by
vandiermen
Hello People,
[snip]
I fixed this by putting the "price on error back to "25.00,99.99" and turning the errors in to comments such as "Item is over 25Kg's: Fate rate" then we just use fastway or another courier to send those items.
[snip]
Some time back I suggested the flat error rate be replaced by a "weight x rate/kg" or "weight x rate/######" formula. Since I have yet to work out how to do this, I have replaced the "25.00, 99.99" with "0,0" and installed the "RFQ Shipping and Payment Modules" to force a shipping quote.
-
Re: ozpost shipping module
Quote:
What do you think the postage should be?
Do you have a URL so I can see for myself what the problem is?
Hi Rod,
Thanks for looking into this. I don't know what the postage should be, but definitely more than $4.35.
I just went back and tried to purchase 100 DVDs, out of interest, but now there's no shipping method available at all and I can't get the cart to move onto the checkout screen. So, a new problem. I have only OzPost enabled, no other shipping methods. Have you ever seen this happen?
http: //www.consciouslightproductions.com/
It's presently password-protected (admin, pw123)
Much appreciated, Jen
-
Re: ozpost shipping module
Quote:
Originally Posted by
jenpen
Can't work this one out... have installed OzPost with just one option (regular parcel/air parcel) for within Australia/international. Doing some test orders to try it out. If I order one DVD it comes back with postage of $4.35, but if I change the order to 20 DVDs the postage remains at $4.35. I've got the debugger on and I can see that it's stacking 20 items on top of each other to get the correct dimensions, and the weight is correct, but still just $4.35? What's going wrong?
The log files indicate that the weight of your DVD is 1gm. 20 of them = 20gm (plus 10% tare = 22gm).
A 22gm parcel costs the same as a 1gm parcel, namely $4.35.
You won' get accurate quotes unless you provide accurate data.
Cheers
Rod
-
Re: ozpost shipping module
Got you - sorry, I thought Aussie Post calculated the deadweight from the dimensions and actual weight was not relevant.
Thanks, Jen
-
Re: ozpost shipping module
Quote:
Originally Posted by
jenpen
I just went back and tried to purchase 100 DVDs, out of interest, but now there's no shipping method available at all
Your DVD's are set with a height of 4cm.
100 of these stacked on top of each other gives a height/length of 400cm.
This exceeds the 105cm limit imposed by Australia Post. They will not accept the parcel and the ozpost module reflects this by not providing a quote.
To cater for larger parcels than Australia Post will handle you'll need to provide an alternate shipping method.
Cheers
Rod.
ps. A new version of ozpost is currently being tested. The new version will support TNT shipping rates to help overcome the AustPost limits. However, a TNT account will be required.
pss. If there are any ozpost users reading this and has a TNT account and would like to help with the testing please PM me.
-
Re: ozpost shipping module
Quote:
Originally Posted by
jenpen
Got you - sorry, I thought Aussie Post calculated the deadweight from the dimensions and actual weight was not relevant.
Thanks, Jen
Both the weight and the dimensions are important.
The weight being most important because it is used in all calculations. The dimensions are required to enable the module the ability to 'sort' according to the size of the "parcel" - eg, for letters, large letters, different sized prepaid satchels, maximim limits, and the cubing rules for parcels.
Cheers
Rod
-
Re: ozpost shipping module
Quote:
ps. A new version of ozpost is currently being tested. The new version will support TNT shipping rates to help overcome the AustPost limits. However, a TNT account will be required.
This is excellent news. I have another client who is unable to use OzPost because he's always sending oversized cartons. He'll be happy to use TNT.
Thanks Rod for your prompt replies. Jen
-
Re: ozpost shipping module
Are they still fiddling with the AP server?
I have parcels within Aust calculating correctly.
And letter weights displaying correctly but displaying the wrong price
eg
Letters to 125g adding $2.10
Letters to 250g adding $3.00
Letters to 500g adding $6.05
And overseas parcels / letters not working at all anymore (which worked fine early yesterday morning)
-
Re: ozpost shipping module
OK, so now that I'm just about there with sorting out Ozpost, the client has decided that they will get a distributor for the US. So they wish to take orders from US customers and charge for goods plus shipping, but only local US shipping, not international. The US people will handle the distribution.
I can use table rates just for US customers, easy, but is there a way to prevent Ozpost coming up as an option for US customers?
Any ideas much appreciated... Jen
-
Re: ozpost shipping module
Quote:
Originally Posted by
jenpen
but is there a way to prevent Ozpost coming up as an option for US customers?
Any ideas much appreciated... Jen
To prevent it coming up for all overseas orders is just a matter of deselecting the overseas shipping methods.
To prevent it showing for US customers only will require custom coding.
You'll probably need similar custom coding in the UPS module too (to prevent it showing up for Australian customers).
Cheers
Rod
-
Re: ozpost shipping module
I will need to use OzPost for "rest of world". I might just use Table Rates (for US zone definition only) rather than UPS. And I was thinking that if I leave OzPost as is, it will still come up as an option for US customers but the charge will be so much higher that they won't select it (unless they're really silly, then let them pay!)
-
ozpost V2.0.3
Attachment 7353
Hi Folks,
Attached to this post is a zip file containing the latest ozpost module. (ozpost2.0.3,zip)
As with previous update postings into the forum this is not a complete distribution file set. It only contains the two files required to upgrade an existing installation.
As well as bugfixes, this new update introduces support for TNT and FastWay Courier quotes.
I still have a little more work to do with some of the cosmetic aspects of this upgrade, but the basic functionality seems quite stable so I figured I'd let you guys n gals have a chance to try it out before I package it up and upload it to the downloads area.
Please let me know of any problems or errors that you may find.
Cheers
Rod
-
Re: ozpost shipping module
Hi Rod,
I have installed this ozpost V2.0.3 over my existing version of the latest ozpost.
I have noticed that in admin there are couple of (5) empty text boxes under the 'Express Courier International Merchandise ' and just above the Handling Fee - Letters.
There are also empty text boxes under 'Handling Fee - ECI Merchandise
Handling Fee - ECI Merchandise.'
What are they for?? there are no text between or next to them . They are just blank text boxes.
-
Re: ozpost shipping module
Quote:
Originally Posted by
jenpen
I will need to use OzPost for "rest of world". I might just use Table Rates (for US zone definition only) rather than UPS. And I was thinking that if I leave OzPost as is, it will still come up as an option for US customers but the charge will be so much higher that they won't select it (unless they're really silly, then let them pay!)
Quote:
Originally Posted by
oavs
Hi Rod,
I have installed this ozpost V2.0.3 over my existing version of the latest ozpost.
I have noticed that in admin there are couple of (5) empty text boxes under the 'Express Courier International Merchandise ' and just above the Handling Fee - Letters.
There are also empty text boxes under 'Handling Fee - ECI Merchandise
Handling Fee - ECI Merchandise.'
What are they for?? there are no text between or next to them . They are just blank text boxes.
Click on the 'uninstall' button and then the 'install' button. This will force the database tables to get updated with the 'missing' information (I hope).
Cheers
Rod
-
Re: ozpost V2.0.3
Quote:
Originally Posted by
RodG
this new update introduces support for TNT and FastWay Courier quotes.
I need to point out that for TNT quotes you'll need a valid TNT account. You can sign up at https://www.tntexpress.com.au/intera...asps/login.asp
If you don't have a TNT account but wish to check out this aspect of the module anyway, for a short period only you can use the following test account:
Account#: 11111111 (that's eight one's)
User: leave blank
Password: leave blank
Important Note:
Quotes obtained using this test account may not be accurate for all users. TNT prices are "individually" customised for each account holder (depending on usage).
Cheers
Rod
-
Re: ozpost V2.0.3
Hi Folks,
A problem has been found with the TNT authentication. Please update to V2.0.4 (attached to this posting).
Keep that feedback coming :smile:
Cheers
Rod
-
Re: ozpost shipping module
Is there something wrong with the servers at the moment?
My site as not been able to complete a purchase due to the OZPOST module unable to calculate shipping. This has been going on now for about 24 hours.
Thanks,
Shane
-
Re: ozpost shipping module
Hi Shane,
Just checked and it works fine on all of my sites. You can check one of them at http://www.ozsilver.com to see for yourself. It maybe a server problem rather than ozpost
Tassos
-
Re: ozpost shipping module
Quote:
Originally Posted by
bolts
Is there something wrong with the servers at the moment?
The log files don't suggest that there have been any problems.
If you can provide a URL to your store I'll be able to test and check for your specific site.
Cheers
Rod
-
Re: ozpost shipping module
-
Re: ozpost shipping module
Quote:
Originally Posted by
bolts
The problem is combination of your product data and the methods that you have allowed - At least that is what I found with the first item I randomly picked from your store.
The product Anderson PP15/45 Insertion & Extraction Tool has weight and size dimensions that allow it to be mailed at letter rates, but you have disallowed letter rates as an acceptable shipping method, and at the same time the module has been set to hide the parcel rates if the item is letter sized.
None of the above will explain why "has been going on now for about 24 hours" (as per your original post), unless of course you made a change to one (or more) of your settings or product data in the last 24 hours (but you would have mentioned that, wouldn't you?) so for all I know there may still be an undiagnosed problem and I just got lucky (unlucky?) in that the random item I picked for testing is actually a different problem than the one you are reporting?
Cheers
Rod
-
Re: ozpost shipping module
Thanks Rod,
That explains a few "strange" things that happen. I guess if I knew what I was doing, it would be a lot easier!
Regards,
Shane
-
Re: ozpost shipping module
Hi Rod,
I have been running your original Ozzy Post module.
Now, I have installed your new ozpost V2.0.4.
It seems that both are still treated as 2 distinct modules.
If I only enabled the Ozpost V2.0.4 then it didn't process any results.
However if both are enabled then I get results.
I suspect that the new V2.0.4 is not actually being used even though it is active.
Do I require both modules to be active ?
Is the new V2.0.4 dependant on the old ozzy post module ?
Cheers
Matt
-
Re: ozpost shipping module
Quote:
Originally Posted by
matthewrossser
Hi Rod,
I have been running your original Ozzy Post module.
First things first, what do you consider to be the "original Ozzy Post" ?
A LOT of people confuse the "AustPost" module with the "ozpost" module.
These are two entirely separate/different modules.
The "AustPost" module(s) are now long obsolete and cannot produce accurate quotes. This line of modules has been removed from the zencart downloads for this reason.
Quote:
Originally Posted by
matthewrossser
Now, I have installed your new ozpost V2.0.4.
This version still hasn't been "officially" released. The .zip file found in the forum is 'incomplete' and requires ozpost.v1.0.2 (from the downloads section) to be installed in order to function.
Quote:
Originally Posted by
matthewrossser
It seems that both are still treated as 2 distinct modules.
This suggests to me that you are mixing/confusing the "AustPost" module with the 'ozpost' module. They ARE 2 distinct modules.
Quote:
Originally Posted by
matthewrossser
Do I require both modules to be active ?
No, but there was a period of about 6-12 months when both the AustPost and the ozpost modules could be active at the same time, each producing their own set of quotes. (Great for testing/debugging, but very confusing for customers).
Quote:
Originally Posted by
matthewrossser
Is the new V2.0.4 dependant on the old ozzy post module ?
The V2.0.4.zip available in the forum is dependant on ozpost.v1.0.2 which is available in the downloads section. The 2 files contained in the V2.0.4.zip are drop-in replacements for the similalrly named files found in v1.0.2
Cheers
Rod
-
Re: ozpost shipping module
Hi Rod,
thanks for the the very helpfu information.
Yes... it was indeed the old module "austpost"
In the process of installing your version as we speak.
Thanks for all your help
:-)
Matt
-
Re: ozpost shipping module
G'day Folks,
Just a short post to let you know that I've just uploaded the latest ozpost module to the downloads section. ozpost_v2.0.5.zip
It'll probably take a week or so before the devs check and release it, so UNTIL this time, for those that simply can't wait, you can currently download it from here
Feedback and bug reports welcome :-)
Cheers
Rod
-
Re: ozpost shipping module
Hi Rod,
We used your latest ozpost version on v1.3.9, we got this error:
Unexpected error. No valid method. Using static rates.
The above error only shows up when we used Australian shipping address, but no issue on international address.
Here is my client store (on a testing sub folder, not live store):
http://www.outdoorking.com/teststore
Could you please let us know what is causing this issue?
-
Re: ozpost shipping module
Quote:
Originally Posted by
milkyway
Hi Rod,
We used your latest ozpost version on v1.3.9, we got this error:
Unexpected error. No valid method. Using static rates.
The above error only shows up when we used Australian shipping address, but no issue on international address.
Here is my client store (on a testing sub folder, not live store):
http://www.outdoorking.com/teststore
Could you please let us know what is causing this issue?
My randomly selected item was:
Little Wonder Blade Belt L177
My semi random destination postcode was : 2000
I recieved the following quotes:
Store Pickup (Walk In) $5.00
http://www.outdoorking.com/teststore...tpost_logo.jpg http://www.outdoorking.com/teststore...ozpost_reg.jpg
$12.65
http://www.outdoorking.com/teststore...tpost_logo.jpg http://www.outdoorking.com/teststore...post_ppse3.jpg
$14.30
Table Rate (0.02kgs) (Best Way) $12.50
-----------------------------------------------
Could you please let me know what is causing this issue?:dontgetit
Cheers
Rod
-
Re: ozpost shipping module
Thank you for your testing Rod, perhaps we used invalid address.
We will give a try again. :clap:
-
Re: ozpost shipping module
Hi Just wondering if someone can help.
I have ozpost installed on my site and it did have a area in the products page where you can add dimentions of a product this has now dissappeared somewhere and im not sure as to how to get it back and help would be great thank you.
-
Re: ozpost shipping module
Quote:
Originally Posted by
uniqueliving
Hi Just wondering if someone can help.
I have ozpost installed on my site and it did have a area in the products page where you can add dimentions of a product this has now dissappeared somewhere and im not sure as to how to get it back and help would be great thank you.
There are three files in the /admin/ folder of the ozpost.zip file - Use these to replace the same named files in your store and you'll have the ability to add/edit dimensions again.
Cheers
Rod
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
There are three files in the /admin/ folder of the ozpost.zip file - Use these to replace the same named files in your store and you'll have the ability to add/edit dimensions again.
Cheers
Rod
Thanks Rod
do you know why they would have changed on me at all I havent added any new modules
-
Re: ozpost shipping module
Quote:
Originally Posted by
uniqueliving
Thanks Rod
do you know why they would have changed on me at all I havent added any new modules
Did you upgrade zencart itself recently ... say to v1.3.9x ? 'Cos that'd do it.
Even a restore of the /admin/ files will do it.
If you've done neither of these things it may be prudent to look for any other changes.
Cheers
Rod
-
Re: ozpost shipping module
Hi Rod
I found what it is its the hidden wholesale can you please tell me how i can rune these 2 together. When i have wholesale there is no where to put sizes of the product if i change the admin files back i cant get wholesale to work any ideas
-
Re: ozpost shipping module
Quote:
Originally Posted by
uniqueliving
Hi Rod
I found what it is its the hidden wholesale can you please tell me how i can rune these 2 together. When i have wholesale there is no where to put sizes of the product if i change the admin files back i cant get wholesale to work any ideas
You meed to merge the files that are common to both modules.
Please read the file "patching.txt" that is supplied with the distribution .zip file for additional information.
Cheers
Rod
-
Re: ozpost shipping module
Hi Rod
Do you know of anyone that might be able to merge these files for me as i have no idea what i am doing with them
-
Re: ozpost shipping module
Hi Rod,
I'm brand new to Zen Cart and I was looking at installing this module as it supports Fastway couriers.
After having a look at the txt files included with the version I just downloaded (1.0.2), I was wondering about the back end processing of this module.
If I'm reading correctly, it talks to a private website (ozpost.vcsweb.com) to get the prices rather than talking to Fastway directly. Is this something that can be disabled / changed? I'm worried about what would happen to my shop if that website went down for any reason (DOS attack / account over monthly transfer quota etc).
Also, I tried to download the latest version as per one of your other posts (about it being compatible with 1.3.9), but the link you gave (http://vcsweb.com/rod/ozpost_v2.0.5.zip) gets a error.
Thanks!
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
You meed to merge the files that are common to both modules.
Please read the file "patching.txt" that is supplied with the distribution .zip file for additional information.
Cheers
Rod
Hi Rod
Ok i had a go at doing it myself i think its all working however the weight box on my admin where the products are is in the wrong position can you please tell me how to fix this.
Here is the link to my screen shot https://www.uniqueliving.com.au/zencart/screen.jpg[IMG]
-
Re: ozpost shipping module
Quote:
Originally Posted by
deviouscow
I was looking at installing this module as it supports Fastway couriers.
After having a look at the txt files included with the version I just downloaded (1.0.2),
V1.0.2 doesn't support Fastway. You need V2.x.x
Quote:
Originally Posted by
deviouscow
I was wondering about the back end processing of this module.
If I'm reading correctly, it talks to a private website (ozpost.vcsweb.com)
ozpost.vcsweb.com is no more 'private' than zen-cart.com, austpost.com.au or fastway.com.au, and less private than tntexpress.com.au.
Quote:
Originally Posted by
deviouscow
to get the prices rather than talking to Fastway directly. Is this something that can be disabled / changed?
Not without writing your own module.
Quote:
Originally Posted by
deviouscow
I'm worried about what would happen to my shop if that website went down for any reason (DOS attack / account over monthly transfer quota etc).
The ozpost module will still be able to supply *A* quote if the ozpost server becomes unavailable (fixed price, weight based or item based), so in this regard your shop would behave more 'normal' than if you had a module that contacted Fastway directly and *thier* site went down.
Quote:
Originally Posted by
deviouscow
Also, I tried to download the latest version as per one of your other posts (about it being compatible with 1.3.9), but the link you gave gets a error.
Thanks!
The link posted in the forum was temporary only. The copy I placed into the downloads section was made available sometime over the last 24hours or so, so there's no need to leave the temp copy available.
Incidently, even ozpost V1.x.x is compatible with zen1.3.9, but V1 doesn't have the Fastway or TNT support.
Cheers
Rod
-
Re: ozpost shipping module
Quote:
Originally Posted by
uniqueliving
Hi Rod
Ok i had a go at doing it myself i think its all working
If it appears to be working, then it is working :-)
Of those 3 files you needed to change:
One of them controls what is displayed on screen when entering the data, another is used for the preview. and the last one does the actual database updates, so........
Quote:
Originally Posted by
uniqueliving
however the weight box on my admin where the products are is in the wrong position can you please tell me how to fix this.
I can't tell you how to fix it without seeing the code.
From memory, the file you'll be needing to edit is collect_info.php. It shouldn't be too difficult to spot the cause - It's probably a "td" or "tr" tag missing or transposed.
Cheers
Rod
-
Re: ozpost shipping module
Thanks for the quick reply RodG. I'm a lot less stressed now! :smile:
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
If it appears to be working, then it is working :-)
Of those 3 files you needed to change:
One of them controls what is displayed on screen when entering the data, another is used for the preview. and the last one does the actual database updates, so........
I can't tell you how to fix it without seeing the code.
From memory, the file you'll be needing to edit is collect_info.php. It shouldn't be too difficult to spot the cause - It's probably a "td" or "tr" tag missing or transposed.
Cheers
Rod
Hi Rod thanks for your help
This is the code from collect_info.php
If you could please have a look it would be much appreciated.
thanks
<?php
/**
* @package admin
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: collect_info.php 3009 2006-02-11 15:41:10Z wilt $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$parameters = array('products_name' => '',
'products_description' => '',
'products_url' => '',
'products_id' => '',
'products_quantity' => '',
'products_model' => '',
'products_image' => '',
'products_price' => '',
'products_price_w' => '',
'products_virtual' => DEFAULT_PRODUCT_PRODUCTS_VIRTUAL,
'products_weight' => '',
'products_height' => '',
'products_length' => '',
'products_width' => '',
'products_date_added' => '',
'products_last_modified' => '',
'products_date_available' => '',
'products_status' => '',
'products_tax_class_id' => DEFAULT_PRODUCT_TAX_CLASS_ID,
'manufacturers_id' => '',
'products_quantity_order_min' => '',
'products_quantity_order_units' => '',
'products_priced_by_attribute' => '',
'product_is_free' => '',
'product_is_call' => '',
'products_quantity_mixed' => '',
'product_is_always_free_shipping' => DEFAULT_PRODUCT_PRODUCTS_IS_ALWAYS_FREE_SHIPPING,
'products_qty_box_status' => PRODUCTS_QTY_BOX_STATUS,
'products_quantity_order_max' => '0',
'products_sort_order' => '0',
'products_discount_type' => '0',
'products_discount_type_from' => '0',
'products_price_sorter' => '0',
'master_categories_id' => ''
);
$pInfo = new objectInfo($parameters);
if (isset($_GET['pID']) && empty($_POST)) {
$product = $db->Execute("select pd.products_name, pd.products_description, pd.products_url,
p.products_id, p.products_quantity, p.products_model,
p.products_image, p.products_price, p.products_price_w, p.products_virtual, p.products_weight,
p.products_date_added, p.products_last_modified,
date_format(p.products_date_available, '%Y-%m-%d') as
products_date_available, p.products_status, p.products_tax_class_id,
p.manufacturers_id,
p.products_height,p.products_length, p.products_width,
p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,
p.product_is_free, p.product_is_call, p.products_quantity_mixed,
p.product_is_always_free_shipping, p.products_qty_box_status, p.products_quantity_order_max,
p.products_sort_order,
p.products_discount_type, p.products_discount_type_from,
p.products_price_sorter, p.master_categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
where p.products_id = '" . (int)$_GET['pID'] . "'
and p.products_id = pd.products_id
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'");
$pInfo->objectInfo($product->fields);
} elseif (zen_not_null($_POST)) {
$pInfo->objectInfo($_POST);
$products_name = $_POST['products_name'];
$products_description = $_POST['products_description'];
$products_url = $_POST['products_url'];
}
$manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE));
$manufacturers = $db->Execute("select manufacturers_id, manufacturers_name
from " . TABLE_MANUFACTURERS . " order by manufacturers_name");
while (!$manufacturers->EOF) {
$manufacturers_array[] = array('id' => $manufacturers->fields['manufacturers_id'],
'text' => $manufacturers->fields['manufacturers_name']);
$manufacturers->MoveNext();
}
$tax_class_array = array(array('id' => '0', 'text' => TEXT_NONE));
$tax_class = $db->Execute("select tax_class_id, tax_class_title
from " . TABLE_TAX_CLASS . " order by tax_class_title");
while (!$tax_class->EOF) {
$tax_class_array[] = array('id' => $tax_class->fields['tax_class_id'],
'text' => $tax_class->fields['tax_class_title']);
$tax_class->MoveNext();
}
$languages = zen_get_languages();
if (!isset($pInfo->products_status)) $pInfo->products_status = '1';
switch ($pInfo->products_status) {
case '0': $in_status = false; $out_status = true; break;
case '1':
default: $in_status = true; $out_status = false;
break;
}
// set to out of stock if categories_status is off and new product or existing products_status is off
if (zen_get_categories_status($current_category_id) == '0' and $pInfo->products_status != '1') {
$pInfo->products_status = 0;
$in_status = false;
$out_status = true;
}
// Virtual Products
if (!isset($pInfo->products_virtual)) $pInfo->products_virtual = PRODUCTS_VIRTUAL_DEFAULT;
switch ($pInfo->products_virtual) {
case '0': $is_virtual = false; $not_virtual = true; break;
case '1': $is_virtual = true; $not_virtual = false; break;
default: $is_virtual = false; $not_virtual = true;
}
// Always Free Shipping
if (!isset($pInfo->product_is_always_free_shipping)) $pInfo->product_is_always_free_shipping = DEFAULT_PRODUCT_PRODUCTS_IS_ALWAYS_FREE_SHIPPING;
switch ($pInfo->product_is_always_free_shipping) {
case '0': $is_product_is_always_free_shipping = false; $not_product_is_always_free_shipping = true; $special_product_is_always_free_shipping = false; break;
case '1': $is_product_is_always_free_shipping = true; $not_product_is_always_free_shipping = false; $special_product_is_always_free_shipping = false; break;
case '2': $is_product_is_always_free_shipping = false; $not_product_is_always_free_shipping = false; $special_product_is_always_free_shipping = true; break;
default: $is_product_is_always_free_shipping = false; $not_product_is_always_free_shipping = true; $special_product_is_always_free_shipping = false;
}
// products_qty_box_status shows
if (!isset($pInfo->products_qty_box_status)) $pInfo->products_qty_box_status = PRODUCTS_QTY_BOX_STATUS;
switch ($pInfo->products_qty_box_status) {
case '0': $is_products_qty_box_status = false; $not_products_qty_box_status = true; break;
case '1': $is_products_qty_box_status = true; $not_products_qty_box_status = false; break;
default: $is_products_qty_box_status = true; $not_products_qty_box_status = false;
}
// Product is Priced by Attributes
if (!isset($pInfo->products_priced_by_attribute)) $pInfo->products_priced_by_attribute = '0';
switch ($pInfo->products_priced_by_attribute) {
case '0': $is_products_priced_by_attribute = false; $not_products_priced_by_attribute = true; break;
case '1': $is_products_priced_by_attribute = true; $not_products_priced_by_attribute = false; break;
default: $is_products_priced_by_attribute = false; $not_products_priced_by_attribute = true;
}
// Product is Free
if (!isset($pInfo->product_is_free)) $pInfo->product_is_free = '0';
switch ($pInfo->product_is_free) {
case '0': $in_product_is_free = false; $out_product_is_free = true; break;
case '1': $in_product_is_free = true; $out_product_is_free = false; break;
default: $in_product_is_free = false; $out_product_is_free = true;
}
// Product is Call for price
if (!isset($pInfo->product_is_call)) $pInfo->product_is_call = '0';
switch ($pInfo->product_is_call) {
case '0': $in_product_is_call = false; $out_product_is_call = true; break;
case '1': $in_product_is_call = true; $out_product_is_call = false; break;
default: $in_product_is_call = false; $out_product_is_call = true;
}
// Products can be purchased with mixed attributes retail
if (!isset($pInfo->products_quantity_mixed)) $pInfo->products_quantity_mixed = '0';
switch ($pInfo->products_quantity_mixed) {
case '0': $in_products_quantity_mixed = false; $out_products_quantity_mixed = true; break;
case '1': $in_products_quantity_mixed = true; $out_products_quantity_mixed = false; break;
default: $in_products_quantity_mixed = true; $out_products_quantity_mixed = false;
}
// set image overwrite
$on_overwrite = true;
$off_overwrite = false;
?>
<link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css">
<script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script>
<script language="javascript"><!--
var dateAvailable = new ctlSpiffyCalendarBox("dateAvailable", "new_product", "products_date_available","btnDate1","<?php echo $pInfo->products_date_available; ?>",scBTNMODE_CUSTOMBLUE);
//--></script>
<script language="javascript"><!--
var tax_rates = new Array();
<?php
for ($i=0, $n=sizeof($tax_class_array); $i<$n; $i++) {
if ($tax_class_array[$i]['id'] > 0) {
echo 'tax_rates["' . $tax_class_array[$i]['id'] . '"] = ' . zen_get_tax_rate_value($tax_class_array[$i]['id']) . ';' . "\n";
}
}
?>
function doRound(x, places) {
return Math.round(x * Math.pow(10, places)) / Math.pow(10, places);
}
function getTaxRate() {
var selected_value = document.forms["new_product"].products_tax_class_id.selectedIndex;
var parameterVal = document.forms["new_product"].products_tax_class_id[selected_value].value;
if ( (parameterVal > 0) && (tax_rates[parameterVal] > 0) ) {
return tax_rates[parameterVal];
} else {
return 0;
}
}
function updateGross() {
var taxRate = getTaxRate();
var grossValue = document.forms["new_product"].products_price.value;
if (taxRate > 0) {
grossValue = grossValue * ((taxRate / 100) + 1);
}
document.forms["new_product"].products_price_gross.value = doRound(grossValue, 4);
}
function updateNet() {
var taxRate = getTaxRate();
var netValue = document.forms["new_product"].products_price_gross.value;
if (taxRate > 0) {
netValue = netValue / ((taxRate / 100) + 1);
}
document.forms["new_product"].products_price.value = doRound(netValue, 4);
}
//--></script>
<?php
// echo $type_admin_handler;
echo zen_draw_form('new_product', $type_admin_handler , 'cPath=' . $cPath . (isset($_GET['product_type']) ? '&product_type=' . $_GET['product_type'] : '') . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '') . '&action=new_product_preview' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'post', 'enctype="multipart/form-data"'); ?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo sprintf(TEXT_NEW_PRODUCT, zen_output_generated_category_path($current_category_id)); ?></td>
<td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main" align="right"><?php echo zen_draw_hidden_field('products_date_added', (zen_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . zen_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<?php
// show when product is linked
if (zen_get_product_is_linked($_GET['pID']) == 'true' and $_GET['pID'] > 0) {
?>
<tr>
<td class="main"><?php echo TEXT_MASTER_CATEGORIES_ID; ?></td>
<td class="main">
<?php
// echo zen_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id);
echo zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . ' ';
echo zen_draw_pull_down_menu('master_category', zen_get_master_categories_pulldown($_GET['pID']), $pInfo->master_categories_id); ?>
</td>
</tr>
<?php } else { ?>
<tr>
<td class="main"><?php echo TEXT_MASTER_CATEGORIES_ID; ?></td>
<td class="main"><?php echo TEXT_INFO_ID . ($_GET['pID'] > 0 ? $pInfo->master_categories_id . ' ' . zen_get_category_name($pInfo->master_categories_id, $_SESSION['languages_id']) : $current_category_id . ' ' . zen_get_category_name($current_category_id, $_SESSION['languages_id'])); ?>
</tr>
<?php } ?>
<tr>
<td colspan="2" class="main"><?php echo TEXT_INFO_MASTER_CATEGORIES_ID; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '100%', '2'); ?></td>
</tr>
<?php
// hidden fields not changeable on products page
echo zen_draw_hidden_field('master_categories_id', $pInfo->master_categories_id);
echo zen_draw_hidden_field('products_discount_type', $pInfo->products_discount_type);
echo zen_draw_hidden_field('products_discount_type_from', $pInfo->products_discount_type_from);
echo zen_draw_hidden_field('products_price_sorter', $pInfo->products_price_sorter);
?>
<tr>
<td colspan="2" class="main" align="center"><?php echo (zen_get_categories_status($current_category_id) == '0' ? TEXT_CATEGORIES_STATUS_INFO_OFF : '') . ($out_status == true ? ' ' . TEXT_PRODUCTS_STATUS_INFO_OFF : ''); ?></td>
<tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_STATUS; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('products_status', '1', $in_status) . ' ' . TEXT_PRODUCT_AVAILABLE . ' ' . zen_draw_radio_field('products_status', '0', $out_status) . ' ' .
-
Re: ozpost shipping module
TEXT_PRODUCT_NOT_AVAILABLE; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_DATE_AVAILABLE; ?><br /><small>(YYYY-MM-DD)</small></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' '; ?><script language="javascript">dateAvailable.writeControl(); dateAvailable.dateFormat="yyyy-MM-dd";</script></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<?php
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
<tr>
<td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_NAME; ?></td>
<td class="main"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? stripslashes($products_name[$languages[$i]['id']]) : zen_get_products_name($pInfo->products_id, $languages[$i]['id'])), zen_set_field_length(TABLE_PRODUCTS_DESCRIPTION, 'products_name')); ?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCT_IS_FREE; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('product_is_free', '1', ($in_product_is_free==1)) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('product_is_free', '0', ($in_product_is_free==0)) . ' ' . TEXT_NO . ' ' . ($pInfo->product_is_free == 1 ? '<span class="errorText">' . TEXT_PRODUCTS_IS_FREE_EDIT . '</span>' : ''); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCT_IS_CALL; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('product_is_call', '1', ($in_product_is_call==1)) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('product_is_call', '0', ($in_product_is_call==0)) . ' ' . TEXT_NO . ' ' . ($pInfo->product_is_call == 1 ? '<span class="errorText">' . TEXT_PRODUCTS_IS_CALL_EDIT . '</span>' : ''); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_PRICED_BY_ATTRIBUTES; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('products_priced_by_attribute', '1', $is_products_priced_by_attribute) . ' ' . TEXT_PRODUCT_IS_PRICED_BY_ATTRIBUTE . ' ' . zen_draw_radio_field('products_priced_by_attribute', '0', $not_products_priced_by_attribute) . ' ' . TEXT_PRODUCT_NOT_PRICED_BY_ATTRIBUTE . ' ' . ($pInfo->products_priced_by_attribute == 1 ? '<span class="errorText">' . TEXT_PRODUCTS_PRICED_BY_ATTRIBUTES_EDIT . '</span>' : ''); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr bgcolor="#ebebff">
<td class="main"><?php echo TEXT_PRODUCTS_TAX_CLASS; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id, 'onchange="updateGross()"'); ?></td>
</tr>
<tr bgcolor="#ebebff">
<td class="main"><?php echo TEXT_PRODUCTS_PRICE_NET; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_price', $pInfo->products_price, 'onKeyUp="updateGross()"'); ?></td>
</tr>
<tr bgcolor="#ebebff">
<td class="main"><?php echo TEXT_PRODUCTS_PRICE_GROSS; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_price_gross', $pInfo->products_price, 'OnKeyUp="updateNet()"'); ?></td>
</tr>
<tr bgcolor="#ebebff">
<td class="main"><?php echo TEXT_WHOLESALE_PRICE_NET; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_price_w', $pInfo->products_price_w); ?><?php echo TEXT_WHOLESALE_PRICE_COMMENT; ?></td>
<?php /* originaly the cell above was this one (just removed (int)):
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_price_w', (int)$pInfo->products_price_w); ?><?php echo TEXT_WHOLESALE_PRICE_COMMENT; ?></td>
*/
?>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_VIRTUAL; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('products_virtual', '1', $is_virtual) . ' ' . TEXT_PRODUCT_IS_VIRTUAL . ' ' . zen_draw_radio_field('products_virtual', '0', $not_virtual) . ' ' . TEXT_PRODUCT_NOT_VIRTUAL . ' ' . ($pInfo->products_virtual == 1 ? '<br /><span class="errorText">' . TEXT_VIRTUAL_EDIT . '</span>' : ''); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main" valign="top"><?php echo TEXT_PRODUCTS_IS_ALWAYS_FREE_SHIPPING; ?></td>
<td class="main" valign="top"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('product_is_always_free_shipping', '1', $is_product_is_always_free_shipping) . ' ' . TEXT_PRODUCT_IS_ALWAYS_FREE_SHIPPING . ' ' . zen_draw_radio_field('product_is_always_free_shipping', '0', $not_product_is_always_free_shipping) . ' ' . TEXT_PRODUCT_NOT_ALWAYS_FREE_SHIPPING . '<br />' . zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('product_is_always_free_shipping', '2', $special_product_is_always_free_shipping) . ' ' . TEXT_PRODUCT_SPECIAL_ALWAYS_FREE_SHIPPING . ' ' . ($pInfo->product_is_always_free_shipping == 1 ? '<br /><span class="errorText">' . TEXT_FREE_SHIPPING_EDIT . '</span>' : ''); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_QTY_BOX_STATUS; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('products_qty_box_status', '1', $is_products_qty_box_status) . ' ' . TEXT_PRODUCTS_QTY_BOX_STATUS_ON . ' ' . zen_draw_radio_field('products_qty_box_status', '0', $not_products_qty_box_status) . ' ' . TEXT_PRODUCTS_QTY_BOX_STATUS_OFF . ' ' . ($pInfo->products_qty_box_status == 0 ? '<br /><span class="errorText">' . TEXT_PRODUCTS_QTY_BOX_STATUS_EDIT . '</span>' : ''); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_QUANTITY_MIN_RETAIL; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_quantity_order_min', ($pInfo->products_quantity_order_min == 0 ? 1 : $pInfo->products_quantity_order_min)); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_QUANTITY_MAX_RETAIL; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_quantity_order_max', $pInfo->products_quantity_order_max); ?> <?php echo TEXT_PRODUCTS_QUANTITY_MAX_RETAIL_EDIT; ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_QUANTITY_UNITS_RETAIL; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_quantity_order_units', ($pInfo->products_quantity_order_units == 0 ? 1 : $pInfo->products_quantity_order_units)); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_MIXED; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('products_quantity_mixed', '1', $in_products_quantity_mixed) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('products_quantity_mixed', '0', $out_products_quantity_mixed) . ' ' . TEXT_NO; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<script language="javascript"><!--
updateGross();
//--></script>
<?php
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
<tr>
<td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_DESCRIPTION; ?></td>
<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main" width="25" valign="top"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
<td class="main" width="100%">
<?php if (is_null($_SESSION['html_editor_preference_status'])) echo TEXT_HTML_EDITOR_NOT_DEFINED; ?>
<?php if ($_SESSION['html_editor_preference_status']=="FCKEDITOR") {
// if ($_SESSION['html_editor_preference_status']=="FCKEDITOR") require(DIR_WS_INCLUDES.'fckeditor.php');
$oFCKeditor = new FCKeditor ;
$oFCKeditor->Value = $file_contents ;
$oFCKeditor->Width = '700' ;
$oFCKeditor->Height = '450' ;
$output = $oFCKeditor->CreateHtml() ;
echo $output;
/* $oFCKeditor->Value = (isset($products_description[$languages[$i]['id']])) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id']) ; */
/* $oFCKeditor->CreateFCKeditor( 'products_description[' . $languages[$i]['id'] . ']', '99%', '230' ) ; */
//instanceName, width, height (px or %)
}
else { // using HTMLAREA or just raw "source"
echo zen_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', (isset($products_description[$languages[$i]['id']])) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id'])); //,'id="'.'products_description' . $languages[$i]['id'] . '"');
} ?>
</td>
</tr>
</table></td>
</tr>
<?php
}
?>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_QUANTITY; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_quantity', $pInfo->products_quantity); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_MODEL; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_model', $pInfo->products_model, zen_set_field_length(TABLE_PRODUCTS, 'products_model')); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<?php
$dir = @dir(DIR_FS_CATALOG_IMAGES);
$dir_info[] = array('id' => '', 'text' => "Main Directory");
while ($file = $dir->read()) {
if (is_dir(DIR_FS_CATALOG_IMAGES . $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
$dir_info[] = array('id' => $file . '/', 'text' => $file);
}
}
$default_directory = substr( $pInfo->products_image, 0,strpos( $pInfo->products_image, '/')+1);
?>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_file_field('products_image') . '<br />' . zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image . zen_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td>
<td valign = "center" class="main"><?php echo TEXT_PRODUCTS_IMAGE_DIR; ?> <?php echo zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory); ?></td>
<td class="main" valign="top"><?php echo TEXT_IMAGES_OVERWRITE . '<br />' . zen_draw_radio_field('overwrite', '0', $off_overwrite) . ' ' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('overwrite', '1', $on_overwrite) . ' ' . TABLE_HEADING_YES; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<?php
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
<tr>
<td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_URL . '<br /><small>' . TEXT_PRODUCTS_URL_WITHOUT_HTTP . '</small>'; ?></td>
<td class="main"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('products_url[' . $languages[$i]['id'] . ']', (isset($products_url[$languages[$i]['id']]) ? $products_url[$languages[$i]['id']] : zen_get_products_url($pInfo->products_id, $languages[$i]['id'])), zen_set_field_length(TABLE_PRODUCTS_DESCRIPTION, 'products_url')); ?></td>
</tr>
<?php
}
?>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?></td>
<tr><td class="main"><?php echo TEXT_PRODUCTS_HEIGHT ; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_height', $pInfo->products_height); ?></td>
</tr><tr><td class="main"><?php echo TEXT_PRODUCTS_LENGTH; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_length', $pInfo->products_length); ?></td>
</tr><tr><td class="main"><?php echo TEXT_PRODUCTS_WIDTH; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_width', $pInfo->products_width); ?></td>
</tr>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_weight', $pInfo->products_weight); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_SORT_ORDER; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_sort_order', $pInfo->products_sort_order); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main" align="right"><?php echo zen_draw_hidden_field('products_date_added', (zen_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . zen_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td>
</tr>
</table></form>
-
Re: ozpost shipping module
Quote:
Originally Posted by
uniqueliving
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?></td>
LINE MISSING
<tr><td class="main"><?php echo TEXT_PRODUCTS_HEIGHT ; ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_height', $pInfo->products_height); ?></td>
You are missing a line of code as indicated in the quoted text above.
It would/should read something along the lines of the last line quoted.
Cheers
Rod
-
Re: ozpost shipping module
Quote:
Originally Posted by
RodG
You are missing a line of code as indicated in the quoted text above.
It would/should read something along the lines of the last line quoted.
Cheers
Rod
thanks Rod how do i know what to write in there
-
Re: ozpost shipping module
ok Rod thank you for your help found it and fixed it but there must be something else as the box that was in the wrong spot is still there and there is also a box in the right spot and they both have the same numbers in them any ideas how to remove the other box
-
Re: ozpost shipping module
Thanks for all your help Rod got it sorted your a legend thanks heaps:clap:
-
Re: ozpost shipping module
Hi Rod and everyone!
I've just installed this module and I LOVE IT . . .
However, I have over 1000 products on my website and some are preorder, meaning I've never seen them so I don't know if they weight 50 grams or 500 grams.
Is there a way to apply this module only to a few products or categories and as I get the weights for newer products, slowly add to it all?
-
Re: ozpost shipping module
Quote:
Originally Posted by
ningyotan
Is there a way to apply this module only to a few products or categories and as I get the weights for newer products, slowly add to it all?
Not without a little bit of custom coding.
If you search these forums you'll find a number of people with similar requirements (not just ozpost) and they contain a number of examples of what needs to be done.
Cheers
Rod
-
Re: ozpost shipping module
Hi Rod,
Just wondering if this module is compatible with fast and easy checkout (FEC)?
Also if i was using the Aus Post improve module is it just a matter of overwriting the existing files with the new ones?
Cheers,
Geoff
-
Re: ozpost shipping module
Hi Rod,
Putting a new site together 1.3.9c and PHP 5.3
A little while were very help in modding a description line in the ozpost.php file,
$description = ($xml->quote[$i]->description);
Then immediately after this, add the following:
if ( $description == "3kg Prepaid Satchel Express") { $description = "Express Satchel" ; }
I've installed V2.05 and as the code has been completely re-written, I'm not sure where to edit the file to achieve the same result.
I did try a few areas, but as usual, all I did was break it.! :oops:
Hoping you can assist again...
Thanks
Mike
-
Re: ozpost shipping module
Quote:
Originally Posted by
Mike_Dean
if ( $description == "3kg Prepaid Satchel Express") { $description = "Express Satchel" ; }
I've installed V2.05 and as the code has been completely re-written, I'm not sure where to edit the file to achieve the same result.
Try inserting this code on line 455 (or thereabouts). More specifically, look for the commented line "// store it //" in insert the code immediately before (or after).
Cheers
Rod