Jump to content

Search the Community

Showing results for tags 'global'.

  • 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


Found 23 results

  1. For globally shipping products the customs need a HS (Harmonised System) code and a Country of Origin. I still have no idea why this is not a default feature of Prestashop, so i created a module for this. After installing the module you can find a HS code and a country of origin field in the back office for each product. (as show in the image above) Afterwards you can easily add the HS code and country of origin on your delivery slips and/or invoices. Installation You can install this module on any Prestashop 1.7 and Prestashop 8 shop. After installing the module you would have to manually edit the invoice/delivery slip template. (because Prestashop does not allow this with the module installation) In the module there is a folder called 'pdf' if you place this folder in your /themes/YOUR-THEME/ folder you are done. Github link Download: hscodes.zip Updates: * 01-08-2023 add country of origin to the module for reach product
  2. Buenas, queria saber si es posible en prestashop tener un filtro en la barra de navegación, por ejemplo con un filtro por talla, y que se aplique a toda mi navegación por la web, es decir a la hora de mostrarme productos siempre se tenga en cuenta ese filtro "global". Si alguien sabe como hacerlo o si existe algún modulo que cumpla esta función se lo agradeceria. Un saludo, gracias de antemano!
  3. Hello All, Has anyone seen or come up with an idea for Global Attributes? What i'm needed to do is apply a group of the same attributes to many different items. I would love to be able to apply the attributes to the category so that each item under the category will have those options. I'm looking to launch a store for the [spam-filter] who loves to embroider. So each item has about 70 different stitch color options along with different patters, fonts, accessories, etc. Can anyone point me in the right direction? Thanks, -B
  4. Bonjour, Je souhaite renommer mon fichier global.css à chacune de mes modifications. global2.css, global2.1.css etc... Cela permet au navigateur d'un ancien visiteur de recharger la page et d'afficher les modifications (Un internaute n'est pas censé savoir qu'il faut rafraîchir la page avec F5). Je ne veux pas passer par le htaccess sinon on perd complètement l’intérêt du cache navigateur! J'aimerais savoir quels sont les fichiers à modifier qui appellent le global.css via cette ligne : Merci d'avance!
  5. I created a module with a hook on hookActionCartSave, which work very well. Then I created a simple php file in same folder has my module that listent to a POST and I try to save a parameter value in global variable that my hook could get back once the use add something to the cart (i.e. tirgger hookActionCartSave). 1. My new file (setParam.php) has the following very simple code, it takes the POST parameter 'param1' and put his value in superglobal $_ENV , var_dump($_ENV["param1"]); show me that it sets it correctly. <?php define('_EXTERNAL_SCRIPT_', 'true'); include(dirname(__FILE__).'../../config/config.inc.php'); include(dirname(__FILE__).'../../init.php'); include(dirname(__FILE__).'../../classes/Cookie.php'); $_ENV["param1"] = $_POST['param1']; var_dump($_ENV["param1"]); ?> 2. But then I my module $_ENV is always empty, it seems that $_ENV is not shared or ...?? ... function hookActionCartSave($params) { var_dump($_ENV["param1"]); } ... I tried with $_COOKIE, $GLOBALS, $_SESSION and I not able to add value to global context from my setParam.php file. Any idea how I can add value to the current session context from a standalone file that receive a post from the UI (jquery ajax post)? Thanks - Alain
  6. Hello, I've got a prestashop setup that has a small 'customization form' that currently saves the information to the products default customization text input. I did this to save time on having to write a complete custom module to handle form creation and everything else. Currently all the inputs are serialized (json) and entered as a long string into the text input like this: Client Customization: %5B%5B%7B%22name%22%3A%22trophy%5B1%5D%5Bline1%5D%22%2C%22engraving%22%3A%22Test%20Trophy%22%7D%2C%7B%22name%22%3A%22trophy%5B1%5D%5Bline2%5D%22%2C%22engraving%22%3A%22test%20trophy%22%7D%2C%7B%22name%22%3A%22trophy%5B1%5D%5Bline3%5D%22%2C%22engraving%22%3A%221111111%22%7D%5D%5D On the front end - when pulling it out I can use PHP to decode & display it appropriately. But is there a way where I can change that globally somewhere so I don't have to try and find every place where it might display and add that PHP code? I'm running into the issue that I can't seem to find where to add the PHP code to 'decode' that string for the emails that are being sent out - so the long ugly string is being seen instead of the nice few lines of customization the user entered. Any thoughts on how to handle that? Is there a spot where I can globally assign the decoded string to the products customization?
  7. Hi everyone! Im new here and i wanted to ask whether i could conditionally display other attributes when checked or selected an attribute and hide them when unselected or unchecked. Ive searched for this soultion all over the forum but could not find a thing.I shifted my site from wordpress and over there i could easily use conditional logic for my products but here i find that prestashop is somewhat limited apart from modules for basic things. I would be really grateful if anyone could help.PLEASE HELP as i have to get my site up and running ASAP. THANK YOU in advance.
  8. Hi, i need to change some colors in global css. Where can i find global css? How do i make changes in global css? I need to change colors in checkout. Can you help me please?
  9. I have the below PHP file in my module folder that is call with an ajax post (jquery from UI). And I am getting the following error: Class 'Context' not found in ... when I trigger the POST I am running PS 1.6, how can I access the context from this file?? <?php define('_EXTERNAL_SCRIPT_', 'true'); include(dirname(__FILE__).'../../config/config.inc.php'); include(dirname(__FILE__).'../../init.php'); include(dirname(__FILE__).'../../classes/Cookie.php'); Context::getContext()->cookie->__set('myData', $_POST['data1']); ?>
  10. Hi guys, So, I'm a (very) amateur, self taught web developer, trying to learn how to use Smarty variables. I've read a lot on online, but I'm having trouble getting an 'Request a Quote' module to use the global Prestashop variable '$come_from' (which requests the previous page's url). Please help me? UPDATE: I just got it to work, but still have a problem. $come_from is showing the current address url isntead of the address of the product page that directed it there. You can see by going to my site (http://www.utopiascreenprinting.com.au/) and using the 'Request a Quote' button on any of our products. Why's it doing this and can I fix it? Advice? Cheers guys!
  11. Basically i want to get the today's total orders in the ParentOrderController.php, then base on this count the delivery method will show differently in the order-opc. e.g. the first 50 orders will be shipping free What's the step i should follow to implement this? Sorry, I am new for this Prestashop. thanks
  12. Salve ragazzi, aiuto ho urgente bisogno di voi! Premetto che: non sono praticissima in questa materia, uso un tema diverso da quello di defaul ho modificato alcuni file .tpl caricandoli con FTP e forzando la compilazione tutto funzione e qui l'inghippo: modifico il file global.css provo a caricarlo (anche forzando la compilazione smarty) ma non accade assolutamente nulla! perchè? aiuto...... grazie infinite!!
  13. Hi, I would like to add an external variable in employee context array, how to add additional variable in employee array? Let's say I wanted to add something like this: $context->employee['accessVerified'] = true; so later I could access that variable somewhere in admin like: if($context->employee->accessVerified) ... Please help. Thanks,
  14. Bonjour, En vue de proposer mon module en version 1.4, 1.5 et 1.6, j'ai fait un peu de refactor dans mon code pour ne gérer qu'une seule version de mon fichier. Depuis celà, mon module est refusé par le "validator" pour cause de "Use of globals is forbidden". J'ai tout d'abord une variable $version_ps que j'instancie comme suit : $version_ps = (_PS_VERSION_ >= '1.5' ? '1.5' : '1.4'); Je fais ensuite, en fonction de cette variable, les déclarations et affectations suivantes : if ($version_ps == '1.4') global $currentIndex; if (class_exists('Context')) $this->context = Context::getContext(); else { if ($version_ps == '1.4') { global $cookie, $currentIndex; $this->context = new StdClass(); $this->context->smarty = $smarty; $this->context->cookie = $cookie; } } Le "validator" automatique (https://validator.prestashop.com/validation) indique l'erreur
  15. Hi, I am doing a small module in prestashop. In that module I have used global $cookie, $smarty; for both smarty and cookie as global. It is working fine with prestashop 1.5.6.1. Now when I tried to validate the module in http://validator.prestashop.com/module then after all the process of validation it showed me an error like Use of globals is forbidden Now If I am using global value smarty as $this->context->cookie = $cookie and for smarty I am using $this->smarty then it is showing as undefined variable for both smarty and cookie. So to make that clear how this has been done in other modules I have gone through prestashop own module blocklayered and I have seen in that module both global $cookie; and global $smarty; has been used. I have checked this with prestashop 1.5.6.1. and new 1.6.0.3 version. So can someone kindly tell me what's the wrong here. The same code is woring in another module and that code is in my custom module showing validation error? Why? Any help and suggestions will be really appreciable. Thanks
  16. Hallo zusammen, ich habe mal eine Frage zu den "Verfügbarkeits-Einstellungen" eines Produktes. Möglichkeiten zur Bestellung in meinem Shop: Fast alle Produkte sind mit Menge 0 erfasst, da die Lieferzeit sehr lange, aber eine Bestellung möglich ist. Bei ein paar Produkten ist die Lieferzeit zügig und schnell. Gerne würde mein Kunde daher global die Verfügbarkeit wenn "auf Lager" mit "Lieferbar in 2 Tagen" angeben. Wenn aber Menge 0 angegeben ist (nicht auf Lager) mit dem Text "Lieferbar in 4 Wochen" angeben. Die Ausgabe ist auf der Produktdetailseite. Dies funktioniert auch wenn die Felder ausgefüllt sind. Da nun fast alle Produkte nicht an Lager sind möchte ich die Felder unter Katalog > Produkte > Mengen > Verfügbarkeits-Einstellungen vorausfüllen. Ist das möglich? Viele Grüsse und danke für einen Tipp Aussteiger
  17. Hello, I need to figure out how to get variable GroupId of customer in some module .php file. Has anybody some ideas or solutions? PrestaShop™ 1.4.10.0
  18. (default tema da) ...prestashop\themes\default\css\.... klasörünün içindeki global.css dosyasının adını örneğin "global1.css" yaptım . Bunu global.css ile iletişimde olan hangi dosyanın içinde de değiştirmeliyim ? Not : (sayfamda css değişikliği için global.css içinde değişiklik yapıp tekrar global.css ismi ile kaydetmeyi biliyorum ama ben bunu istemiyorum .Benim yapmak istediğim global.css dosyasının adını değiştirdikten sonra bunu hangi dosyanın içinde belirtmeliyim? ) Bu işlem gereksiz gibi görünebilir ama benim için önemli .Dilerim biri yardımcı olabilir.
  19. Hello, I have problem with thickbox position, viz. screen. Can someone tell me please where i can find it in CSS? I think it is somewhere in global.css. Thanks for any replies and have a nice day. Erko
  20. Buenas a todos Estoy intentando cambiar el color del footer y ya lo he conseguido decidí quitar el Bloque Social, y volver a poner el de My-account..pero la sorpesa fue esta: He modificado en global.css dentro de themes/css/global.css y my-account.css el bloque h4 para poder cambiar esa parte negra, background-color si no me equivoco, pero no hace nada, no creo que sea imágen... Tienda interpack.es (no está disponible) versión 1.5.1.0 a ver si alquien me puede hechar una mano.
  21. When people select an attribute on my site, anything besides the default one makes the picture bigger and fill in the thickbox area. I dont know where to change this or for that matter how it happened. I just want it to stay the same size. Here is a product page for example http://www.innov-research.com/animal-biologicals/45-armenian-hamster-plasma.html
  22. Bonjour, Je change de version prestashop, je passe de 1.3.5 à 1.4.6.2 donc la j'essai d'adapter mon thème 1.3.5.0 pour qu'il soit le thème natif dans ma nouvelle installe " jusqu'ici normalement tout va bien " J'ai fouillé le forum et le net , j'ai trouvé un tuto pour pouvoir adapter le thème à la nouvelle version ' sur my-theme-shop ' j'ai tout fait Mais le problème est là, malgré tous les ajouts et modifications, il y'a que mon header et footer qui apparaissent + ou - normalement. Je suis pas programmeur , mais je m'ensor un peu et j'ai l'impression que mon global.css n'est pas exécuter, que la liste de fichier php ( blockaverst , blockcart , ... ) qu'il faut modifier pour qu'il repointe sur mon global.css ne repointe pas du tout, même la barre recherche ne se trouve pas où elle doit être. Donc je me dis soit mon global.css n'est pas bon , soit y'a un problème niveau code. Je suis en local , et mes scripts ( java ) non plus ne s'enclanche pas Voici mon global.css J'attend de vos nouvelles. Merci global.css
  23. Please help. Let's say I sell shoes and handbags and I have those 2 categories. No problem with handbags but in the shoes category I have hundred of pairs of shoes all available in the same 10 different sizes. How can I add the drop down size choice to all products in the category shoes in one go? It seems crazy to do it size by size for every individual pair of shoes. Replies deeply appreciated.
×
×
  • Create New...