Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » Storez » [fixed] USPS not displaying options when used alone
[fixed] USPS not displaying options when used alone
A comprehensive shopping cart solution.
Topic initiation via Bugger.

Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  eCommerce » Storez

View previous topic :: View next topic  
Author Message
thewarden
Nice Poster
Nice Poster

Offline Offline
Joined: Jul 14, 2008
Posts: 47

PostPosted: Wed Sep 24, 2008 3:31 am
Post subject: [fixed] USPS not displaying options when used alone

Ok, doesn't seem to be working for me. I also found another possible glitch in doing so...

Firstly, my settings in the shipping options page...

Include handling cost? NO
No shipping tax class
Using my own userid I used successfully with ZenCart for the USPS server
Production server
Origin country USA
Postal code 48180
All machinable TRUE (still don't understand this one though)
Debug EMAIL

Display weight YES
Display transit time YES

Domestic methods...
Priority mail (only one checked)
Default demestic method PRIORITY MAIL

International methods...
Express Mail International
Priority Mail International
First Class Mail International
Default International method PRIORITY MAIL INTERNATIONAL

Now, I add an item with a weight of 4lbs as set in the product settings, and go to checkout. Input shipping address. Next screen, does NOT allow me to select shipping address from the "use saved address" dropdown. It's not populating anything, so I have to re-enter all the shipping info into the billing information.

Press continue, then choose money order as payment method. Continue...Now I have a shipping charge of $0.00 with "selected USPS service" showing "parcel post (4-7 days)." I never got to choose a shipping method, and there is no shipping charge. Smile

Did I miss anything?

Initiated by Bugger (Original Entry) - Comments Here Please.


thewarden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.39 (Unix)/4.1.22-standard/5.2.4/CPG 9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
thewarden
Nice Poster
Nice Poster

Offline Offline
Joined: Jul 14, 2008
Posts: 47

PostPosted: Wed Sep 24, 2008 3:36 am
Post subject: Re: [release] Storez v9.2.8 - USPS

Ok, it seems to be working if I select more than one shipping option. I selected also express mail, and now I'm showing the options, and the price is populating, but the billing address still won't populate. Sad

Then again, upon further investigation, maybe it was because I re-activated the shipping weight option. Whenever I de-activate that, it goes back to $0 shipping. Maybe that's where the problem lies.


thewarden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.39 (Unix)/4.1.22-standard/5.2.4/CPG 9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Sep 24, 2008 6:40 am
Post subject: Re: [release] Storez v9.2.8 - USPS

I've tried the single USPS option and it works okay here.

Which shipping weight option? If you mean the product weight shipping method, I also tested with it activated and de-activated.

If you complete your details in the "Info" link for users, the address details are retained and you don't need to re-enter details each time, or do you mean a guest user details aren't being carried through?

Anyway, I've now fixed the issue with guest order shipping address details not carrying through.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
thewarden
Nice Poster
Nice Poster

Offline Offline
Joined: Jul 14, 2008
Posts: 47

PostPosted: Sat Sep 27, 2008 7:15 pm
Post subject: Re: [release] Storez v9.2.8 - USPS

Ok, sorry it took so long to get back on this. Terribly busy with Halloween just around the corner! Smile

Anyway, still using the settings as described above with the exception of having also checked "Express Mail" as an option, so there are now 2 shipping options when using USPS, USPS is the only shipping method activated. When I checkout, I'm still not being presented with any shipping options, and the shipping price is $0.00. I've even went so far as to "Submit Order" and it submits it with $0.00 for shipping, and shows for shipping, "Selected USPS Service: Parcel Post (4 - 7 days)" and I don't even have parcel post turned on!

Also, for the record, I have updated the database using the upgrade option with both upgrades. However, I'm sure I wouldn't have even gotten this far if I hadn't without running into a db error eh? Smile

The billing address info populating with the same shipping info works now. That problem is gone, and is in fact, even better now as it auto-populates which is great, but still can't use the USPS shipping. If you need to, you can login using the test user profile to check it out.

testuser
password

And also, when I was just changing the password in DFLY for testuser, I got this error when submitting the change...

Quote::

CMS Warning line 75: On /admin.php?op=users&id=7 While executing query "INSERT INTO cms_cart_users (user_id, fname, lname, username, email, address1, address2, city, state, country, postcode, dayPhone, evePhone, myCurr) VALUES ('', '', '', '', '', '', '', '', '', '', '', '', '', '0')" the following error occured: Duplicate entry '0' for key 1 In: /home/smithsgr/public_html/modules/Storez/includes/functions.php on line: 118

Not sure if it means anything to you, but it's obviously storez related?


thewarden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.39 (Unix)/4.1.22-standard/5.2.4/CPG 9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Sun Sep 28, 2008 4:33 am
Post subject: Re: [release] Storez v9.2.8 - USPS

"Parcel Post" is my oversight - it should pick up the default you set in options, if I hadn't overlooked restoring that.

I am mystified as to why USPS on its own does not show the results whereas UPS does. It's tripping up on one of the checks in line 428 of checkout.php

I'll work through the issue later today - in the interim, I suggest you include the pickup option with appropriate comment.

How cms_cart_users relates to updating DF user data I don't know, yet - I'll have to check functions for any conflict.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
thewarden
Nice Poster
Nice Poster

Offline Offline
Joined: Jul 14, 2008
Posts: 47

PostPosted: Sun Sep 28, 2008 4:54 am
Post subject: Re: [release] Storez v9.2.8 - USPS

Now when I do activate another shipping option, then I am presented with the options for USPS upon checkout, and I can select one and use it just fine. I just followed your advice and turned on store pickup, and I can now select the USPS priority mail option.

It just seems to happen when USPS is the only activated shipping method for some reason.

_________________
L8r!
The Warden
www.smiths-grove.com

thewarden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.39 (Unix)/4.1.22-standard/5.2.4/CPG 9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Sun Sep 28, 2008 10:59 am
Post subject: Re: [release] Storez v9.2.8 - USPS

Found it - approx line 200 of modules/Storez/shipping/shipping.usps.php
PHP:
	function storez_shipping_usps() {
global $order, $db, $module_name;

$this->shipping_name = MODULE_SHIPPING_USPS_TEXT_TITLE;
$this->title = MODULE_SHIPPING_USPS_TEXT_TITLE;
$this->description = MODULE_SHIPPING_USPS_TEXT_DESCRIPTION;
replace with
PHP:
	function storez_shipping_usps() {
global $order, $db, $module_name;

$this->shipping_name = MODULE_SHIPPING_USPS_TEXT_TITLE;
$this->title = MODULE_SHIPPING_USPS_TEXT_TITLE;
$this->description = MODULE_SHIPPING_USPS_TEXT_DESCRIPTION;
$this->checkout_options = 1;
Don't know why I overlooked that extra line - it's purpose is to tell checkout that this shipping method does have options.

Thanks for your patience Embarassed


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
thewarden
Nice Poster
Nice Poster

Offline Offline
Joined: Jul 14, 2008
Posts: 47

PostPosted: Sun Sep 28, 2008 6:57 pm
Post subject: Re: [fixed] USPS not displaying options when used alone

So I gather, that the only line I needed to really add was

PHP:

$this
->checkout_options = 1;

Cuz once I did that, it seems to work now. Thanx for being on top of things. I do believe this cart now supports every feature I need!! My search may well be over now! Thanx again.

_________________
L8r!
The Warden
www.smiths-grove.com

thewarden's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.39 (Unix)/4.1.22-standard/5.2.4/CPG 9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  eCommerce » Storez
Page 1 of 1
All times are GMT + 9.5 Hours



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum