Jump to content

viki

Members
  • Posts

    15
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Ukraine, Dnipro city

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

viki's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Dedicated Rare
  • Week One Done Rare

Recent Badges

2

Reputation

  1. I have try to modify module ps_emailalerts for site admin get pdf invoice also. Add to function hookActionValidateOrder in ps_emailalerts before Mail::Send this code: /* attach pdf patch */ $order_invoice_list = $order->getInvoicesCollection(); Hook::exec('actionPDFInvoiceRender', ['order_invoice_list' => $order_invoice_list]); $pdf = new PDF($order_invoice_list, PDF::TEMPLATE_INVOICE, $this->context->smarty); $attach=array(); $content = $pdf->render(false); $attach['content'] = $content; $attach['name'] = Configuration::get('PS_INVOICE_PREFIX', (int) $order->id_lang, null, $order->id_shop) . sprintf('%06d', $order->id) . '.pdf'; $attach['mime'] = 'application/pdf'; And modified call of Mail::Send function for attachment support: Mail::send( $mail_id_lang, 'new_order', $this->trans( 'New order : #%d', [ $order->id, ], 'Emails.Subject', $locale), $template_vars, $merchant_mail, null, $configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME'], $attach, null, $dir_mail, false, $id_shop ); But call of $pdf->render(false) return NULL... what could be the problem? I have use Prestashop 1.7.8.5
  2. I have try to add TypeaheadProductCollectionType field in my module what using hookActionCategoryFormBuilderModifier for adding specific related products for category for my task. I have add to category edit form this field: $formBuilder->add('related_products', TypeaheadProductCollectionType::class, [ 'remote_url' => $this->context->link->getLegacyAdminLink('AdminProducts', true, ['ajax' => 1, 'action' => 'productsList', 'forceJson' => 1, 'disableCombination' => 1, 'exclude_packs' => 0, 'excludeVirtuals' => 0, 'limit' => 20]) . '&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'mapping_type' => 'product', 'placeholder' => $this->getTranslator()->trans('Search and add a related product', [], 'Admin.Catalog.Help'), 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>', 'required' => false, 'label' => $this->getTranslator()->trans('Accessories', [], 'Admin.Catalog.Feature'), ]); After this related products field is appeared in category edit form but not working. As I can see this form not get all needing JS events for working... Please help me. What am I doing wrong?
  3. I read this before posting my topic. Chanes on line 390 in src/Adapter/Product/AdminProductDataProvider.php don't give any effect, only changing language code worked.
  4. After upgrade from 1.7.5.1 to 1.7.7.5 front offce is not worked with LocalizationException error like this: I think this is because the Russian localization uses commas as decimal delimiter instead dot. After changing language code in BO from ru-ru to en-us for russian language all work fine. Where information about delimiter can stored? Replacing localization files in /localization/CLDR/ folder has no effect. May be this hosting depended problem (I has changed hosting also)?
  5. I have problem with change product price in BO. In Product Price tab prices displays with commas instead dots. Because of this I can not change the price of the product. I try to save price but I got error. Changes is saving only if I had change all commas to dots. This problem appers on all translation except english (I try Russian, Ukrainian, Bulgarian and German). In English displays dots and all work well. How I can fix this?
  6. Кто нибудь сталкивался с такой ситуацией: В корзине пропадает символы валюты при изменении количества товара (+ / - ), причем это происходит только если клиент залогинился и включен хотя бы один перевозчик, если клиент не залогинен или перевозчики отключены - все отображается нормально. В чем может быть проблема? Prestashop 1.6.1.1 UPD. похоже это как то связанно с платежным модулем Приват24 UPD2: проблема похоже решена - дело в том, что переменная smarty, которая передается в Privat24.tpl дублирует переменную, используемую в корзине. Необходимо ее просто переименовать.
  7. Hi I have done upgrade from Prestashop 1.6.0.11 to 1.6.0.14 with 1-Click Update module. Everything went well, but after update user registration form have not working with Ajax parcer error. I found that the problem in AuthController.php file with this directive: In Prestashop 1.6.0.11 die(Tools::jsonEncode($return)); In Prestashop 1.6.0.14 $this->ajaxDie(Tools::jsonEncode($return)); After I change this directive to Prestashop 1.6.0.11 It began to work. Why? I use php version 5.3
  8. Разобрался сам Может кому то еще будет интересно, так что вкратце расскажу... Воспользовался все той же функцией "минимальное количество товара доступное для заказа". Идея в том, что бы данные пользователь мог вводить только кратно. Для этого делаем необходимые правки в файлы product.js (страница товара) и cart_summary.js (просмотр корзины) текущей темы. И все. P.S. Хотя странно, что возможность кратного ввода в престе до сих пор не предусмотрели...
  9. Да, смотрел этот способ, но я так понял, что по нему получается что мы создаем отдельный товар, в который будут включен другой товар как комплект... Вот пример того, что я имел ввиду.
  10. Возникла необходимость реализовать продажу товара комплектами по несколько единиц, указывая при этом цену товара за еденицу. Встоенная функция "минимальное количество товара доступное для заказа" естественно не подходит, так как не позволяет ограничить заказ только кратным количеством. Возможна ли реализация такой процедуры заказа стандартными средствами Prestashop, если нет, то какие возможны решения? P.S. Речь о Prestashop 1.6
  11. Это тоже понятно Интересно как это технически реализовано. Кстати, судя по примерам когда дружественные URL переделаны без использования ID, в похожей ситуации переадресация 301 не работает, а работает как раз 404.
  12. Все таки хочется понять почему это происходит. Поиском не нашел...
  13. Заметил странные момент при ошибочном вводе адреса. Например, существует адрес категории: http://baubay.dp.ua/6-komplekty-nabory-podarochnye-nabory если его изменить например на http://baubay.dp.ua/6-komplekty-naborylll то выдается не page-not-found а исходная страница http://baubay.dp.ua/6-komplekty-nabory-podarochnye-nabory то же самое и для отдельных товаров. Почему это происходит? Prestashop 1.4.9.0
×
×
  • Create New...