Search the Community
Showing results for tags 'admin'.
-
Syntax error in template "file:/home/buffalow/public_html/admin/themes/default/template/controllers/modules/login_addons.tpl" on line 27 "{if $add_permission eq '1'}" unknown tag 'if' [SmartyCompilerException 0] I don't know why I am getting the above error, what is the solution to this?
-
Hi, I have a module which displays table in DisplayAdminProductsExtra hook, and there are links to another controller extending ModuleAdminController. Controller is in my_module/controllers/admin/ link is: index.php?controller=AdminDetailSpecificationTables It didn't work for first time - but I've created link to the menu tab and now it works (strange) However, controller is loaded, but not template. When I use $this->setTemplate('display.tpl'); and my template is in my_module/views/templates/admin/display.tpl It showss me this error: Unable to load template file 'D:\wamp\www\xxx\adminyyyy/themes/default\template\display.tpl' which is a little bit strange, url is broken. I am getting frustrated. If you could help, I would really appreciate it Thanks!
- 5 replies
-
- ModuleAdminController
- controller
-
(and 3 more)
Tagged with:
-
Bonjour, Version PS: 1.7.2.4 Lorsque je veux consulter la liste des panier depuis le dashboard de l'interface d'administration de Prestashop j'ai une page d'erreur : [PrestaShopException] Invalid address #18 at line 439 in file classes/Address.php 434. // if an id_address has been specified retrieve the address 435. if ($id_address) { 436. $address = new Address((int)$id_address); 437. 438. if (!Validate::isLoadedObject($address)) { 439. throw new PrestaShopException('Invalid address #'.(int)$id_address); 440. } 441. } elseif ($with_geoloc && isset($context->customer->geoloc_id_country)) { 442. $address = new Address(); 443. $address->id_country = (int)$context->customer->geoloc_id_country; 444. $address->id_state = (int)$context->customer->id_state; AddressCore::initialize - [line 197 - classes/tax/Tax.php] - [1 Arguments] TaxCore::getProductEcotaxRate - [line 722 - classes/Cart.php] - [1 Arguments] CartCore->getProducts - [line 3867 - classes/Cart.php] CartCore->isVirtualCart - [line 1797 - classes/Cart.php] CartCore->getOrderTotal - [line 1715 - classes/Cart.php] - [2 Arguments] CartCore::getTotalCart - [line 860 - controllers/admin/AdminCartsController.php] - [3 Arguments] AdminCartsControllerCore->getOrderTotalUsingTaxCalculationMethod - [line - ] - [2 Arguments] call_user_func_array - [line 333 - classes/helper/HelperList.php] - [2 Arguments] HelperListCore->displayListContent - [line 162 - classes/helper/HelperList.php] HelperListCore->generateList - [line 920 - controllers/admin/AdminCartsController.php] - [2 Arguments] AdminCartsControllerCore->renderList - [line 2099 - override/classes/controller/AdminController.php] AdminControllerCore->initContent - [line 205 - classes/controller/Controller.php] ControllerCore->run - [line 379 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 95 - admin/index.php] Y a t'il un moyen de supprimer un ou plusieurs panier abandonnés ? Merci pour votre aide.
- 11 replies
-
- invalid address
- prestashopexception
-
(and 3 more)
Tagged with:
-
Hello, I want to put the stocks like in the images below. Green- in stock Yellow- Low Stock Red - No stock
- 1 reply
-
- prestashop
- admin
-
(and 1 more)
Tagged with:
-
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']); } }
-
Hi everyone. I've just installed PS in my local machine (OS X), everything went smoothly but when I try to log in to the admin panel it get's a loop redirecting to the same page (login page) all the time without an error message (it only shows the error message when I type a wrong pw on purpose). It is the first time I use PS, I've already seen in the forum that it is a common problem (or at least it used to be) and I've tried what I've found here and in Google, but usually are related to servers, browsers... not in local machine, so I'm still blocked. I'd appreciate a lot if someone had a solution. Many thanks
-
There is no way to override the validation regex mask provided in the src/Core/Domain/Customer/ValueObject/FistName.php and src/Core/Domain/Customer/ValueObject/lastName.php files. Or for any ValueObject ? Some people advised to alter those files : but, it's not a good idea because changes could be overwrited in case of core update. Instead of that, the validation process should use the Validate::isCustomerName() function to check is the field is valid or not. I tryed to do it without altering the core by overriding the service "prestashop.core.form.identifiable_object.data_handler.customer_form_data_handler" like this https://devdocs.prestashop.com/1.7/modules/concepts/services/ Changing AddCustomerCommand class, EditCustomerCommand class, and finally FirstName and LastName classes It worked for the frontend but crashes the Backend with this error : Attempted to load class "CustomerFormDataHandler" from namespace "Pwk\PwkCustomer". Did you forget a "use" statement for "PrestaShop\PrestaShop\Core\Form\IdentifiableObject\DataHandler\CustomerFormDataHandler"? Is there a way to manage this ? Or an update of these classes should be possible Simply changing $matchesFirstNamePattern = preg_match('/^[¤|]*$/u', stripslashes($firstName)); by $matchesFirstNamePattern = \Validate::isCustomerName($firstName)); Best regards,
-
Hi guys, we use Prestashop 1.6.1.10 and we have a strange problem hapenning. When i activate APCu or Memcache(-d) Cache, we have very fast frontend, but we can't work in the backend. For example, i go into one product and change the Meta Title. After i click save in the input field stands the old Meta Title, but in the database is the new Meta Title. When i after that disable APCu i refresh the form and see the right Meta Title. Is there a way to somehow disable cache for backend? Or move backend to separate instance? What are the best practices there? Every time to turn off APCu when i change something in shop is impossible ... Will be very thankful for you help!
-
Hi, I am new to Prestashop and I would like to know if it is possible to send personalized emails including the bcc when the customer makes a purchase without having to touch any code, just from the admin panel. Thanks.
-
Salut, Je souhaite vous partager un petit travail perso que je viens de commander : passer l'administration en dark mode. C'est totalement gratuit et hésitez pas à faire des suggestions. Pour un meilleur suivi des modifications et améliorations, je viens de me lancer sur Github (que j'apprends seulement à utiliser) et je mettrais dessus les nouvelles versions. Lien : https://github.com/CoeurBis/Prestashop1.6-Admin-Theme-Dark Merci de me faire dire si vous l'utilisez ce serait sympa de savoir si mon travail intéresse et aide quelques personnes
- 6 replies
-
- theme
- dark theme
-
(and 1 more)
Tagged with:
-
Hi. I have installed a lot of CMS. But I have a problem installing prestahop 1.7- I have: a compatible hosting created a database uploaded the Prestahop 1.7 filesuploading a zip file and then unzipping with the hosting tool uploading directly with FTP client installed well prestahop But after finishing installing and I click i backend, it is telling me "Error 404". If I go to the front it is working, but i can not access to the back(admin). Uploading by ftp I have three errors uploading files: vendor/doctrine/orm/bin/doctrine.bat vendor/doctrine/orm/docs/en/make.bat vendor/symfony/symfony/src/Symfony/Component/Console/Resources/bin/hiddeninput.exe I have tried several times, and always "Error 404" Any idea what is happening? THanks!
- 22 replies
-
- admin
- prestashop 1.7
-
(and 2 more)
Tagged with:
-
Hello, does anyone know for in prestashop the dark mode??
-
how to filter back office product list page by supplier id,
- 38 replies
-
Buenas! Alguien me puede decir como tirar la bandera de descuento en el carrito de compras?? Gracias
- 3 replies
-
- descuentos
- admin
-
(and 1 more)
Tagged with:
-
Hi, I have moved the beta shop to live and front end is works fine and also back-end also works fine except module section it s throws error and i can see in debug still shows the beta root path. This exception throws when i click any module action like uninstall, reset, etc.. and in Alerts and updates tab PrestaShop version: 1.7.5.0 Compile Error: PrestaShop\PrestaShop\Adapter\Module\Module::instanciateLegacyModule(): Failed opening required '/home/beta/public_html/modules/tc_bannercmsblock/tc_bannercmsblock.php' (include_path='/home/live/public_html/vendor/pear/pear_exception:/home/live/public_html/vendor/pear/console_getopt:/home/live/public_html/vendor/pear/pear-core-minimal/src:/home/live/public_html/vendor/pear/archive_tar:.:/usr/share/php') Symfony\Component\Debug\Exception\FatalErrorException in src/Adapter/Module/Module.php (line 354) $path = $this->disk->get('path', ''); // Variable needed for empty() test if (empty($path)) { $this->disk->set('path', _PS_MODULE_DIR_ . DIRECTORY_SEPARATOR . $this->attributes->get('name')); } // End of temporary content require_once $this->disk->get('path') . DIRECTORY_SEPARATOR . $this->attributes->get('name') . '.php'; $this->instance = LegacyModule::getInstanceByName($this->attributes->get('name')); } /** * @param $attribute LOG DEBUG23:11:45 doctrine SELECT name FROM ps_module WHERE active = 1 INFO23:11:45 request Matched route "admin_module_notification". DEBUG23:11:45 security Read existing security token from the session. DEBUG23:11:45 security User was reloaded from a user provider. DEBUG23:11:45 doctrine SELECT name FROM ps_module WHERE active = 1 DEBUG23:11:45 doctrine SELECT p0_.id AS id_0, p0_.id_employee AS id_employee_1, p0_.id_module AS id_module_2, p0_.date_add AS date_add_3, p0_.date_upd AS date_upd_4 FROM ps_module_history p0_ WHERE p0_.id_employee = ? CRITICAL23:11:45 php Fatal Compile Error: PrestaShop\PrestaShop\Adapter\Module\Module::instanciateLegacyModule(): Failed opening required '/home/beta/public_html/modules/tc_bannercmsblock/tc_bannercmsblock.php' (include_path='/home/live/public_html/vendor/pear/pear_exception:/home/live/public_html/vendor/pear/console_getopt:/home/live/public_html/vendor/pear/pear-core-minimal/src:/home/live/public_html/vendor/pear/archive_tar:.:/usr/share/php') INFO23:11:45 php User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". CRITICAL23:11:45 request Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: PrestaShop\PrestaShop\Adapter\Module\Module::instanciateLegacyModule(): Failed opening required '/home/beta/public_html/modules/tc_bannercmsblock/tc_bannercmsblock.php' (include_path='/home/live/public_html/vendor/pear/pear_exception:/home/live/public_html/vendor/pear/console_getopt:/home/live/public_html/vendor/pear/pear-core-minimal/src:/home/live/public_html/vendor/pear/archive_tar:.:/usr/share/php')" at /home/live/public_html/src/Adapter/Module/Module.php line 354
-
- 5 replies
-
- discount
- prestashop
-
(and 1 more)
Tagged with:
-
Zła kolejność produktów w panelu administracyjnym
Ala posted a question in Wsparcie i pomoc użytkowników
cześć, od pewnego czasu produkty w sklepie (od strony admina) nie wyświetlają się jak wcześniej. Wyjściowo na początku listy pokazywały się produkty najnowsze, ustawione jako nieaktywne. Teraz zaś po wejściu/edycji w jakiś stary produkt automatycznie przeskakuje on na górę listy. Dlaczego się tak dzieje? Jak to zniwelować i powrócić do pierwotnego wyświetlania (najnowsze na początku)? Presta 1.7.6.2. -
Bonjour, Je suis en train de mettre en place une nouvelle boutique sous 1.7.8.5. J'ai installé un thème et j'ai pris contact avec le créateur avant de faire ce post, il m'indique qu'aucunes modifications n'a été faite dans le backoffice. Lorsque je créé/modifie une Règle panier (bon de réduction), je pense qu'il y a un crash quelque part. Le premier constat est que les 3 tabs ne sont pas pliés, je voie tout le contenu en 1 page. Ensuite, les champs d'autocomplétions ne fonctionnent pas (par exemple Condition > Limiter à un seul client) Dans la console, voilà ce que j'obtient dès l'ouverture de la page : La section en question dans form.js (/admin/themes/default/template/controllers/cart_rules/form.js) : $('#reductionProductFilter') .autocomplete( 'ajax-tab.php', { minChars: 2, max: 50, width: 500, selectFirst: false, scroll: false, dataType: 'json', formatItem(data, i, max, value, term) { return value; }, parse(data) { const mytab = new Array(); for (let i = 0; i < data.length; i++) mytab[mytab.length] = {data: data[i], value: (`${data[i].reference} ${data[i].name}`).trim()}; return mytab; }, extraParams: { controller: 'AdminCartRules', token: currentToken, reductionProductFilter: 1, }, }, ) .result((event, data, formatted) => { $('#reduction_product').val(data.id_product); $('#reductionProductFilter').val((`${data.reference} ${data.name}`).trim()); }); J'ai fais une courte vidéo pour vous donner une meilleure idée : https://www.loom.com/share/9322684b7dec402fa8371c1c9e2be921 Voilà ma configuration : Même résultat sous Chrome ou Firefox. Je n'ai pas réussi à trouver de post avec le même soucis que moi sous Prestashop, est-ce que quelqu'un a déjà eu ce genre de problème ? Une idée d'où ça peut venir ou comment le régler ? Merci.
- 1 reply
-
- backoffice
- jquery
-
(and 3 more)
Tagged with:
-
Bonjour, je viens de créer un module back-office. J'ai créé dans mon controller mon formulaire comme sur l'image. Dès que je clique sur le bouton enregistrer, l'erreur de la première image s'affiche. Besoin d'aide svp. Comment résoudre ce problème ?
-
Hi Im trying to get PrestaShop 1.7.2.4 installed on server. But when I'm trying to access backend (admin) i see error 500 In PHP error logs i've got this: [06-Dec-2017 16:48:44 Europe/Warsaw] PHP Fatal error: Declaration of AdminDashboardControllerCore::setMedia() must be compatible with AdminControllerCore::setMedia($isNewTheme = false) in C:\pr77777.myfreespace.us\www\controllers\admin\AdminDashboardController.php on line 539 [06-Dec-2017 16:48:44 Europe/Warsaw] PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalErrorException: Compile Error: Declaration of AdminDashboardControllerCore::setMedia() must be compatible with AdminControllerCore::setMedia($isNewTheme = false) in C:\pr77777.myfreespace.us\www\controllers\admin\AdminDashboardController.php:539 Stack trace: #0 {main} Next LogicException: Request stack is empty in C:\pr77777.myfreespace.us\www\app\bootstrap.php.cache:3224 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalErrorException)) #1 C:\pr77777.myfreespace.us\www\vendor\symfony\symfony\src\Symfony\Component\Debug\ErrorHandler.php(606): call_user_func(Array, Object(Symfony\Component\Debug\Exception\FatalErrorException)) #2 C:\pr77777.myfreespace.us\www\vendor\symfony\symfony\src\Symfony\Component\Debug\ErrorHandler.php(668): Symfony\Component\Debug\ErrorHandler->handleException(Object(Symfony\Component\Debug\Exception\FatalErrorException), Array) #3 [internal in C:\pr77777.myfreespace.us\www\app\bootstrap.php.cache on line 3224 Do someone know how to fix this?
-
In the newest browsers, the Backoffice "Stay logged in" checkbox and "Forgot password" link not clickable. A quick fix for the issue: Edit the file : your_admin_folder/themes/default/template/controllers/login/content.tpl and add the style="position: relative;" to the formgroup in line 77 <div class="form-group" style="position: relative;"> <div id="remind-me" class="checkbox pull-left"> ...
-
Hello, my orders page in backoffice (sell/orders/xxx/view?_token=xxxxx) prints escaped html content from Admin/Sell/Order/Order/Blocks/View/header.html.twig (screenshot attached) I checked my logs but no errors are thrown. can anyone please help me out? thanks I am running version Prestashop version 1.7.7.2 PHP version is 7.3.5
-
Hallo, Kan niet inloggen in Prestashop admin via wampserver localhost Ik heb de benodigde instellingen in parameters.php en in de database PS_SHOP_DOMAIN, PS_SHOP_DOMAIN_SSL en ps_configuration gedaan. Heb htaccess uit de rootfolder verwijderd. Nu krijg ik wel keurig het Prestashop admin inlogscherm maar als ik mijn inloggegevens invoer dan kom ik niet in het beheer van mijn Prestashop maar komt telkens terug in een leeg Prestashop admin inlogscherm. Weet jij wat ik verkeerd doe? Bedankt alvast!
- 5 replies
-
- inlog
- wampserver
-
(and 1 more)
Tagged with: