Jump to content

Search the Community

Showing results for tags 'BackOffice'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Addons
  • 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


  1. Hi, i encountered an issue on catalog search in backoffice. No matter which search you make, all products are returned to me as a search result (see attachment). I also noticed that if I go to see the SQL Query that is processed on the basis of the search, it is not modified by entering the search key used. Informazioni sul server Linux #1 SMP Thu May 27 10:10:44 UTC 2021 x86_64 Versione software del server: Apache Versione di PHP: 7.2.34 Limite di memoria: 1G Tempo di esecuzione massimo: 10000 Dimensione Max. dei file da caricare: 256M Versione di PrestaShop: 1.7.7.0 URL negozio: http://schepismodel.com/ Percorso negozio: /home/ijplfryu/schepismodel.com Tema attualmente utilizzato: mega_parts_store
  2. Hello everyone. After several days of unsuccessful research, I have come to ask you for help. For several weeks, I have huge slowdowns in my backoffice, on almost all pages. I have to wait for all ajax requests to complete before I can do anything. I'm pretty sure the problem is with the notification system when there's a new order/customer/message but I haven't been able to verify that. I also think stats also slow down pages. I attach my log when launching the Catalog > Category page : This is all I tried to disable the notifications: Advanced Settings > Administration: Notification, all disabled Disable the "Order Notifications on the Favicon" module Empty the ps_connections, ps_connections_page, ps_connections_source tables In classes/Notification.php, I forced the function getLastElements() returned an empty array Cache cleared All these changes have not changed anything, the requests are still all sent. Unfortunately I can't activate profile mode on my shop, all pages crash when I activate it. Does anyone know how to disable these notification requests? Same remark concerning the AdminStat requests which are launched on the pages which have a header with statistics, for example the list of customers which displays the average age of the customers. I don't want to disable my store stats, just turn off sending the request directly in the code if need be. Thank you.
  3. Hello, I want to add the checkbox and a text field into the options tab of the product. Prestashop version is 8.0.4. I have added a piece of code, to show the checkbox and the input field. When checkbox is checked then text box will be shown else hidden. But now I'm struggling for the saving of that checkbox and textbox values into the database. (I already created a fields into the database "is_special_product" and "special_description"). So which are the steps that are to be followed for the data is being saved into the database (for both create and edit). I did the changes in classes/product.php , AdminProductDataProvider.php, ProductOptions.php etc. So, please help mw with the same. please list out the files which are needed to be changed to do the same with changes required. Thanks in advance.
  4. Hello à tous. Après plusieurs jours de recherche infructueuse, je suis venu vous demandez de l'aide. Depuis plusieurs semaines, j'ai d'énormes ralentissements sur mon backoffice, sur pratiquement toutes les pages. Je dois attendre que toutes les requêtes ajax soient terminées pour pouvoir faire quoi que ce soit. Je suis presque certain que le problème vient du système de notification lorsqu'il y a une nouvelle commande/client/message mais je n'ai pas réussi à le vérifier. Je pense également que les statistiques ralentissent également les pages. Je vous mets en pièce jointe mon log quand le lance la page Catalogue > Catégorie. Voilà tout ce que j'ai essayé pour couper les notifications : Paramètres avancés > Administration : Notification, tout est désactivé Désactiver le module "Notifications de Commande sur le Favicon" Vider les tables ps_connections, ps_connections_page, ps_connections_source Dans classes/Notification.php, j'ai forcé la fonction getLastElements() a retourné un tableau vide Tous ces changements n'ont rien changé, les requêtes sont toujours toutes envoyées. Je ne peux malheureusement pas activer le mode profile sur ma boutique, toutes les pages crash quand je l'active. Est-ce que quelqu'un saurait me dire comment désactiver ces requêtes notification ? Même remarque concernant les requêtes AdminStat qui sont lancées sur les pages qui possède un entête avec des statistiques, par exemple la liste des clients qui affiche l'age moyen des clients. Je ne veux pas désactiver les statistiques de ma boutique, juste couper l'envoi de la requête directement dans le code s'il le faut. Merci.
  5. Hi, I was wondering if it is possible to add columns here in backoffice > customer > details : bought product section. Default it shows the date, product name and amount. I would love to display the product reference in a column and if possible the wholesale price in another column. Would this be possible in relatively simple way? Who is here with a solution? Story behind: The reason for this it would make it really easy to create a customer account that can be used as a "loss of inventory" accounting list. I can simply scan products in my POS, link them to a custom shop customer account and get a detailed overview of products that are thrown away because the are past due date. This would save a lot of time spending in excel and stock management...
  6. Hi everyone, as Tools are used to get the product id on front office, is it possible to get the product id in back office on the products editing page? (The controller that is being used there is Admin Products Controller).
  7. This question relates to my earlier post https://www.prestashop.com/forums/topic/636915-solved-prestashop-redirects-to-login-screen-when-accessing-some-bo-menu-items/ which I thought was resolved but isn't. I am starting a new post because some information in the old one didn't relate to the actual issue, so for more clarity here it is revised: Since moving my client site to a new hosting server (where I have a number of other Prestashop sites hosted without any problem), my client's site has problems accessing some back office menu items, namely Orders, Customers and Performance. If you click on any of these, you get redirected to the login screen. Not crashed out, just redirected. Going backwards in the browser brings us back in. For the Order page for example, the URL for the menu item is: https://www.XYZcompany.com/shop/admin/index.php?controller=AdminOrders&token=4da9c0650556eb6956c784aa1b14a2bb However, if we click on it, it becomes: https://www.XYZcompany.com/shop/admin/index.php?controller=AdminLogin&token=af3bdebf540cc4942582bb9479e49ba2&redirect=AdminOrders and redirects to the login page. But, if we copy this link directly into the browser but REMOVE the token part, it opens the Orders page correctly: https://www.XYZcompany.com/shop/admin/index.php?controller=AdminOrders Yesterday, we did this a few times. At first, after accessing the Orders page with the ex-token URL and then moving around to other menu items, when getting back to Orders we would still get redirected to the login screen. But after a while, a new token seemed to have been generated that the system was happy with and we could access Orders by clicking on the menu as normal. So I thought the issue was resolved. However, this morning we are back to the redirect, and so far I have not been able to resolve it. Any suggestions from developers with a better understanding of tokens would be appreciated. I can only find information realting to error messages about "Invalid Security Tokens" but there are no error messages for us, just the redirect. Thanks!!
  8. Hi everyone, I have had, in the lapse of 3 weeks, this same bug 2 times. This bug is related to the access of the backoffice. Suddenly I can't log in prestashop's dashboard. I enter the correct user and password and it loads but doesn't log in. When I enter a wrong password, it doesn't display the error (I attach a screenshot of this below, I have changed the cookie in url also some text). I have solved it twice restoring a backup of the files from the previous 24-36h, because deleting prestashop's cache by ftp and browser's cache, does not solve the issue. I have installed the files with the bug in a subdomain in case prestahsop's developers want to have a look. If anyone have experienced a similar issue, please tell me. Thanks for reading this. Best regards for all of you PrestaShop version(s) where the bug happened 1.7.7.2 PHP version(s) where the bug happened 7.3
  9. I recently needed to make the backoffice have the darkmode functionality but I wanted to do it in such a way that it can be supported for all future versions of Prestashop and after a while I came up with the idea of implementing it using Dark Reader inside a simple and light module for Prestashop 1.7.x.x. General features: - Button in the main menu to toggle the version in dark or normal mode. - Save the preference in the browser's localStorage to enable or disable the dark mode. Installation Upload module zip file from the back-office Module & Services menu tab. Module Manager area using the upload button. After the successful installation module menu, the link will appear in the left menu or in back-office area. Link Github Repo Download Module last Release Any suggestions or comments are welcome bodarkmode.zip
  10. I would like to hide the help button form the backoffice, i already removed the "demo button" with an overide from the AdminDashboardController, i don't know the name of the button wish is used. Someone knows the name of the button ? thanks a lot in advance, i'm running on prestashop 1.7.3 <?php class AdminDashboardController extends AdminDashboardControllerCore { public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); unset($this->page_header_toolbar_btn['switch_demo']); } }
  11. Buenos días comunidad: Desde hace unos días no podemos acceder al Backoffice del Prestashop. Al introducir las credenciales, se queda el cuadro del login en blanco, sin los campos y no hay manera de poder acceder. ¿Cómo podríamos solucionarlo? Muchas gracias. Saludos.
  12. Buenos días Hace poco hemos detectado un extraño comportamiento en Prestashop a la hora de reordenar productos dentro de una categorías. Se trata de un PS 1.7.5.2 con plantilla warehouse 4.2.1 Lo que sucede es lo siguiente. Si un usuario quiere reordenar la posicion de un producto dentro de una categoría coloca las posiciones donde quiera y pulsa en "Guardar y actualizar" En circustancias normales, si queremos volver a reordenar deberiamos pulsar en "Pedir de nuevo".. Y aquí es donde llega el problema... resulta que en las oficinas de la empresa el botón "pedir de nuevo" no aparece. Sigue mostrando "guardar y actualizar"... 😅 Si limpiamos cookies y cache de browser en alguna ocasión parece que vuelve a aparecer el boton de "pedir de nuevo", sin embargo solo permite guardar una vez y ahora incluso limpiando cookies y cache tampoco funciona. Lo hemos probado desde varios navegadores y desde dos ordenadores distintos y sigue fallando... Lo curioso de todo es que únicamente sucede como digo en las oficina de la empresa, si lo hago por ejemplo desde casa no hay ningun problema. Y lo que ya es el colmo de extraño, es que si desde casa me conecto por teamviewer a un PC de la oficina entonces SÍ funciona correctamente, PERO si en esa misma sesión (sin desconectar el teamviewer) la persona que está en el PC de la oficina pulsa el botón de "guardar y actualizar" entonces no funciona. 😯😯😯 Insisto, en la misma sesión de windows, simplemente que el botón de "guardar y actualizar" lo pulsa la persona que está en el PC o bien la persona que está en el teamviewer remoto pero con resultados distintos.... Nunca había visto semejante comportamiento........... Alguien tiene alguna idea de qué puede tratarse???? Gracias
  13. Hi everyone. I cannot uninstall/deactivate modules in my BackOffice in Prestashop 1.7.5.1. Some red strange error pops up with: Error! Could not perform action disable for module undefined In some other site I read it may be folders permissions problem. I'm on a shared hosting. I have checked, and all my folders are 755 and files 644. I managed to do it simply by renaming the module's folder I want to deactivate. But I'm unware of what's happening with the normal options in the BackOffice. Thanks in advance. Good day.
  14. Hallo Zusammen Ich bin der Stephan und neu hier. Seit gut 3 Wochen läuft mein Frotend vom Shop zwar aber ich komme nicht mehr ins Backoffice. Wenn ich den Adminbereich öffne, kann ich die Anmeldedaten eingeben und nach ein paar Sekunden kommt die Http Error 500 (weiss mittlerweile das dieser nichts aussagt). Ich kann die Anmeldedaten eingeben aber nachher passiert nicht mehr. Durch die verschieden Beiträge habe ich bereits den Ordner gamification unbenannt. Bis jetzt ist der Shop einwandfrei gelaufen und wir hatten keine Probleme. Währe euch sehr dankbar wenn mir jemand weiterhelfen könnte, da wir anfangs November den Shop Live schalten wollten. Sollte ich etwas vergessen haben, füge ich diese gerne hinzu. Besten Dank für eure Hilfe Grüsse Stephan Prestashop Version 1.7.2.4 PHP: 5.6 auch schon 7.1 probiert Fehlermeldung vom Hoster heute erhalten: [Wed Nov 11 11:29:37.967605 2020] [fcgid:warn] [pid 12066] [client 194.230.155.128:53364] mod_fcgid: stderr: Next exception 'LogicException' with message 'Request stack is empty' in /home/ch239901/web/online.kuechenzauber.shop/public_html/app/bootstrap.php.cache:3224, referer: https://online.kuechenzauber.shop/administrator/index.php?controller=AdminLogin&token=cd95b581655ecb08d2ae752a4101973e&redirect=AdminDashboard [Wed Nov 11 11:29:37.967609 2020] [fcgid:warn] [pid 12066] [client 194.230.155.128:53364] mod_fcgid: stderr: Stack trace:, referer: https://online.kuechenzauber.shop/administrator/index.php?controller=AdminLogin&token=cd95b581655ecb08d2ae752a4101973e&redirect=AdminDashboard [Wed Nov 11 11:29:37.967612 2020] [fcgid:warn] [pid 12066] [client 194.230.155.128:53364] mod_fcgid: stderr: #0 [internal function]: Symfony\\Component\\HttpKernel\\HttpKernel->terminateWithException(Object(Symfony\\Component\\Debug\\Exception\\ClassNotFoundException)), referer: https://online.kuechenzauber.shop/administrator/index.php?controller=AdminLogin&token=cd95b581655ecb08d2ae752a4101973e&redirect=AdminDashboard [Wed Nov 11 11:29:37.967615 2020] [fcgid:warn] [pid 12066] [client 194.230.155.128:53364] mod_fcgid: stderr: #1 /home/ch239901/web/online.kuechenzauber.shop/public_html/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_func(Array, Object(Symfony\\Component\\Debug\\Exception\\ClassNotFoundException)), referer: https://online.kuechenzauber.shop/administrator/index.php?controller=AdminLogin&token=cd95b581655ecb08d2ae752a4101973e&redirect=AdminDashboard [Wed Nov 11 11:29:37.967619 2020] [fcgid:warn] [pid 12066] [client 194.230.155.128:53364] mod_fcgid: stderr: #2 /home/ch239901/web/online.kuechenzauber.shop/public_html/vendor/symfony/symfony/src/Symfony/Component/Debug in /home/ch239901/web/online.kuechenzauber.shop/public_html/app/bootstrap.php.cache on line 3224, referer: https://online.kuechenzauber.shop/administrator/index.php?controller=AdminLogin&token=cd95b581655ecb08d2ae752a4101973e&redirect=AdminDashboard
  15. Hi , I have a remark that I wish to share with you ; I created associated products for my product, in front office I have a precise display, afterwards I wanted to reorder the associated products according to the importance so that they are displayed in front again according to the desired order, I used the following code js to make drug and drop for the associated products of the back office. This works but when I register the product in question it disappeared. for the file C:\wamp64\www\prestashop_1.7.4.4\admin116caruwq\themes\default\js\bundle\product , i made that change : $( function() { $( "#form_step1_related_products-data" ).sortable(); $( "#form_step1_related_products-data" ).disableSelection(); } ); How could i manage realted products from backoffice in order to manipulate its orders in front ? any idea , suggestion is appreciated
  16. When I place an order via my back office for one item I get this message No carrier can be applied to this order and I can not create the order However when I increase the units to two or order a second product so the total becomes 2 all of the usual carries are applied and the order can be placed. Can you please advise how to correct this See photos below 1x item = £5 2x item = £10 my free delivery kits in at £25 when i do it via the website like a customer would do it appears to still be ok so looks like the issue is with the back office Thank you Esther https://esthermarie.co.uk/shop/en/
  17. Bonjour, Mon backoffice est très très lent à tel point que je ne peux pas travailler efficacement sur ma boutique. Créer un seul produit me prend + de 10 minutes !! J'ai modifié une valeur dans le ftp afin de comprendre ce qu'il se passe sur mon backoffice, il semblerait qu'un module soit à la base du problème sur l'intégralité du Backoffice Voici la capture d'écran l'hébergement n'est absolument pas saturé je n'ai pas de commande, le site est en maintenance donc pas de trafic, metrics et analytics sont désinstallés, je ne sais plus quoi faire Merci par avance
  18. Mam problem jak na obrazku poniżej, czyli nie wiem w jaki sposób zmusić Prestę (1.7.8.8) do wyświetlania cen brutto zamiast netto. Problem występuje tylko przy tworzeniu zamówienia bezpośrednio z panelu admina. Wszelkie ustawienia dot. podatku są ustawione poprawnie. We wszelkich innych miejscach (np. przeglądając już później szczegóły zamówienia) ceny jednostkowe za produkty widnieją w kwotach brutto. Byłbym bardzo wdzięczny za wskazanie co powinienem wyedytować, bo niestety haków tam nie ma, jak i plików które były wcześniej za to odpowiedzialne (przed migracją presty na symfonię). Jeśli ktoś chce powtórzyć istniejący problem u siebie - to dokładnie ta instancja z tym samym problemem stoi na oficjalnej demówce: https://demo.prestashop.com/#/en/back
  19. Good morning, I can't access my Prestashop Backoffice, it gives me the following error message: Failed to load resource: the server responded with a status of 404 () So far I can only fix the problem by doing the restore on the server.
  20. Hello, On several pages of my backoffice, I have blank pages, a full white blank pages. This happens for : Modules > Modules manager Design > Positions Payment > Methods of payment Payment > Preferences Internation > Translations Could you please help on that ? Thanks a lot,
  21. 我們最近想在後台更新一下內容, LOGIN 時的速度還好, 但當進入後台後點選任何選項都會非常慢, 等差不多10分鐘後才會正常。 請問這是什麼問題? 我已經有在 "進階設定" 點了 "清取快取"
  22. Buenos días, Me pongo en la problemática, pongo un ejemplo práctico. Tenemos 5 productos que son iguales, pero de marcas distintas y con referencias distintas. Al buscar cualquiera de sus referencias queremos que nos muestre esos 5 productos y la solución que hemos visto es crear tantas etiquetas como referencias e incluirlas en los 5 productos. Bien, pues queremos que 1 producto en específico de una marca salgo como primero siempre en el buscador cuando se busque siempre. En el buscador nativo de Prestashop, vemos que es hay niveles de prioridad en los campos del producto, pero poner que tenga más prioridad no sirve, ya que lo que quiero priorizar es que se priorice los productos de una marca cuando se busque una etiqueta.
  23. Hice una migración de mi PrestaShop de un dominio a otro. Lo que ocurre es que el backoffice no se ve correctamente, todo lo que son desplegables, se ven desplegados y no me permite seleccionar ninguna opción. Tengo que volver a instalar solo la parte del backoffice, o como puedo solucionarlo? Gracias
  24. Hi, I want to add a new checkbox in the product tab that will be called product_unchecked in Prestashop 1.7.8.3. My problem is that when I check the checkbox and hit save no error appears, but when I refresh the product tab again, the checkbox is unchecked and in the database does not change the value to 1. I have seen several tutorials but I can't find the solution, as they are quite old. These are the steps I have followed, I attach screenshots to see if a solution can be found. 1.- Add field in the database 2.- I create the file product.php in override/classes/Product.php <?php public $producto_descatalogado ; public function __construct ( $id_product = null , $full = false , $id_lang = null , $id_shop = null , Context $context = null ) { self::$definition['fields']['producto_descatalogado'] = array('type' => self::TYPE_BOOL, 'shop' => true, 'validate' => 'isBool'); } ?> 3.- I add the following lines in src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php ->add('producto_descatalogado', FormType\CheckboxType::class, [ 'label' => $this->translator->trans('producto descatalogado', [], 'Admin.Global'), 'required' => false, ]) 4.- I add the following lines in src/PrestaShopBundle/Model/Product/AdminModelAdapter.php: private $multiShopKeys = [ [...] 'producto_descatalogado', ]; private $translatableKeys = [ [...] 'producto_descatalogado', ]; private $unmapKeys = [ [...] 'producto_descatalogado', ]; private function mapStep1FromData(Product $product) { [...] 'producto_descatalogado' => $product->producto_descatalogado== 0 ? false : true, ]; } 5.- I add the following lines 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', { [...] 'formDescatalogado': form.step1.producto_descatalogado, }) }} {% endblock %} 6. I add the following lines src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Panels/essentials.html.twig <div class="form-group mb-4"> <h2>Descatalogado</h2> {{ form_widget(formDescatalogado) }} </div> Attached is a screenshot of the product sheet with the checkbox That's all, thank you.
  25. Buenas, quiero añadir un nuevo checkbox en la ficha del producto que se llamará producto_descatalogado en Prestashop 1.7.8.3 Mi problema es que cuando marco el checkbox y le doy a guardar no aparece ningún error, pero cuando vuelvo a refrescar la ficha del producto, se desmarca el checkbox y en la base de datos no cambia el valor a 1. He visto varios tutoriales pero no encuentro la solución, ya que son bastante antiguos. Estos son los pasos que he seguido, adjunto capturas para ver si se puede encontrar una solución. 1.- Añadir campo en la base de datos 2.- Creo el archivo product.php en override/classes/Product.php <?php public $producto_descatalogado ; public function __construct ( $id_product = null , $full = false , $id_lang = null , $id_shop = null , Context $context = null ) { self::$definition['fields']['producto_descatalogado'] = array('type' => self::TYPE_BOOL, 'shop' => true, 'validate' => 'isBool'); } ?> 3.- Añado las siguientes lineas en src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php ->add('producto_descatalogado', FormType\CheckboxType::class, [ 'label' => $this->translator->trans('producto descatalogado', [], 'Admin.Global'), 'required' => false, ]) 4.- Añado las siguientes lineas en src/PrestaShopBundle/Model/Product/AdminModelAdapter.php: private $multiShopKeys = [ [...] 'producto_descatalogado', ]; private $translatableKeys = [ [...] 'producto_descatalogado', ]; private $unmapKeys = [ [...] 'producto_descatalogado', ]; private function mapStep1FromData(Product $product) { [...] 'producto_descatalogado' => $product->producto_descatalogado== 0 ? false : true, ]; } 5.- Añado las siguientes líneas en 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', { [...] 'formDescatalogado': form.step1.producto_descatalogado, }) }} {% endblock %} 6. Añado las siguientes líneas src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Panels/essentials.html.twig <div class="form-group mb-4"> <h2>Descatalogado</h2> {{ form_widget(formDescatalogado) }} </div> Adjunto captura de la ficha del producto con el checkbox Eso es todo, gracias.
×
×
  • Create New...