Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

U.S.P.S. Module Docs

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-20-2014, 01:43 PM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default U.S.P.S. Module Docs

The USPS has many many types of ways of mailing things. This list all shows up in the shipping setup.

However how does XC5 select the choices to preset to the user? There are at least a handful of ways that my 1 pound item could be shipping, but yet it only gives he user a choice of a couple ways.

I did enable everything on the list so I could test this.
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
  #2  
Old 03-20-2014, 11:26 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: U.S.P.S. Module Docs

It submits information on the cart to USPS servers and retrieves the list of available shipping options from their server response. It is the USPS server that decides which methods are available to the user, X-Cart just lists them.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 03-21-2014, 08:21 AM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Re: U.S.P.S. Module Docs

I am aware that it gathers the data from USPS. What exactly does it send? Because I dont come close to seeing the responses. I have one choice and there should be several at least.

All we have is the item weighs 1lb. Without dimensions of the items or more data how would it be able to choose the shipping methods. I tried changing the weight of the item to 0.4 lbs for testing and still didnt get most of the answers
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
  #4  
Old 03-28-2014, 01:02 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: U.S.P.S. Module Docs

Go to the USPS settings page:
Back end -> Store Setup -> Shipping -> U.S.P.S. settings tab

Tick the "Log all communication between shopping cart and USPS server:" option and save the form.

Now X-Cart 5 will log all requests sent to USPS servers and response received from the servers to the "[xc5]/var/log/USPS.log" file.

Is it what you were looking for?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 03-28-2014, 08:48 AM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Re: U.S.P.S. Module Docs

No thats not it at all.

What I am trying to understand is how it can recommend any postage from the data that is available. Suppose I am shipping a 5 lb widget. How does it recommend shipping selections for the user to choose? Then if I am shipping a 0.25 lb gadget? Then if I am shipping a book?

Lots of choices.

How does it choose something that works?
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
  #6  
Old 03-31-2014, 11:29 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: U.S.P.S. Module Docs

The logic is as follows:

1. In the "Store setup" -> "Shipping" -> "U.S.P.S." tab you can enable/disable particular shipping methods. Disabled methods won't show up during checkout.

2. When a customer adds products to cart, X-Cart communicates with USPS servers and retrieves the list of matched shipping options. I'm not sure if I can explain how their servers select the methods. However, if you believe there is something wrong, you can log all request and responses to a log file (as I described above) and analyze the logs.

3. X-Cart removes disabled shipping options from the list returned by USPS and displays it to the customer.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:52 PM.

   

 
X-Cart forums © 2001-2020