Jump to content

Search the Community

Showing results for tags 'Tools'.

  • 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


  1. Hi All, Greetings of the day. The prestashop addon helps to implement search engine optimization of your online store by adding automatic hreflang, and canonical tags. Helps search engine bots to know your store supports and works in multiple languages for different countries. Fix issues in various webmaster tools. Testing using online tools. The hreflang tag (also referred to as rel=” alternate” hreflang=”x”) tells search engines which country a specific page is intended for, which language it is written in, and provides alternatives for the same page intended for other countries and languages. The module works on multi-store on products, categories,cms and all other pages of the store. The hreflang tag (also referred to as rel=” alternate” hreflang=”x”) tells search engines which country a specific page is intended for, which language it is written in and provides alternatives for the same page intended for other countries and languages. It can also provide information on the default country and language if the search engine is unable to decide which version to present. According to Google, it uses the rel=” alternate” hreflang=”x” attributes to serve the correct language or regional URL in search results. Google and other major search engines will allow you to specify the languages and countries that pages on your international website is catered to. It is one of the many ways that Google determines the content that is presented to users in various different territories. - Stand out among competitors using better ranking and visibility on the search engines. - An increase in traffic results in conversions and average order values. - Cost-efficient and reduce expenses of hiring an expert to do the task. - Increase store traffic results in an increase in sales. - Expand market reach, helps in branding and awareness. Features - Easy to set up and works for countries all over the world. - Helps in SEO (Search Engine Optimization) and search engine ranking. - Improve online visibility and get targeted traffic. - SEO friendly. - Support all browsers: Firefox, Chrome, IE, Safari, etc. - Lightweight. (Smaller file size which loads faster.) - Increase sales, conversion rates, and product promotions. - Maintain existing customers & Attract new customers. - Lower marketing expenses, exposure to potential customers, reach targeted audiences. - Compatible with PrestaShop 1.5.x,1.6.x,1.7.x and 8.x - Multiple browsers compatibility(IE, Firefox, Opera, Safari, Chrome, and Edge). - Mobile, Tablet and all device compatible. - Multi-language and Multi Store compatible. - Module works without doing any change in existing files on PrestaShop store versions. - 24*7 Support - Good Documentation Installation : Step 1: 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 top menu in back-office more area. Step 2: Install the module using the install button. Step 3: Visit module management page from the back-office "More" area (section) in the left menu in the back-office. Step 4: The module installation process is very easy, how module configuration works can be seen in the demo instance. Step 5: Please visit our demo instance for module configuration and usage demo. Step 6: Please watch our YouTube video on how to configure and use the module. - Module works without making any change in the existing PrestaShop file so that existing customization and theme change do not affect. - We provide free technical and feature support in installation, configuration, as well as access to updates available for this product. - Free support on installation, configuration, and customization as per store requirements, for example, new hook addition on your store The enhancements for hreflang & canonical tags on the home page,products,cms,category,manufacturer, supplier,price-drop,new-products,best-sales,login,contact,sitemap,quick-order,blog,reviews,store details, stores and all other pages of the multilingual(single and multi-shop domains support).X-default option.The canonical tags URLs added automatically.Language code,ISO code drop-down options added. Integration with all blogs modules with Unlimited blogs.Testing using online tools.Data visualization using column and pie charts.24*7 Support. Support the latest versions. The hreflang and canonical tags can be tested using the below online tools. [1]. Google chrome extension https://chrome.google.com/webstore/detail/hreflang-tag-checker/hjgdcecfiohgajnhilmjhebdganpaomk?utm_source=chrome-ntp-icon [2]. https://dejanmarketing.com/flang/ I have some useful information to share. We need to have a language switch option on each page for easy navigation on multi-lingual pages. If our website configured properly for a multi-language website, it works fine. It helps visitors to switch language easily. When we switch language then our website should not redirect to the home page of other languages but it should redirect to the same equivalent URL on another language. Also, if our pages redirecting to other pages then hreflang tags will not work because the page is redirecting. Hreflang does not work if it's a 301, it needs to be a 200. Please visit URL => http://www.thesempost.com/google-dont-link-hreflang-redirecting-urls/ For example, if we are on the product page, we switch language then it should redirect the product URL to another language. PrestaShop test multi-language website configuration using language switch drop-down option. Other : Please leave your valuable feedback and rating after purchasing and using the module. This will help to increase self-confidence, improve service and enhancements in the module as per requirements to make it better for different online stores. Recommendation : For a list of modules on PrestaShop Addons Marketplace. https://addons.prestashop.com/en/2_community-developer?contributor=301729 Please feel free to contact me for any support in installation, configuration, and customization in the module as per your store requirements. BUY USEFUL PRESTASHOP ADDONS FOR ONLINE STORES https://www.presta-addons-modules.com/en/ Front-office Demo URL => https://www.hrms-systems.com/presta-addons/en/ Back-office Demo URL => https://www.hrms-systems.com/presta-addons/admin619j6kpbb/index.php Below is the YouTube demo link.
  2. Hello, I'm getting some error when I try to access my PS website: Fatal error: Class 'Tools' not found in /home/cipriann/shopintimo.es/classes/shop/Shop.php on line 302 Also in /admin shows me the same error. I opened shop.php at line 302 and I got this: if (!($id_shop = Tools::getValue('id_shop')) || defined('_PS_ADMIN_DIR_')) What to do? Website name: shopintimo.es
  3. Shop Parameters -> Traffic & SEO -> Set up URLs -> Save Blank Page Error 500 Advanced Parameters -> Performance -> Clear Cache Blank Page Error 500 The error with Plesk 17.5.3 and 17.8.11 occurs with FPM served by Apache, using FastCGI, prestashop 1.7.5.2 and 1.7.6.0 does not generate the error. How to solve and use FPM? Error Apache AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'Tools' not found in /var/www/vhosts/ideepercasa.shop/httpdocs/classes/db/Db.php:794\nStack trace:\n#0 /var/www/vhosts/ideepercasa.shop/httpdocs/config/alias.php(47): DbCore->escape('configuration', false)\n#1 /var/www/vhosts/ideepercasa.shop/httpdocs/config/alias.php(52): pSQL('configuration')\n#2 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/Configuration.php(155): bqSQL('configuration')\n#3 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/Configuration.php(209): ConfigurationCore::loadConfiguration()\n#4 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/PrestaShopAutoload.php(171): ConfigurationCore::get('PS_DISABLE_OVER...')\n#5 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/PrestaShopAutoload.php(130): PrestaShopAutoload->generateIndex()\n#6 [internal function]: PrestaShopAutoload->load('Tools')\n#7 /var/www/vhosts/ideepercasa.shop/httpdocs/config/config.inc.php(85): spl_autoload_call('Tools')\n#8 /var/www/vhosts/ideepercasa.shop/httpdocs/admIdeePerC...\n', referer: http://ideepercasa.shop/admIdeePerC...n=nKU1MdK7nzGCr62FQutwe15gL23OFGIu28qXZO8FPLE Error PrestaShop debug Fatal error: Uncaught Error: Class 'Tools' not found in /var/www/vhosts/ideepercasa.shop/httpdocs/classes/db/Db.php:794 Stack trace: #0 /var/www/vhosts/ideepercasa.shop/httpdocs/config/alias.php(47): DbCore->escape('configuration', false) #1 /var/www/vhosts/ideepercasa.shop/httpdocs/config/alias.php(52): pSQL('configuration') #2 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/Configuration.php(155): bqSQL('configuration') #3 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/Configuration.php(209): ConfigurationCore::loadConfiguration() #4 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/PrestaShopAutoload.php(171): ConfigurationCore::get('PS_DISABLE_OVER...') #5 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/PrestaShopAutoload.php(130): PrestaShopAutoload->generateIndex() #6 [internal function]: PrestaShopAutoload->load('Tools') #7 /var/www/vhosts/ideepercasa.shop/httpdocs/config/config.inc.php(85): spl_autoload_call('Tools') #8 /var/www/vhosts/ideepercasa.shop/httpdocs/admIdeePerCasa/index.php(40): require('/var/ww in /var/www/vhosts/ideepercasa.shop/httpdocs/classes/db/Db.php on line 794 https://github.com/PrestaShop/PrestaShop/issues/12667
  4. Hi, I want to make changes to this file /tools/minify_html/minify_html.class.php Is there a way I can override this file so the changes are permanent even with upgrading prestashop? I'm using version 1.6.1.10. Thanks
  5. Greetings! I am diving into PrestaShop code and stumbled across this line in the getValue(..) function (line 462 of Tools.php, PS version 1.6): if (is_string($ret)) { return stripslashes(urldecode(preg_replace('/((\%5C0+)|(\%00+))/i', '', urlencode($ret)))); } Is there some mistake in the first URL encoding - there should be 2 digits, right? Or are we looking for %5C (a backslash) and a number of 0's?
  6. Ciao a tutti premetto che scrivo questo post dopo aver passato svariate ore alla ricerca di quanto sto per chiedere senza grossi risulati e sono certo che questo sia il posto giusto . Volevo sapere se c'è cortesemente qualcuno disponibile a indicarmi oltre a questo forum , le migliori risorse italiane (possibilmente gratuite) dove poter studiare quanto necessario per lo sviluppo di Prestashop. Quindi risorse tipo video , documentazioni con esempi chiari , dove venga spiegata la struttura del sistema e quindi come dover operare per modificare/integrare il sistema soprattutto a livello di moduli e componenti standard. Ho molto interesse nell'imparare questo sistema a cui mi sono affacciato da poco e che quindi ho necessità di imparare così da poter poi contribuire al forum . Ringrazio in anticipo chiunque abbia voglia di darmi questa mano iniziale.
  7. Hi guys, I'm trying display an error message if the customer is not logged in. if ($this->context->customer->isLogged()) { .......... } else { $this->errors[] = Tools::displayError('You must be logged in to request a custom order'); } But the error message isn't being displayed... Anyone have an idea what I'm missing? The file is in: /modules/blockquote/controllers/front/display.php Thanks in advance!! Simon
  8. Hallo Forum Leden, Bij deze een topic over handige tools / programma's, welke erg handig zijn om te gebruiken bij het bouwen van een Prestashop Webwinkel 1) Agent ransack - Woorden in files zoeken | Windows Dit is een zeer handige en krachtige tool , welke helpt bij het zoeken naar woorden het tooltje zoekt dus niet alleen naar bestandsnamen maar ook in files waarvan de extensie niets uitmaakt of het php , pdf , enz enz is , het tooltje toont dan alle bestanden waar betreffend woord in voorkomt downloads voor windows : 32 bits : http://download.myth...om/agentran.exe 64 bits :http://download.myth...agentran_64.exe 2) Notepad+++ Sourcecode Editor | Windows Handig om files te editen ( geeft regelnummers aan) http://notepad-plus-plus.org/ 3) Examdiff - Inhoud van 2 mappen vergelijken | Windows Idem als winmerge, besproken in #2 door Frens, geeft de verschillen alleen op een andere wijze aan. http://www.prestosof...dp_examdiff.asp 4) Colorpic - Colorpicker | Windows Zeer handige colorpicker. http://www.iconico.com/colorpic/ 5) Free Css Toolbox - CSS tools | Windows Zet je css weer netjes en weergaveformaat in div. opties, code opschonen, validator, compressor e.d. http://www.blumentals.net/csstool/ 6) WampServer - Developmentomgeving | Windows Wampserver is een Windows web development-omgeving. Het maakt het mogelijk om lokaal webapplicaties te maken met Apache 2, PHP en MySQL. http://www.wampserver.com/en/ 7) Xampp - Developmentomgeving | Windows, OS X, Linux Hetzelfde principe als 6, maar dit programma is multiplatform. http://www.apachefri...g/en/xampp.html 8) Browser Developer Tools | Windows, OS X, Linux Zie post #3 9) Paint.NET | Windows Microsoft Paint-vervanger. http://www.getpaint.net/ 10) GIMP | Windows, OS X, Linux Bijna een Adobe® Photoshop™-vervanger. https://www.gimp.org/ 11) PHPStorm | Windows, OS X, Linux Een betere IDE (Integrated Development Environment) voor PrestaShop bestaat er niet. PHPStorm begrijpt wat je typt in PHP, CSS, Smarty, etc. en vult je prima aan. Verder kennen tools van JetBrains naast deze opties nog ontelbaar veel meer functies. https://www.jetbrains.com/phpstorm/ 12) GitHub en Git | Windows, OS X, Linux PrestaShop zelf maakt er ook onwijs veel gebruik van. Een versiebeheersysteem is onmisbaar om eerst bijvoorbeeld wijzigingen te testen in je eigen test-omgeving, voordat je ze uitrolt in de productieomgeving. Omdat je met versies werkt, kun je ook gemakkelijk terugrollen bij problemen. Zeker in combinatie met PHPStorm, zijn dit erg nuttige tools voor PrestaShop- en moduleontwikkeling. https://github.com/ en https://git-scm.com/ Als alternatief voor GitHub zijn er nog GitLab en Bitbucket. Beide bieden gratis private repositories. Zoeken op het prestashop forum: Daar de standaard zoek optie bij gewoon zoeken van dit forum een beetje te wensen overlaat hier een paar zoektips : Optie 1 - je plaatst het zoekwoord tussen aanhalingstekens dus je typt in het zoekveld op dit forum "Je-zoekwoord" Optie 2 - rechtstreeks op google type in: site:www.prestashop.com prestashop.com/forums/ je-zoekwoord TIP type in het google zoekveld site:www.prestashop.com prestashop.com/forums/ zet deze dan in je favorieten of maak een snelkoppeling op het bureaublad je hoeft dan alleen nog maar erachter je zoekwoord in te vullen Optie 3 : http://www.google.com/sitesearch/ hier kan je als url www.prestashop.com/forums invullen en in het ander vakje je zoekwoord Optie 4: uitgebreid zoeken via google zie bij zoekresutlaten onderaan bij google vual als url www.prestashop.com/forums/ en vul de zoekwoord(en )in Succes zal deze lijst nog aanvullen EDIT: te laat, ik heb het al aangevuld. Groetjes mdekker;)
  9. Hi everyone, I sure am impressed with the quality of sites that PrestaShop can create and wow, there sure is a lot to it with so many features and tools. Most I do not even understand. I very much would like to create a descent website and assume PrestaShop would be a perfect tool to do this, but with no experience with it I am curious in anyone's opinion how long or how hard would it be to grasp a reasonable understanding on how to create a half descent site with PrestaShop? I have lots of experience with Web Expressions, notepad html and Weebly, so not totally unfamiliar with HTML or CSS, etc, but there is things in PrestaShop I have never even heard of. I currently am using WordPress but there is not a lot that can be accomplished using it. I appreciate any input......I am basically a fast learner and have a lot of time on my hands. Thanks very much. Dave
  10. Hi, I'm trying to update the back office when adding new product. I wrote some codes to check for some conditions when a new product is being added, so if those conditions arent met, a message should be displayed on the screen on clicking the [save and stay] or [save] button. To accomplish this, I edited the function below in `classes/Product.php`. Hope I'm right and not missing anything else, but it works though. public function add($autodate = true, $null_values = false) However, the problem I'm having is displaying the error or notification message after the added code is met. I used the below code. die(Tools::displayError('Error message here')); It shows the error message but on a completely new blank screen. How can I make the message display on the same screen and properly with the current way of displaying messages in PS? Please help!!! Thanks in advance
  11. Hola amigos, espero alguien me pueda ayudar ya que estuve buscando por todos lados y no encontre nada. De un día para otro sin hacer modificación alguna mi front office dejó de funcionar. Simplemente me mostraba una página en blanco. Al activar los errores me aparece esto: Fatal error: in /home/xxx/public_html/tienda/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 58 Ya vacié los caches, vacié los de smarty manualmente, cheque el límite de memoria y no encuentro una solución. Mi back office funciona perfectamente normal. Mi proveedor de hosting me comenta que puede ser un plugin instalado. Se refiere a módulos? Probé desactivando la mayoría sin solucionarlo. Utilizo prestashop 1.6.1.1 Mi web es tienda.chemicalguysmexico.com Cuales son las posibles causas para que de un día a otro deje de funcionar? Algún tipo de hack o inyección en sql?
  12. Voici mon souci : je cherche à modifier le processus de création de compte pour que l'utilisateur soit redirigé vers une page CMS que j'ai créé, qui s'appelle "Bienvenue" et qui explique au client que son compte est en attente de validation. En suivant différents tutos j'ai cru comprendre qu'il fallait modifier le fichier authentification.tpl de manière à ce que la redirection ne se fasse plus vers "Mon compte" via la variable $back. J'ai modifié l'appel de page fait par Tools::redirect() à différents endroits du fichier (aux alentours de la ligne 550). J'ai réussi à rediriger le visiteur vers une url externe à la fin du process de création de compte avec Tools::redirect('http://www.google.fr'); Mais je n'arrive pas à le faire vers une url interne. J'ai essayé avec Tools::redirect('cms.php?id_cms=6'); et Tools::redirect($link->getCMSLink('6', 'bienvenue')); mais j'obtiens des pages blanches et des erreurs 500. Est ce que quelqu'un connaît une méthode pour faire des redirections de ce type avec PS 1.5 ? Merci d'avance Fred
  13. Hello, I'm using PS 1.4.4.1 and I'm trying to override the Tools class but my changes in my override class don't seem to be getting picked up. I've overridden many classes before but for some reason I cannot override the Tools class. Is there something I'm doing wrong or is the Tools class not meant to be overridden? Here is my sample code of my override/Tools.php class Tools extends ToolsCore { public static function getHomeMetaTags($id_lang, $page_name) { //do stuff } }
  14. Hola, cuando quiero ver los datos del cliente, haciendo clic en "ver" me sale el siguiente mensaje de error: [PrestaShopException] Invalid date at line 663 in file classes/Tools.php 657. 658. if ($date == '0000-00-00 00:00:00' || $date == '0000-00-00') 659. return ''; 660. 661. if (!Validate::isDate($date) || !Validate::isBool($full)) 662. throw new PrestaShopException('Invalid date'); 663. 664. $context = Context::getContext(); 665. $date_format = ($full ? $context->language->date_format_full : $context->language->date_format_lite); 666. return date($date_format, $time); 667. } ToolsCore::displayDate - [line 637 - classes/Tools.php] - [3 Arguments] ToolsCore::dateFormat - [line - ] - [2 Arguments] call_user_func_array - [line 241 - config/smarty.config.inc.php] - [2 Arguments] SmartyLazyRegister->__call - [line 461 - cache/smarty/compile/be/6e/45/be6e4509ef64ed98cd83b7350002ad9e9af3606b.file.view.tpl.php] - [2 Arguments] SmartyLazyRegister->dateFormat - [line 461 - cache/smarty/compile/be/6e/45/be6e4509ef64ed98cd83b7350002ad9e9af3606b.file.view.tpl.php] - [2 Arguments] content_53b46cf4921bc0_81067081 - [line 180 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 114 - classes/helper/Helper.php] HelperCore->generate - [line 59 - classes/helper/HelperView.php] HelperViewCore->generateView - [line 2051 - classes/controller/AdminController.php] AdminControllerCore->renderView - [line 820 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->renderView - [line 1758 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 190 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Por favor ayúdenme, por que me aparece este mensaje de error? lo raro es que solo pasa con una cuenta de un cliente, el que acaba de comprar un producto hace un rato. puedo abrir y ver los datos de cualquier cliente menos de este cliente. Estoy usando la version de PrestaShop 1.6.0.7 Agradezco mucho vuestro apoyo. Gracias.
  15. Guten Morgen Forum, das Google Webmaster Tool gibt mir immer mehr Seiten aus die einen Soft 404 Fehler haben. Kurze Erklärung unseres Menüs: Man wählt die Oberkategorie, wählt eine Unterkategorie, wählt ein Produkt. Ganz zu Anfang hatten wir nur Kategorien in denen die Produkte lagen. Die Seiten die mir Google aus gibt sind nach dem alten Schema. Und es gibt auch die Artikel teilweise garnicht mehr. Bringt es irgendeinen Cache zu löschen um diese Fehler zu bereinigen oder gibt es da einen richtigen Weg? Freue mich über Antworten.
  16. Hello, I happen to have a problem with tools.php This error is filling up the error log and taking vast amounts of storage space: PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 24 in /home/.../public_html/prestashop/prestashop/classes/Tools.php on line 1150 I have this code on line 1150: $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str); Any idea about what could be causing it ? Thanks in advance,
  17. Can anyone help me to find the 'tools' tab. I am trying to do a few things in my back office and it keeps telling me to upload files through my 'tools' tab but I don't have such a module at all.... very frustrated.
  18. hello I have upload my module to prestashop addons but it give me response with " Hello, Use of $_GETis forbidden, please use Tools::getValue(); ", now when I am print $_GET it will return all the parametes in url, so how can I get same result with the help of Tools calss..?
  19. Поставил prestashop 1.6.0.8 на Денвер. Удивило, что движок еле ворочается. При попытке зайти в админке в раздел "Модули" выдает [PrestaShop] Fatal error in module Tools: Maximum execution time of 30 seconds exceeded Что делать? (Кроме увеличения времени выполнения скрипта?)
  20. Im wondering where can i find all the Tools::getValue list and how is this working, is there other function that is useful other than this? for example i want to get the product reference and generate it in my controller.php
  21. Good evening. I'm trying to make a kind of pagination for Stores. There are more than 200 stores to view (when I search for postcode and range 100km for example). That page viewing 20 stores. It's specified in the LIMIT option of the query in StoresController.php: $stores = Db::getInstance()->executeS(' SELECT s.*, cl.name country, st.iso_code state, ('.(int)($multiplicator).' * acos( cos(radians('.(float)(Tools::getValue('latitude')).')) * cos(radians(latitude)) * cos(radians(longitude) - radians('.(float)(Tools::getValue('longitude')).')) + sin(radians('.(float)(Tools::getValue('latitude')).')) * sin(radians(latitude)) ) ) distance, cl.id_country id_country FROM '._DB_PREFIX_.'store s '.Shop::addSqlAssociation('store', 's').' LEFT JOIN '._DB_PREFIX_.'country_lang cl ON (cl.id_country = s.id_country) LEFT JOIN '._DB_PREFIX_.'state st ON (st.id_state = s.id_state) WHERE s.active = 1 AND cl.id_lang = '.(int)$this->context->language->id.' HAVING distance < '.(int)($distance).' ORDER BY distance ASC LIMIT 0,20); I can change it to 200 but it's not a good idea to view 200 stores in one page. So i'm trying to make this pagination. To accomplish this function i have to pass html variables from stores.tpl to StoresController. I found that the method is this: $distance = (int)(Tools::getValue('radius', 100)); With this option radius is passed from stores.tpl where we have this select: <select name="radius" id="radiusSelect" class="form-control"> <option value="15">15</option> <option value="25">25</option> <option value="50">50</option> <option value="100">100</option> </select> I tried to do the passage of variables in this way, but nothing to do. Nothing arrives to StoresController.php. What i'm doing wrong? Is there an easiest way to do that pagination? Thanks for replies. Yari.
  22. Good day all. Sometimes I've found some workarounds to satisfy some kind of needs that explain how to extend some core functionality by editing files like tools.php or frontendController.php. The last one I've found that saved my life, was a function to retrieve the name of a cms page starting from its id and the language id: public static function getCMSTitle($id_cms,$id_lang){ $cms = new CMS($id_cms, $id_lang); return $cms->meta_title; } <li><a href="{$link->getCMSLink(1)}">{Tools::getCMSTitle(1,$cookie->id_lang)}</a></li> stackoverflow link my question is: Is it possible to think at these modifications in terms of modules? I mean, is possible to write a module that gives a functionality similar to this, so that expose a new method in all the pages and that can be called in tpl files? and most important, it NOT alter the core code, so the shop remain upgradable, and the module could be upgraded as needed.
  23. Buenas a todos, No se qué narices le pasa a mi página pero genera una cantidad de errores que no se por donde cogerlos, la mayoría es en TOOLS.php Si me pudieseis echar una mano os lo agradecería. He estado buscando, pero no he encontrado nada... supongo que serán errores muy específicos. Utilizo prestashop 1.5.6 Gracias por todo Warning: File D:\inetpub\vhosts\collectionglamour.com\httpdocs\order-confirmation.php is deprecated in D:\inetpub\vhosts\collectionglamour.com\httpdocs\classes\Tools.php on line 2147 Warning: Cannot modify header information - headers already sent by (output started at D:\inetpub\vhosts\collectionglamour.com\httpdocs\classes\Tools.php:2147) in D:\inetpub\vhosts\collectionglamour.com\httpdocs\classes\Tools.php on line 105 Warning: Cannot modify header information - headers already sent by (output started at D:\inetpub\vhosts\collectionglamour.com\httpdocs\classes\Tools.php:2147) in D:\inetpub\vhosts\collectionglamour.com\httpdocs\classes\Tools.php on line 108
  24. Bonsoir à tous, Si on ajoute une adresse dans le serveur de média (pour les images par exemple) et qu'on utilise une connexion SSL pour l'identification des clients et le processus de commande, cette dernière ne s'affiche pas correctement. Comme si le thème et le fichier CSS n'était pas repris.Le problème était déjà présent dans la version précédente de Prestashop Cela fonctionne pour la version 1.5 et 1.6. Pas testé en dessous. Voici la solution. Créer un fichier Tools.php et ajouter ceci à l'intérieur : <?php class Tools extends ToolsCore { public static function getMediaServer($filename) { if (self::$_cache_nb_media_servers === null) { if (_MEDIA_SERVER_1_ == '') self::$_cache_nb_media_servers = 0; elseif (_MEDIA_SERVER_2_ == '') self::$_cache_nb_media_servers = 1; elseif (_MEDIA_SERVER_3_ == '') self::$_cache_nb_media_servers = 2; else self::$_cache_nb_media_servers = 3; } if (self::$_cache_nb_media_servers && Tools::usingSecureMode() == false && ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1))) return constant('_MEDIA_SERVER_'.$id_media_server.'_'); return Tools::usingSecureMode() ? Tools::getShopDomainSSL() : Tools::getShopDomain(); } } Ajouter ensuite le fichier Tools.php dans /override/classes/ Il ne vous reste plus qu'à vider le cache (paramètres avancés->performances->vider le cache). Astuce repris sur le blog de Dh42.
×
×
  • Create New...