Ошибка Uncaught TypeError: $.loadLocations is not a function

#
Ошибка Uncaught TypeError: $.loadLocations is not a function
Словил такую ошибку:
(index):449 Uncaught TypeError: $.loadLocations is not a function
    at HTMLDocument.<anonymous> ((index):449)
    at c (jquery.min.js:3)
    at Object.fireWith [as resolveWith] (jquery.min.js:3)
    at Function.ready (jquery.min.js:3)
    at HTMLDocument.H (jquery.min.js:3)


Как исправить не знаю. в main.js ничего не менял,
элемент вызывающий ошибку
<xsl:if test="not(/shop/current_shop_country_location_id/node())">
         <SCRIPT type="text/javascript">
            $(function() {
            $.loadLocations('<xsl:value-of select="/shop/url" />cart/', $('#shop_country_id'.val());
            });
         </SCRIPT>
      </xsl:if>
#
Re: Ошибка Uncaught TypeError: $.loadLocations is not a function
axyal,
Можете дать ссылку на сайт посмотреть?
Судя по ошибке не находит функцию $.loadLocations
E-mail: info@syrbek.ru / телега: @syrbek /skype: activexm / syrbek.ru / Поддержка сайтов / г. Москва [HTML, CSS (Bootstrap), JS(JQuery, ExtJS), PHP, MySQL, MSSql, Posgres, Git, SVN, Redmine]
#
Re: Ошибка Uncaught TypeError: $.loadLocations is not a function
#
Re: Ошибка Uncaught TypeError: $.loadLocations is not a function
axyal,
Все верно, у вас не подключен скрип в макете сайта, где расположена это функция https://flowers.ilovlja.ru/hostcmsfiles/main.js
E-mail: info@syrbek.ru / телега: @syrbek /skype: activexm / syrbek.ru / Поддержка сайтов / г. Москва [HTML, CSS (Bootstrap), JS(JQuery, ExtJS), PHP, MySQL, MSSql, Posgres, Git, SVN, Redmine]
#
Re: Ошибка Uncaught TypeError: $.loadLocations is not a function
Спасибо, поправил, теперь ошибка jquery.min.js:2 POST https://flowers.ilovlja.ru/cart/?ajaxLoad&shop_country_id=0 404 (Not Found)
#
Re: Ошибка Uncaught TypeError: $.loadLocations is not a function
Похоже у вас нет страницы куда отправляете запрос https://flowers.ilovlja.ru/cart/
«Не выходи из комнаты, не совершай ошибку…»
#
Re: Ошибка Uncaught TypeError: $.loadLocations is not a function
а если шаблон одностраничный надо поменять путь /cart на саму страницу?
#
Re: Ошибка Uncaught TypeError: $.loadLocations is not a function
Да. Но тогда и РНР  обработка AJAX ответа должна быть на этой странице.
«Не выходи из комнаты, не совершай ошибку…»
#
Re: Ошибка Uncaught TypeError: $.loadLocations is not a function
Можете привести код обработчика? Заранее благодарю
#
Re: Ошибка Uncaught TypeError: $.loadLocations is not a function
Стандартный код такой:

if (!is_null(Core_Array::getGet('ajaxLoad')))
{
   $aObjects = array();

   if (Core_Array::getGet('shop_country_id'))
   {
      $oShop_Country_Location = Core_Entity::factory('Shop_Country_Location');
      $oShop_Country_Location
         ->queryBuilder()
         ->where('shop_country_id', '=', intval(Core_Array::getGet('shop_country_id')));
      $aObjects = $oShop_Country_Location->getAllByActive(1);
   }
   elseif (Core_Array::getGet('shop_country_location_id'))
   {
      $oShop_Country_Location_City = Core_Entity::factory('Shop_Country_Location_City');
      $oShop_Country_Location_City
         ->queryBuilder()
         ->where('shop_country_location_id', '=', intval(Core_Array::getGet('shop_country_location_id')));
      $aObjects = $oShop_Country_Location_City->getAllByActive(1);
   }
   elseif (Core_Array::getGet('shop_country_location_city_id'))
   {
      $oShop_Country_Location_City_Area = Core_Entity::factory('Shop_Country_Location_City_Area');
      $oShop_Country_Location_City_Area
         ->queryBuilder()
         ->where('shop_country_location_city_id', '=', intval(Core_Array::getGet('shop_country_location_city_id')));
      $aObjects = $oShop_Country_Location_City_Area->getAllByActive(1);
   }

   $aArray = array('…');
   foreach ($aObjects as $Object)
   {
      //$aArray['_' . $Object->id] = $Object->name;
      $aArray['_' . $Object->id] = $Object->getName();
   }

   Core::showJson($aArray);
}
«Не выходи из комнаты, не совершай ошибку…»
Авторизация