UPS - Destination Type

  • Posts: 51
  • Thank you received: 0
10 years 8 months ago #147882

In my UPS Shipping Method, the Destination Type of Commercial Address keeps changing to Auto-Determination. Is there a trick to make it stay at Commercial Address?

Thanks!

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

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #147920

Hello,
Thanks for the feedback, I just made a fix about this, so you'll just have to edit the code of the file : "plugins\hikashopshipping\ups\ups_configuration.php".
And change that lines :

<?php
	$arr = array(
		JHTML::_('select.option', 'auto', JText::_('Auto-determination') ),
		JHTML::_('select.option', 'res', JText::_('Residential Address') ),
		JHTML::_('select.option', 'com', JText::_('Commercial Address') ),
	);
	echo JHTML::_('hikaselect.genericlist', $arr, "data[shipping][shipping_params][destination_type]", 'class="inputbox" size="1"', 'value', 'text', @$this->element->shipping_params->pickup_type);
By :
<?php
	$arr = array(
		JHTML::_('select.option', 'auto', JText::_('Auto-determination') ),
		JHTML::_('select.option', 'res', JText::_('Residential Address') ),
		JHTML::_('select.option', 'com', JText::_('Commercial Address') ),
	);
	echo JHTML::_('hikaselect.genericlist', $arr, "data[shipping][shipping_params][destination_type]", 'class="inputbox" size="1"', 'value', 'text', @$this->element->shipping_params->destination_type);

Last edit: 10 years 8 months ago by Mohamed Thelji.

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

  • Posts: 51
  • Thank you received: 0
10 years 8 months ago #147959

Thank you so much! That seems to have resolved the issue.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum