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

#   Accessing UPS Debug Script

##

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

Less More

- Posts: 32
- Thank you received: 1
-
-

11 years 5 days ago [\#220053](#220053) by [killnine](/forum/user/38536-killnine "View killnine's Profile")  *[Accessing UPS Debug Script](/forum/28-shipping-methods/880363-accessing-ups-debug-script#220053 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi,  I've set my UPS shipping method to Debug. Looking in the UPS.php file in the plugin directory, I see that it's set to place the UPS rate query in HTML comments.  However, what's the page where this is rendered? I tried checking in the checkout page where you select the UPS method you want, but I don't see the query data in the source.  Am I looking in the wrong place?")* was created by *[killnine](/forum/user/38536-killnine "View killnine's Profile")*

-- url of the page with the problem -- : [ www.nicaboyne.com](http://www.nicaboyne.com)
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.44
-- Browser(s) name and version -- : Chrome OSX
-- Error-message(debug-mod must be tuned on) -- : N/A

Hi,

I've set my UPS shipping method to Debug. Looking in the UPS.php file in the plugin directory, I see that it's set to place the UPS rate query in HTML comments.

However, what's the page where this is rendered? I tried checking in the checkout page where you select the UPS method you want, but I don't see the query data in the source.

Am I looking in the wrong place?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 4 days ago [\#220117](#220117) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Accessing UPS Debug Script](/forum/28-shipping-methods/880363-accessing-ups-debug-script#220117 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi,  I've set my UPS shipping method to Debug. Looking in the UPS.php file in the plugin directory, I see that it's set to place the UPS rate query in HTML comments.  However, what's the page where this is rendered? I tried checking in the checkout page where you select the UPS method you want, but I don't see the query data in the source.  Am I looking in the wrong place?")*

Hi,

Yes, the content will be put in the HTML data as comments.
But because HikaShop have a shipping cache system ; the shipping plugins are not called every time but only when the cart content changed (or some shipping method configuration changed).

So the best is to change your cart content or re-save a shipping configuration in your backend ; then to go in your checkout and use your browser inspected to see the page DOM content.

The other solution would be to modify the UPS plugin in order to perform a "writeToLog" instead of a display in the page.
But it would require to copy the function "writeToLog" from the HikaShop helper because that function is currently only available for payment methods.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 32
- Thank you received: 1
-
-

11 years 2 hours ago [\#220607](#220607) by [killnine](/forum/user/38536-killnine "View killnine's Profile")  Replied by *[killnine](/forum/user/38536-killnine "View killnine's Profile")* on topic *[Accessing UPS Debug Script](/forum/28-shipping-methods/880363-accessing-ups-debug-script#220607 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi,  I've set my UPS shipping method to Debug. Looking in the UPS.php file in the plugin directory, I see that it's set to place the UPS rate query in HTML comments.  However, what's the page where this is rendered? I tried checking in the checkout page where you select the UPS method you want, but I don't see the query data in the source.  Am I looking in the wrong place?")*

I went into the UPS plugin and changed the UPS.php to have some more easily findable text like "&lt;!-- UPS RATE" and it still isn't appearing.

I changed addresses, quantities, etc. and don't see the value showing up anywhere in the DOM. It's very confusing and frustrating.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 11 months ago [\#220636](#220636) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Accessing UPS Debug Script](/forum/28-shipping-methods/880363-accessing-ups-debug-script#220636 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi,  I've set my UPS shipping method to Debug. Looking in the UPS.php file in the plugin directory, I see that it's set to place the UPS rate query in HTML comments.  However, what's the page where this is rendered? I tried checking in the checkout page where you select the UPS method you want, but I don't see the query data in the source.  Am I looking in the wrong place?")*

Hi,

1 -

> The other solution would be to modify the UPS plugin in order to perform a "writeToLog" instead of a display in the page.
> But it would require to copy the function "writeToLog" from the HikaShop helper because that function is currently only available for payment methods.

2 - You can see to deactivate the shipping cache by modifying a variable in the shipping plugin class.
Replacing Code:

var $use_cache = true;

By Code:

var $use_cache = false;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 32
- Thank you received: 1
-
-

10 years 11 months ago -  10 years 11 months ago [\#220672](#220672) by [killnine](/forum/user/38536-killnine "View killnine's Profile")  Replied by *[killnine](/forum/user/38536-killnine "View killnine's Profile")* on topic *[Accessing UPS Debug Script](/forum/28-shipping-methods/880363-accessing-ups-debug-script#220672 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi,  I've set my UPS shipping method to Debug. Looking in the UPS.php file in the plugin directory, I see that it's set to place the UPS rate query in HTML comments.  However, what's the page where this is rendered? I tried checking in the checkout page where you select the UPS method you want, but I don't see the query data in the source.  Am I looking in the wrong place?")*

Thanks Jerome.

I've disabled caching for now but the main issue is I don't know where to look for this HTML comment. I've tried different browsers (Chrome, Safari, MS Edge) and none of them appear to show these comments. It's very frustrating. I must just be looking in the wrong place.

I'm not going to copy and paste PHP around because I'm concerned about messing up the UPS plugin or failing to call writeToLog correctly.

Each step is done with ajax calls, is that why I don't see it in the develop consoles? I'm just at a loss.

This is all in service of trying to fix my ORIGINAL issue,which is that rates are really out of whack compared to the exact same package quoted from UPS.com (only using weights, no package dimensions on either system.). I know, I know, you just hit UPS's webservice for rates but there's obviously something different about what HIkaShop is sending versus what I'm filling in via UPS.com's forms.

Last edit: 10 years 11 months ago by [killnine](/forum/user/38536-killnine "View killnine's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgwMzYzLWFjY2Vzc2luZy11cHMtZGVidWctc2NyaXB0P3RtcGw9bWFya2Rvd24=) 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
-
-
-

10 years 11 months ago [\#220682](#220682) 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 *[Accessing UPS Debug Script](/forum/28-shipping-methods/880363-accessing-ups-debug-script#220682 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi,  I've set my UPS shipping method to Debug. Looking in the UPS.php file in the plugin directory, I see that it's set to place the UPS rate query in HTML comments.  However, what's the page where this is rendered? I tried checking in the checkout page where you select the UPS method you want, but I don't see the query data in the source.  Am I looking in the wrong place?")*

Hello,
You'll find the debug trace during the shipping step of your checkout workflow through an HTML comment on the HTML code of your page.
The fact that you don't have any UPS comment on the HTML code of your page is probably coming from the fact that your shipping step is called with AJAX.
Temporarily changing these lines one the "ups.php" file of your plugin will probably do the job : Code:

if(@$rate-&gt;shipping_params-&gt;debug){ echo '&lt;!-- '. $xml. ' --&gt;'."\r\n"; // THIS LINE IS FOR DEBUG PURPOSES ONLY-IT WILL SHOW IN HTML COMMENTS }

By : Code:

var_dump($xml); exit;

Don't forget to revert this change after you had the XML code sent to UPS.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgwMzYzLWFjY2Vzc2luZy11cHMtZGVidWctc2NyaXB0P3RtcGw9bWFya2Rvd24=) 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.052 seconds

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