X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   U.S.P.S. Module Docs (https://forum.x-cart.com/showthread.php?t=68901)

mworsnop 03-20-2014 01:43 PM

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.

qualiteam 03-20-2014 11:26 PM

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.

mworsnop 03-21-2014 08:21 AM

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

qualiteam 03-28-2014 01:02 AM

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?

mworsnop 03-28-2014 08:48 AM

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?

qualiteam 03-31-2014 11:29 PM

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.


All times are GMT -8. The time now is 09:39 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.