Giter Site home page Giter Site logo

Comments (10)

tominpasha avatar tominpasha commented on June 26, 2024

Здравствуй, если дашь доступ в админку - я посмотрю

from ksenmart.

Dexternova avatar Dexternova commented on June 26, 2024

привет. ответил тебе на почту.

from ksenmart.

tominpasha avatar tominpasha commented on June 26, 2024

Проблема заключается в импорте, не запоминается кодировка файла, выбранная на первом шаге.
Возможное решение:
1.В контроллер KsenMartControllerExportImport в метод import_from_csv_parse добавляем первой строкой
JFactory::getApplication()->getUserStateFromRequest('com_ksenmart.exportimport.encoding', 'encoding', 'cp1251');
2.В моделе KsenMartModelExportImport в методе populateState исправим опредление переменной $encoding
$encoding = $app->getUserStateFromRequest('com_ksenmart.exportimport.encoding', 'encoding', 'cp1251');

from ksenmart.

Dexternova avatar Dexternova commented on June 26, 2024

а где находятся эти файлы. куда вносить изменения?

from ksenmart.

tominpasha avatar tominpasha commented on June 26, 2024

/administrator/components/com_ksenmart/controllers/exportimport.php - контроллер
/administrator/components/com_ksenmart/models/exportimport.php - модель

from ksenmart.

Dexternova avatar Dexternova commented on June 26, 2024

импортировал первые 7 товаров - перестала открываться раздел со всеми товарами(http://ori.in.ua/shop), ошибка:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 SQL=SELECT alias FROM ha59d_ksenmart_categories WHERE id=

from ksenmart.

Dexternova avatar Dexternova commented on June 26, 2024

что делать?

from ksenmart.

tominpasha avatar tominpasha commented on June 26, 2024

Похоже дело в том что у некоторых товаров не проставились категории по умолчанию, почему - это надо проанализировать. Быстро решить проблему можно попробовать вот таким способом:
заменить
$default_category = $db->loadResult();
на
$default_category = (int)$db->loadResult();
в файле /components/com_ksenmart/router.php на 88 строке, вот кусок кода:
$sql = $db->getQuery(true);
$sql->select('category_id')->from('#__ksenmart_products_categories')->where('product_id=' . (int)$query['id'])->where('is_default=1');
$db->setQuery($sql);
$default_category = $db->loadResult();

from ksenmart.

Dexternova avatar Dexternova commented on June 26, 2024

спасибо. помогло.

from ksenmart.

tominpasha avatar tominpasha commented on June 26, 2024

Всегда рады помочь )

from ksenmart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.