Class 'JSFactory' not found in Joomla\Component\Jshopping\Site\Model\Productlist\ListModel

16.10.2023 10:05
#1
sergeytolkachyov
User sergeytolkachyov
Name: Sergey
11.10.2019
Posts: 111
Quote
Class 'JSFactory' not found in Joomla\Component\Jshopping\Site\Model\Productlist\ListModel

Получаю список товаров с помощью ListModel

use Joomla\Component\Jshopping\Site\Model\Productlist;

$product_list = new Productlist\ListModel();
$product_list->getLoadProducts() // с параметрами.

На страницах джумшоппинга всё ок. На страницах ВНЕ JoomShopping (материалы и т.д.) - падает с ошибкой.
В код внедрял уже и use Joomla\Component\Jshopping\Site\Model\Productlist; и require_once (JPATH_SITE.'/components/com_jshopping/bootstrap.php');
JoomShopping 5.2.1.

Call stack
# Function Location
1 () JROOT/components/com_jshopping/Model/Productlist/ListModel.php:125
2 Joomla\Component\Jshopping\Site\Model\Productlist\ListModel->getBuildQueryListProductDefaultResult() JROOT/components/com_jshopping/Model/Productlist/ListModel.php:78


Joomla: 4.3.4
JoomShopping: 5.2.1

Joomla developer. https://web-tolk.ru JoomShopping Bitrix24 integration, custom developing.
 
16.10.2023 10:11
#2
sergeytolkachyov
User sergeytolkachyov
Name: Sergey
11.10.2019
Posts: 111
Quote
Aw: Class 'JSFactory' not found in Joomla\Component\Jshopping\Site\Model\Productlist\ListModel

Проблема решилась. Что-то было с кэшем. Сбросил кэш и встало всё на места.


Joomla developer. https://web-tolk.ru JoomShopping Bitrix24 integration, custom developing.
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.