No static text for differen Shops

22.12.2022 12:41
#1
lars.esser@me.com
Joomshopping forum user no avatar
Name: lars
13.11.2022
Posts: 25
Quote
No static text for differen Shops

It is not possible to configure the terms and conditions and imprint for a store.
All the static texts are available only once. But AGB etc. is needed for all stores.

PLEASE FIX
No static text for differen Shops

 
24.12.2022 14:31
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25941
Quote
Aw: No static text for differen Shops

install Multi shops 2.5.0 (Joomshopping 5.1.2 +)

+

components\com_jshopping\Table\StatictextTable.php

function loadData($alias){
$lang = \JSFactory::getLang();
$db = \JFactory::getDBO();
$query = "SELECT id, alias, `".$lang->get('text')."` as text FROM `#__jshopping_config_statictext` where alias='".$db->escape($alias)."'";
$db->setQuery($query);
return $db->loadObJect();
}

change to

function loadData($alias){
$lang = \JSFactory::getLang();
$db = \JFactory::getDBO();
$query = "SELECT id, alias, `".$lang->get('text')."` as text FROM `#__jshopping_config_statictext` where alias='".$db->escape($alias)."'";
\JFactory::getApplication()->triggerEvent('onBeforeLoadDataStaticTextTable', array(&$query, &$alias));
$db->setQuery($query);
return $db->loadObJect();
}

 


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.