Jump to content

Search the Community

Showing results for tags 'product admin'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Marketplace
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 5 results

  1. Hello, I added a test_field in /src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php public function buildForm(FormBuilderInterface $builder, array $options) { . . . ->add('test_field', TranslateType::class, [ 'type' => FormType\TextType::class, 'constraints' => [ new Assert\Regex([ 'pattern' => '/[<>;=#{}]/', 'match' => false, ]), new Assert\NotBlank(), new Assert\Length(['min' => 3, 'max' => 50]), ], 'options' => [ 'attr' => [ 'placeholder' => $this->translator->trans('Enter your test text', [], 'Admin.Catalog.Feature'), 'class' => 'edit js-edit', 'counter' => 50, ], 'required' => true, ], 'locales' => $this->locales, 'label' => $this->translator->trans('Test field', [], 'Admin.Catalog.Feature'), ]) . . . } defined in /src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/product.html.twig {# PANEL ESSENTIALS #} {% block product_panel_essentials %} {% set formQuantityShortcut = form.step1.qty_0_shortcut is defined ? form.step1.qty_0_shortcut : null %} {{ include('@Product/ProductPage/Panels/essentials.html.twig', { . . . 'formTestField': form.step1.test_field, . . . }) }} {% endblock %} and set HTML in /src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Panels/essentials.html.twig <div id="test_field" class="mb-3"> <strong>{{ form_label(formTestField) }}</strong> {{ form_widget(formTestField) }} </div> The field is displayed correctly. It's for JS use only - it doesn't write to the database. However, I have a problem with the translation. It should be on the Admin.Catalog.Feature domain but it's not showing in the translation interface. What am I doing wrong? How do I translate the label and placeholder for a newly added field to my language?
  2. Hello, My config : Apache/2.4.18 (Ubuntu) - PHP 7.0.33-0ubuntu0.16.04.3 - MySQL 5.7.25-0ubuntu0.16.04.2 - InnoDB This week-end I've upgraded the shop from MySQL 5.6 to 5.7. I changed the sql_mode to the following removing NO_ZERO_DATE and NO_ZERO_IN_DATE so that the database accepts dates with zeros : +------------------------------------------------------------------------------------------+ | @@sql_mode | +------------------------------------------------------------------------------------------+ | ONLY_FULL_GROUP_BY,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION | +------------------------------------------------------------------------------------------+ 1 row in set (0,00 sec) I tested a bit the website so I went on a product on the back-office and entered a specific price with an unlimited date (0000-00-00 00:00:00). It accepted the line. Then I tried to remove the line and I got the error "The specific price ID is invalid." and the line didn't remove itself. I tried removing other existing specific price lines but the same error appeared. I've searched for the error on the Prestashop files and it is on controllers/admin/AdminProductsController.php l.1171 public function ajaxProcessDeleteSpecificPrice() { if ($this->tabAccess['delete'] === '1') { $id_specific_price = (int)Tools::getValue('id_specific_price'); if (!$id_specific_price || !Validate::isUnsignedId($id_specific_price)) { $error = Tools::displayError('The specific price ID is invalid.'); } else { $specificPrice = new SpecificPrice((int)$id_specific_price); if (!$specificPrice->delete()) { $error = Tools::displayError('An error occurred while attempting to delete the specific price.'); } } } else { $error = Tools::displayError('You do not have permission to delete this.'); } if (isset($error)) { $json = array( 'status' => 'error', 'message'=> $error ); } else { $json = array( 'status' => 'ok', 'message'=> $this->_conf[1] ); } So if there is no specific price ID (which is not the case) or if my specific price ID isn't validated as an Unsigned ID then the error appears. To be validated as an Unisgned ID, it's in classes/Validate.php l.696 with : /** * Check for an integer validity (unsigned) * Mostly used in database for auto-increment * * @param int $id Integer to validate * @return bool Validity is ok or not */ public static function isUnsignedId($id) { return Validate::isUnsignedInt($id); /* Because an id could be equal to zero when there is no association */ } So my ID must be Unisgned if I don't want to have this error. Except that when I go to the SQL table of the specific price, my ID is Unsigned : 1 id_specific_price Primaire bigint(11) UNSIGNED Non Aucune AUTO_INCREMENT So I don't understand why I got this error. I never got it with MySQL 5.6. Does someone know if something in MySQL 5.7 prevents my bigint unsigned ID from beeing an UnsignedID ?
  3. Goede middag allen, Ik heb een dringende vraag. Ik wil graag bij het invoerveld voor een beschrijving bij een nieuw toe te voegen product, een standaard tekst neerzetten welke mijn werknemers dan kunnen aanpassen. Dus geen placeholder, deze gaat namelijk weg als je op het tekst veld klikt. Maar een opgemaakte tekst welke ze dan alleen hoeven aan te passen/ in te vullen. Ik heb dit geprobeerd in /src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php. Echter laat hij zelfs de toegevoegde placeholder als tekst niet zien, hoe moet ik de tekst toevoegen?: ->add('description', 'PrestaShopBundle\Form\Admin\Type\TranslateType', array( 'type' => 'Symfony\Component\Form\Extension\Core\Type\TextareaType', 'options' => [ 'attr' => array( 'class' => 'autoload_rte', 'placeholder' => 'Testen van de basis', 'counter' => 21844 ), 'constraints' => array( new TinyMceMaxLength(array( 'max' => 21844 )) ), 'required' => false ], 'locales' => $this->locales, 'hideTabs' => true, 'label' => $this->translator->trans('Description', [], 'Admin.Global'), 'required' => false,
  4. Hello everyone, I would like to know and how to do it, if there is a possibility, to set an alert saying to me the product I'm inserting has price = 0 and don't let me save it in that case, don't let me save the product until price is > 0 . Hope someone could help me. Thank you very much in advance. Zaida
  5. hello, i need little help here, anybody can give me the solution ? here's my problem, when i try to edit some product, suddenly my categories didn't show up at all.. and in the image section, there is no upload button and the product picture didn't show up.. there is more than 100 product that i already post.. and i cannot edit and also add new product.. please give me solution, thanks..
×
×
  • Create New...