Jump to content

Search the Community

Showing results for tags 'jQuery'.

  • 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. 0 I'm trying to get the date of selected order from a dropmenu and to display an iput, using smarty into jQuery. But I'm getting all dates {literal} <script type="text/javascript"> var my_date_aray = [];{/literal} {foreach from=$orders item=order} my_date_aray["{$order.details.reference}"] = "{$order.details.order_date}"; {/foreach} {literal} $(document).ready(function(){ $('#queryRef').on('change',function(){ //var optionValue = $(this).val(); //var optionText = $('#dropdownList option[value="'+optionValue+'"]').text(); //var optionText = $("#queryRef option:selected").text(); var input = document.getElementById("reference"); $('#reference').val(my_date_aray); var queryRef = $("#queryRef option:selected").val(); if (queryRef == 0) { $("#createTicket").attr("disabled", true); } }); }); </script> {/literal}
  2. Hello everyone, Here I am blocked that the prestashop 1.6 version. I have to define a carrier by default. I have defined the default carrier in the administration. On the front side: I set up a new design with radio checkboxes the problem : I see the default checkbox activate and then I see it disappear. (it is displayed for 2 seconds). I would like it to stay active. Is it that some of you have already had this problem? How did you fix this problem? ps: I think the problem can possibly come from the loading of jquery.
  3. My prestashop has a bug in JQuery, how can I solve it? This drives me crazy, apparently it makes other modules fail... <input id="username_addons" name="username_addons" type="text" value autocomplete="off" class="form-control ac_input"> upgrade.js:729 Uncaught TypeError: $(...).die is not a function at Object.success (upgrade.js:729:29) at c (jquery-3.5.1.min.js:2:28294) at Object.fireWith [as resolveWith] (jquery-3.5.1.min.js:2:29039) at l (jquery-3.5.1.min.js:2:79800) at XMLHttpRequest.<anonymous> (jquery-3.5.1.min.js:2:82254) upgrade.js:671 Uncaught TypeError: $(...).die is not a function at Object.success (upgrade.js:671:29) at c (jquery-3.5.1.min.js:2:28294) at Object.fireWith [as resolveWith] (jquery-3.5.1.min.js:2:29039) at l (jquery-3.5.1.min.js:2:79800) at XMLHttpRequest.<anonymous> (jquery-3.5.1.min.js:2:82254)
  4. Bonjour tout le monde, Voila je suis bloquer que la version prestashop 1.6. Je doit définir un transporteur par default. J'ai bien défini le transporteur par default dans l'administration. Coté front : J'ai mis en place un nouveau design avec des checkbox de type radio le problème : Je vois la checkbox par défaut s'activer puis ensuite, je la vois disparaitre. (elle s'affiche 2 secondes). J'aimerai qu'elle reste active. est ce que certaine personne parmi vous on déjà eu le soucis ? Comment avez vous fait pour corriger ce problème ? ps : je pense que le problème peux éventuellement venir du chargement de jquery.
  5. I am developing a module for prestashop 1.7 and trying to make an ajax request from the form of my page to backend, it does not really matter for me if it would be to the main php file of the module or a controller of this page. Just I cant get it done whatever I am trying. I have tried methods described here: How to ajax request to custom page in prestashop 1.7 Make an ajax request from a Prestashop module https://www.prestashop.com/forums/topic/589686-prestashop-16-controller-ajax-call/ Call a prestashop module with ajax https://webkul.com/blog/ajax-url-call-controller-using-front-controller/ http://www.muzzy.tech/blog/routing-ajax-requests-correct-way-prestashop-modules None of them seem to work. I am not a newbie in web development, so I am pretty sure I have followed the instuctions above with proper care, I just can't get it working on this platform. If someone could provide me with a comprehensive way of achieving my goal, I would endlessly appreciate this.
  6. Hi there, I'm writing this post because maybe you'll be able to help me as I got stuck with the module that I'm creating. I'd like to create a module adding "remove all" button to a cart that shows confirmation modal after being clicked. Up to this point I created the following: 1. Remove all button (see screenshot below) 2. Function in front controller that allows to remove products from cart. 2. Modal itself (see screenshot + please ignore styling) I want the function removing products from cart to be executed after a user clicks the "confirm" button in the modal, however I can't target it using query selector in my front.js file. I tried to do this with nested AJAX request and when I did it this way I've had an access to the button, however when I clicked it, I got again response with modal. My question is: How to handle multiple AJAX requests using module controller? How to access the button that I displayed using AJAX? Below you'll also find my code from main module script with function rendering a modal, code from my front controller and my jquery ajax request. Function rendering modal: public function displayModal() { return $this->display(__FILE__,'modal.tpl'); } Front controller: class RemoveAllCartButtonAjaxModuleFrontController extends ModuleFrontController { public function initContent() { $this->ajax = true; } public function displayAjax() { $modal = array('modal' => $this->module->displayModal()); exit(json_encode($modal)); } public function removeAll(){ $products = $this->context->cart->getProducts(); foreach ($products as $product) { $this->context->cart->deleteProduct($product["id_product"],$product["id_product_attribute"]); } } } Jquery AJAX $('.remove-all-btn').click((e) => { e.preventDefault(); $.ajax({ type: 'GET', url: controller_link, success: (res) => { const jsonData = JSON.parse(res); $('#footer').before(jsonData.modal) } }) }); Huge thank you in advance for any advises!
  7. 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.
  8. Bonjour, J'ai installé et paramétré le module Colissimo la poste (le module gratuit), mais j'ai une erreur pour Colissimo Points Retrait lors de la sélection du point retrait, quand je clique sur le bouton "Sélectionner un point retrait" la fenêtre ne s'ouvre pas et dans la console j'ai une erreur jquery Prestashop 1.7.6.7 Uncaught TypeError: jQuery(...).modal is not a function at HTMLButtonElement.<anonymous> (bottom-f8751a514.js:751) at HTMLDocument.dispatch (bottom-f8751a514.js:615) at HTMLDocument.r.handle (bottom-f8751a514.js:615) Merci d'avance
  9. When I click on Add a feature button, below an error comes. Above is beofre clicking and below is after clicking. Due to this I am not able to add any new features to a product. I am able to see this error in all products (10k plus)
  10. Hi, joakim.be/fr/ This is my website. I have a conflict on my homepage and jquery, animations or images don't display... but if you navigate on other pages, everything is working well. Try the dropdown effect on menu for example. How is it possible? No error in debug mode. Thank you.
  11. It is necessary that when you click on the button, a request is made via ajax and the desired row in the database is deleted. I have the code: $(".remove_order_submit").click(function(){ $.ajax({ url: "/modules/ps_customercedula/ps_customercedula.php", method: "post", data: { method: 1, id_order_remove: {$hook_name} }, success: function(data){ } }); }); }); How to write php so that if post method = 1 then call the function public function displayAjax() { $db = \Db::getInstance(); if ($this->errors) die(Tools::jsonEncode(array('hasError' => true, 'errors' => $this->errors))); if(Tools::getValue('method')=='1') { $db = \Db::getInstance(); $result = $db->delete('log', 'id_log = 2'); } }
  12. Hello, I would like my site load script from my server and doesn't from google servers. How can it possible? I found the media.php srcipt and upload jquery to my server, but it always loads from google. What have I done wrong? Thanks in advance! Bendeguz
  13. Hello community, I try to edit shipping number in order using prestashop API and jQuery and Javascript. I read all of the docs about API and I can create GET requests to receive any information that I want but I still can't put anything by using jQuery. Does anyone has any example how to edit something in order or whatever in prestashop using jquery/javascript? Docs are saying: This is just to global and overall it is not helping with nothing. How to edit something via API using just browser calls?
  14. Bonjour, J'utilise Prestashop 1.7.5.0. Il m'est impossible de filtrer les produits par catégories (Catalogue > Produits > Filtrer par catégories). Je n'ai pas mis à jour Prestashop, mais par contre, j'ai mis à jour de nombreux modules. En regardant dans la console de Chrome, j'obtiens les erreurs suivantes : Uncaught TypeError: s is not a constructor @jquery.ui.widget.min.js:4 at Function.e.widget (jquery.ui.widget.min.js:4) at jquery.ui.sortable.min.js?1.7.5.0:4 at jquery.ui.sortable.min.js?1.7.5.0:4 Uncaught TypeError: $(...).modal is not a function at HTMLDocument.<anonymous> (asc?_token=tAXdPsZQDjwODMTlX2LhO_VTXQo69AlkzTP0j3NAnZA:14695) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at Function.ready (jquery-1.11.0.min.js:2) at HTMLDocument.K (jquery-1.11.0.min.js:2) Avez-vous une solution pour régler ce problème ?
  15. Hi all Have a look here http://www.saltshop.gourmetsalt.co.za/index.php I have got a position: fixed; on my "right_column". I would like to stop it from scrolling with the page at a certain point. (As you can see it overlaps the menu, header etc.) When the top of the "right_column" div reaches the "horizontalmenu" div, I want it to stop scrolling and become static... or something like that. Does anybody know a jQuery method or something to do this? Thank you!
  16. Hi, i have this problem in my backoffce jquery not working on catalog page: in console i can see : Uncaught SyntaxError: Unexpected end of input jquery.ui.sortable.min.js?1.7.5.0:4 Uncaught TypeError: Cannot read property 'mouse' of undefined
  17. Hello, I am using Google Mobile Friendly tool to verify if all is ok : https://search.google.com/test/mobile-friendly and for example for this product : https://sklep.agropilot.com.pl/ciagniki/czesci-zamienne-do-ciagnikow-ursus/czesci-zamienne-do-ciagnikow-ursus-c-360/czesci-zamienne-do-skrzyni-biegow-ciagnika-ursus-c-360/33943-uszczelka-korpusu-skrzyni-biegow-tylny-most-pasuje-do-c-360.html General results is OK that website is optimized for mobile but I have few errors with JS load In result this tool complains about load files , not always but sometimes, sometimes there are other files there also some images: https://sklep.agropilot.com.pl/js/jquery/plugins/jquery.idTabs.js https://sklep.agropilot.com.pl/js/jquery/plugins/jquery.scrollTo.js https://sklep.agropilot.com.pl/modules/ganalytics/views/js/GoogleAnalyticActionLib.js https://sklep.agropilot.com.pl/modules/x13askaboutprice/views/js/x13askaboutprice.js Do you have any ideas tips what could cause that ? I have option in performance turned on - move all JS to the end. Is this errors caused by some order of scripts load ? I tried to manage some modules and placed in them at end by managing hooks but not helped. Is that something about robots.txt ? Thanks Kamil
  18. Bonsoir, Je me tourne vers vous car je suis dans le flou le plus total pour mon problème et j'espère qu'une âme charitable saura m'aider à le corriger. Lorsque j'utilise la console chrome j'ai plusieurs erreurs d'affichées liées apparemment au jquery. jquery-3.3.1.min.js:2 jQuery.Deferred exception: auto_play is not defined ReferenceError: auto_play is not defined at HTMLDocument.<anonymous> (https://pausegreen.com/:133:5) at l (https://code.jquery.com/jquery-3.3.1.min.js:2:29375) at c (https://code.jquery.com/jquery-3.3.1.min.js:2:29677) undefined jquery-3.3.1.min.js:2 Uncaught ReferenceError: auto_play is not defined at HTMLDocument.<anonymous> ((index):133) at l (jquery-3.3.1.min.js:2) at c (jquery-3.3.1.min.js:2) push-7401204561.js:1 Unable to Register SW : TypeError: Failed to register a ServiceWorker for scope ('https://pausegreen.com/') with script ('https://pausegreen.com/sw-mt.js'): A bad HTTP response code (404) was received when fetching the script. Array(5) (anonymous)@push-7401204561.js:1  Je suis malheureusement totalement dépourvu face à ce genre de bug, est-ce que c'est corrigeable ? Si c'est possible, comment dois-je procéder ? Je reste pendu à vos postes en vous remerciant d'avance pour l'intérêt que vous porterez à mon problème. Amicalement. Je suis sous prestashop 1.7
  19. I'm working on a module where it has a back office for the admin to post articles to his prestashop page. I want to give him the option of adding dynamically input fields. For example when the admin clicks on the button add, I want to show something a modal that will have 3 input fields. After the admin will fill the input fields with information he will press the ok button on the modal form. Then the modal will be disappeared but the data that he added on the form will be appears on a table in the helper form in order to be saved when he will click the save button. Can anyone help me to implement this or tell me how to add javascript to the helperform?
  20. Hi! I have a script that dinamically detects the last picture on each product variant and saves it on a variable. But when I select a different color, the script just stops working. (I guess it's related to the fact that the URL partially changes). So what I'm trying to do, is to detect when the URL changes to trigger an event, but I can't make it work. This is my test code on my product.tpl: {literal} <script type="text/javascript"> $(document).ready(function() { console.log("JQUERY ON TPL"); }); $(window).bind('hashchange', function() { console.log("URL HAS CHANGED"); }); </script> {/literal} The "JQUERY ON TPL" message is displayed on the console, so the jquery script works. But the 'URL HAS CHANGED' message doesn't show whenever I select a color for my product. This is the product URL: http://www.gardeniaintimates.com.ar/top/22-top-helina.html And this is the product URL when I change to a different color: http://www.gardeniaintimates.com.ar/top/22-46-top-helina.html#/2-tamano-m/11-color-negro
  21. Hey everyone! I thought this would have been a nice tip for people wanting to use an ajax contact form, instead of a separate page http://nemops.com/prestashop-ajax-contact-form/#.WBhwB_nx6Uk Fabio
  22. Hi, Has anyone upgraded their Jquery in Prestashop 1.6.1.24? It's on v.1.11.0 and according to Google Lighthouse audit, it has some vulnerabilities. Is it safe to upgrade to Jquery v.1.12.4, if not going to v.2 or 3? Thanks
  23. Saludos a todos. Estoy probando una función muy simple Jquery en la página del producto: Cuando cambie un valor de la lista desplegable me muestre un Alert ey no me funciona es como si la librería jquery no cargara Las consola me muestra este error Uncaught ReferenceError: $ is not defined, el codigo lo uso en product.tpl aca esta el producto <script> {literal} $('select').change(function(){ alert("The text has been changed."); }); {/literal} </script> Cuando uso la función en /classic/assets/js/custom.js ni funciona la formula ni muestra el error en la consola He hecho mi investigación pero no he dado con el asunto, la línea de codigo esta en /classes/controller/AdminController.php como dice el foro . pero veo que no se carga. Como hago para que cargue Jquery y que las funciones "funcionen"? La idea del jquery es una ves funcione deseo que cuando la persona elija en el atributo NO, esconder la personalizacion del prodcuto ya que no he podido con esto Gracias por anticipado
  24. Hello. Im putting into practice a tutorial I found in a project. I need to make an Ajax request and recive a variable from the the php file, but instead I recieve the html data of the website. Can anyone help me finding a solution? This is my js file. function change1(link) { console.log("Ajax: OK"); console.log('....'); $.ajax({ type: 'POST', dataType : 'json', url: link, cache: false, data: { variable_1 : 'test', ajax: true, }, success: function (data, status) { console.log(status); console.log(data); }, error : function (hx, status) { console.log(status); } }); } This is my target php file for the ajax <?php class MycustommoduleAjaxModuleFrontController extends ModuleFrontController { public function initContent() { $this->ajax = true; parent::initContent(); } public function displayAjaxdoSomeAction() { $var1 = Tools::getValue('variable_1'); echo "<script>console.log(".$var1.")</script>"; die(Tools::jsonEncode(array('result' => "test"))); } } ?> This is the result in the console log. As you can see, the returned data is a lot of html and not necessary the result => test, I was hoping for.
  25. Presta 1.7.5 Jak w tytule, w konsoli wywala Uncaught ReferenceError: $ is not defined http://prntscr.com/n9il0y Czytałem, że powinno się podmienić bibliotekę w js/jquerty/ http://prntscr.com/n9ildd ale obawiam się czy na pewno wszystko będzie poprawnie działało. Aktualna wersja jquery-1.11.0.min. Dorzucę jeszcze SS z dostępnego jquery.js http://prntscr.com/n9iq87 a tutaj jego brak brak w folderze /js/ http://prntscr.com/n9isag
×
×
  • Create New...