[Skip to main content](#vessel-content)

#   How to display / debug shipping data

##

- **[csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")**
- [![csymmonds's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9149-csymmonds "View csymmonds's Profile") Topic Author
- [ Offline](/forum/user/9149-csymmonds)

Less More

- Posts: 113
- Thank you received: 18
-
-

11 years 10 months ago [\#184082](#184082) by [csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")  *[How to display / debug shipping data](/forum/28-shipping-methods/873793-how-to-display-debug-shipping-data#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 &quot;var&#95;dump&quot;, 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 &quot;debug&quot; or &quot;verbose&quot; option in configuration to somehow gather and display the data going to and return from shipping services?")* was created by *[csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODczNzkzLWhvdy10by1kaXNwbGF5LWRlYnVnLXNoaXBwaW5nLWRhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 10 months ago [\#184104](#184104) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[How to display / debug shipping data](/forum/28-shipping-methods/873793-how-to-display-debug-shipping-data#184104 "-- 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 &quot;var&#95;dump&quot;, 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 &quot;debug&quot; or &quot;verbose&quot; option in configuration to somehow gather and display the data going to and return from shipping services?")*

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 : Code:

echo '&lt;!-- '. $xml. ' --&gt;'."\r\n"; // THIS LINE IS FOR DEBUG PURPOSES ONLY-IT WILL SHOW IN HTML COMMENTS

just before these lines : Code:

$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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODczNzkzLWhvdy10by1kaXNwbGF5LWRlYnVnLXNoaXBwaW5nLWRhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")**
- [![csymmonds's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9149-csymmonds "View csymmonds's Profile") Topic Author
- [ Offline](/forum/user/9149-csymmonds)

Less More

- Posts: 113
- Thank you received: 18
-
-

11 years 10 months ago [\#184182](#184182) by [csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")  Replied by *[csymmonds](/forum/user/9149-csymmonds "View csymmonds's Profile")* on topic *[How to display / debug shipping data](/forum/28-shipping-methods/873793-how-to-display-debug-shipping-data#184182 "-- 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 &quot;var&#95;dump&quot;, 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 &quot;debug&quot; or &quot;verbose&quot; option in configuration to somehow gather and display the data going to and return from shipping services?")*

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.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODczNzkzLWhvdy10by1kaXNwbGF5LWRlYnVnLXNoaXBwaW5nLWRhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 10 months ago [\#184260](#184260) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[How to display / debug shipping data](/forum/28-shipping-methods/873793-how-to-display-debug-shipping-data#184260 "-- 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 &quot;var&#95;dump&quot;, 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 &quot;debug&quot; or &quot;verbose&quot; option in configuration to somehow gather and display the data going to and return from shipping services?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODczNzkzLWhvdy10by1kaXNwbGF5LWRlYnVnLXNoaXBwaW5nLWRhdGE/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
