How to display / debug shipping data

  • Posts: 113
  • Thank you received: 18
9 years 11 months ago #184082

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 2.5.11
-- PHP version -- : 5.4.34
-- Browser(s) name and version -- : Firefox

We are using UPS and USPS shipping methods, both appear to be working though the calculated amounts appear to be wrong (too high). We've experimented with a single product, various dimensions and weights and the shipping costs for both UPS and USPS are too high.

Is there any easy way to see the values (weight and dimensions) being passed from Hikashop to UPS / USPS?
Searching through seemingly relevant posts, I found reference to "var_dump", but no clue what it does, how to use?

As it seems so many have issues with various shipping methods, would it be possible to add a "debug" or "verbose" option in configuration to somehow gather and display the data going to and return from shipping services?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #184104

Hello,

We are using UPS and USPS shipping methods, both appear to be working though the calculated amounts appear to be wrong (too high).

Can you use it with the "Group package" option set to YES ?

We've experimented with a single product, various dimensions and weights and the shipping costs for both UPS and USPS are too high.

Can you show me how did you configured your shipping methods through some screenshots ?

For UPS, you'll just have to add that line on the ups.php file :
echo '<!-- '. $xml. ' -->'."\r\n"; // THIS LINE IS FOR DEBUG PURPOSES ONLY-IT WILL SHOW IN HTML COMMENTS
just before these lines :
$session = curl_init("https://www.ups.com/ups.app/xml/Rate");
		curl_setopt($session, CURLOPT_HEADER, 1);
		curl_setopt($session,CURLOPT_POST,1);
		curl_setopt($session,CURLOPT_TIMEOUT, 30);
		curl_setopt($session,CURLOPT_RETURNTRANSFER,1);
		curl_setopt ($session, CURLOPT_SSL_VERIFYPEER, 0);
		curl_setopt ($session, CURLOPT_SSL_VERIFYHOST, 0);
		curl_setopt($session,CURLOPT_POSTFIELDS,$xml);
so that you'll see what you are sending to UPS via HTML comments through the shipping step of your checkout workflow.

As it seems so many have issues with various shipping methods, would it be possible to add a "debug" or "verbose" option in configuration to somehow gather and display the data going to and return from shipping services?

Sure I'll add it on the todo list.

Please Log in or Create an account to join the conversation.

  • Posts: 113
  • Thank you received: 18
9 years 11 months ago #184182

Group packages is set to Yes for UPS, but I assume that applies when ordering multiple products. I have a single item in the cart weighing 1 ounce, dimensions set to 1" x 1" x .08", shipping within the same zip code, should retrieve the lowest rate from either UPS or USPS.
PDF attached shows configuration for both UPS and USPS (account credentials intentionally obscured).

For USPS, it's not clear how the field "Container" is to be used - I didn't see anything in the online Help regarding "Container". When using Flat Rate, prices are correct. When using "Rectangular" or "Non Rectangular", Priority Mail is not presented as an option. Priority Mail is presented as an option when container is "Variable", but the price shown appears incorrect.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #184260

Hello,
As it's said on the USPS developper documentation :

Use to specify special containers or container attributes that may affect postage; otherwise, leave blank.

The default container value is "Variable" so we have added an option to let the choice to user.

For the UPS shipping method, you should try the "Negotiated rate" option.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum