Hi
This sentence is a variable of name NO_SHIPPING_TO_YOUR_ZONE in \language\en-GB\en-GB.com_hikashop.ini
NO_SHIPPING_TO_YOUR_ZONE appear only once in usps.php and aupost.php and shipping.php
Cette variable est appelé dans 2 plugins et 3 components administrator
en fait 2 fichiers ( usps.php aupost.php ) dont chacun se retrouve a deux endroitx différents ( soit 4 fichiers)
/plugins/hikashopshipping/usps.php
/plugins/hikashopshipping/aupostaupost.php
/administrator/component/com/hikashop/extension/plg_hikashopshipping_usps/usps.php
/administrator/component/com/hikashop/extension/plg_hikashopshipping_aupost/aupost.php
( hikashopshipping_* *= aupost | canadapost | fedex |manual | ups | usps)
et un fichier situé dans
/administrator/component/com/hikashop/classes/shipping.php
usps.php & aupost.php
le code qui rejette le pays est ad/compo.../com.../ext.. /plg.../usps.php
apparait une fois seulement
if($zone->zone_code_3!='USA'){
$messages = JText::_('NO_SHIPPING_TO_YOUR_ZONE');
continue;
}
le code qui rejette le pays est ad/compo.../com.../ext.. /plg..../aupost.php
apparait une fois seulement
if($currentShippingZone->zone_code_3 != 'AUS') {
$messages = JText::_('NO_SHIPPING_TO_YOUR_ZONE');
continue;
}
why restrict zone for USA and AUS inside this php file
shipping.php
the logic in php is inside function &getShippings(&$order, $reset = false) { }
the php code is
if(empty($rates)) {
if(hikashop_loadUser())
$errors = JText::_('NO_SHIPPING_TO_YOUR_ZONE');
$this->errors = $errors;
return $usable_methods;
}
the hikashop_loadUser is define in \administrator\components\com_hikashop\helpers\helper.php line 391
function hikashop_loadUser($full=false,$reset=false)
user come from
getUserState
docs.joomla.org/API17:JApplication::getUserState
getUser
docs.joomla.org/JFactory/getUser
hikashop_get('class.user')->getID($userCMS->get('id')
So why the message error is not more specific to this logic since not only rates is test but also user ?
version
Does the joomla version 1.5.26 or php 5. something you use could be the problem ?
since i open mind i write version question .....even i think hikashop must test all way to test user/rate refer to joomla API version !!!
Is there a hikashop API with the same layout that the one we can find for joomla ( information about all object type : data / function ) ?
docs.joomla.org/Accessing_the_current_user_object
docs.joomla.org/Category:Frameworks_and_Platforms
regard's