-
Posts
48 -
Joined
-
Last visited
Everything posted by eagleman
-
Impossible d'envoyer le mail
eagleman replied to eagleman's topic in Utilisation de PrestaShop : configuration et difficultés
Bonjour, Le status du mail a été lié à un modèle qui n'existe plus sur le serveur -
Bonjour, J'ai ce message d'erreur quand je change le status de la commande Une erreur inattendue s'est produite. [Symfony\Component\Debug\Exception\ContextErrorException code 0] : Notice: Trying to get property 'id_address_invoice' of non-object. c'est quoi id_adress_invoice , c'est la bdd ou un confilct de modules Cordialement,
-
Hello, When i change the order status, I get this error Une erreur inattendue s'est produite. [Symfony\Component\Debug\Exception\ContextErrorException code 0] : Notice: Trying to get property 'id_address_invoice' of non-object. Regards
-
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}
-
Show Message based on previous selected item
eagleman replied to eagleman's topic in Core developers
Hi @Prestachamps the variable load all dates, so please I need to show only the date of the selected order could you please help me find what is wrong https://watch.screencastify.com/v/0qhxBORv5xeA1xbGCOyE http://pastebin.fr/109889 Regards list.tpl -
I am making some modifications in the way that customers explore products in a new page .tpl by overriding category /public_html/controllers/front/AutoDiagController.php public function initContent() { $module = new cdkeys(); $psversion = $module->psversion(); $cdkeys = CdKeysArchive::getAllByCustomer($this->context->customer->id); if (!is_array($cdkeys)) { $cdkeys = array(); } parent::initContent(); $products_partial = Product::getProducts($this->context->language->id, 0, 50, 'name', 'asc'); $products = Product::getProductsProperties($this->context->language->id, $products_partial); $this->context->smarty->assign(array( 'products' => $products, 'homeSize' => Image::getSize('home_default'), 'cdkeys' => $cdkeys, 'cdkeys_count' => count($cdkeys), 'cdkeys_customer' => $this->context->customer, 'psversion' => $psversion )); $this->setTemplate('AutoDiag.tpl'); } Is there a function that works but gets products from a defined category using a category ID (rather than the current category) ? I would like to display products from a specific category When I put this code, it shows me all the products. {foreach from=$products item=product name=products} {$product.name|escape:'htmlall':'UTF-8'} {/foreach}
-
Bonjour, J'ai créé une page dans /public_html/controllers/front/AutoDiagController.php public function initContent() { $module = new cdkeys(); $psversion = $module->psversion(); $cdkeys = CdKeysArchive::getAllByCustomer($this->context->customer->id); if (!is_array($cdkeys)) { $cdkeys = array(); } parent::initContent(); $products_partial = Product::getProducts($this->context->language->id, 0, 50, 'name', 'asc'); $products = Product::getProductsProperties($this->context->language->id, $products_partial); $this->context->smarty->assign(array( 'products' => $products, 'homeSize' => Image::getSize('home_default'), 'cdkeys' => $cdkeys, 'cdkeys_count' => count($cdkeys), 'cdkeys_customer' => $this->context->customer, 'psversion' => $psversion )); $this->setTemplate('AutoDiag.tpl'); } /public_html/themes/mytheme/templates/AutoDiag.tpl Cordialement,
-
Show Message based on previous selected item
eagleman replied to eagleman's topic in Core developers
Hi @Prestachamps I can seed now the orders in log with date, but i do not how to use the value by referring the array with the order reference as key, taken from the selected radiobutton. Regards -
Erreur d'exception quand je veux uploader un nouveau logo
eagleman replied to Samdev's topic in Discussion générale
Bonjour, Pour moi , j'ai juste enregistré l'image en format PNG au lieu de JPG depuis paint et cela fonctionne sans changer la version de php Merci- 10 replies
-
- téléchargement
- favicon
-
(and 1 more)
Tagged with:
-
Show Message based on previous selected item
eagleman replied to eagleman's topic in Core developers
Hi @Prestachamps thank you very much, i will investigate more because it does not work , the alert console shows en emy message http://pastebin.fr/107681 -
Show Message based on previous selected item
eagleman replied to eagleman's topic in Core developers
Hello @Prestachamps I appreciate your help and thank you for your time. any example please or guide regards -
hello, can you please help me to find a solution please https://github.com/surveyjs/survey-library/issues/4492#issue-1281220580
-
Hello @prestachamps it works like charm ; thank you very much for your time and your help Regards
-
Hello can you please help me with this issue, I need to display the total of orders on the client area section like {$orders_count} placed $this->context->smarty->assign(array( 'totalorders' => $totalorders, )); $this->setTemplate('customer/my-account'); Regards
-
Hello I create a new order status called SMS and it linked to new mail template sms.html/sms.txt I added {delivery_phone} {delivery_phone_mobile} but the number phone does not show on mail I'm using PS 1.7.7.7 so any idea please to add the phone number of customer Thank you
-
Hello When I'm connected too long in my back office and tried to log in again I'm rejected so I should clear my browser (Chrome,FF,Edge) every time to get access . So i noticed that when the file named login.js is load from disk cache I can't access. here is a video that explain the issue. I'm using PS on 3 websites with different version 1.7.6.5 and 1.7.6.6 aldo 1.7.6.7 on a VPS Linux Centos and 7.1 php version and I don't use any cache module as Nginx or Memcached. Even on the mobile I should switch to desktop version or clear files to get access . does any one is facing the same issue ? Regards 2020-07-28_05-41-14.mp4
-
Hi I'm using 1.7.6.3 i will try to add file in header Regards
-
Hi I added the files /httpdocs/themes/mytheme/assets/js/footable.js /httpdocs/themes/mytheme/assets/js/footable.min.js And I edited the file /httpdocs/classes/controller/FrontController.php and I added public function setMedia() { $this->registerStylesheet('theme-main', '/assets/css/theme.css', ['media' => 'all', 'priority' => 50]); $this->registerStylesheet('theme-custom', '/assets/css/custom.css', ['media' => 'all', 'priority' => 1000]); $this->registerStylesheet('theme-custom', '/assets/css/footable.standalone.css', ['media' => 'all', 'priority' => 1000]); $this->registerStylesheet('theme-custom', '/assets/css/footable.standalone.min.css', ['media' => 'all', 'priority' => 1000]); if ($this->context->language->is_rtl) { $this->registerStylesheet('theme-rtl', '/assets/css/rtl.css', ['media' => 'all', 'priority' => 900]); } $this->registerJavascript('corejs', '/themes/core.js', ['position' => 'bottom', 'priority' => 0]); $this->registerJavascript('theme-main', '/assets/js/theme.js', ['position' => 'bottom', 'priority' => 50]); $this->registerJavascript('theme-custom', '/assets/js/footable.js', ['position' => 'bottom', 'priority' => 50]); $this->registerJavascript('theme-custom', '/assets/js/footable.min.js', ['position' => 'bottom', 'priority' => 50]); $this->registerJavascript('theme-custom', '/assets/js/custom.js', ['position' => 'bottom', 'priority' => 1000]); but the two files does not load Regards,
-
Bonjour, J'aurai besoin de votre aide SVP concernant un souci de chargement sur un slider OWL CAROUSEL, Quand je charge le site le slider affiche un height de 1444psx alors que mes image ne dépasse pas 387px, ci-joint une C.E Je partage avec vous le code de mon slider * ---------------------------------------- THEME SLIDER ---------------------------------------- */ $(function() { if ($('#slider-container').length) { $('#slider-container').owlCarousel({ items: 1, loop: true, lazyLoad: true, autoHeight: true, animateOut: pte_slideranimateout, animateIn: pte_slideranimatein, autoplay: pte_sliderautoscroll, autoplayTimeout: pte_sliderspeed + 4000, autoplayHoverPause: true, smartSpeed: pte_sliderspeed, nav: true, navContainer: '.slider-nav', navText: ['‹', '›'], dots: true, dotsContainer: '.slider-dots' }); $('#slider-container').find('.cloned').find('h1').remove(); $('#slider-container').on('translate.owl.carousel', function(e) { $(this).find('.slider-caption').fadeOut('fast').removeClass('animated ' + pte_captionanimation); }); $('#slider-container').on('translated.owl.carousel', function(e) { $(this).find('.active').find('.slider-caption').fadeIn('slow').addClass('animated ' + pte_captionanimation); }); function sliderAutoHeight() { var imgHeight = $('#slider-container').find('.active img').height(); $('#slider-container').css('height', imgHeight + 'px'); } $('#slider-container').find('.active img').load(function() { sliderAutoHeight(); }); $('#slider-container').on('translate.owl.carousel', function(e) { setTimeout(sliderAutoHeight, 100); }); } }); <div id="theme-slider" class="clear float-left w-100"> {if $pte_sliderpagination}<div class="slider-dots owl-dots"></div>{/if} <div id="slider-container" class="owl-carousel"> {foreach from=$slides item=slide name=slides} <div class="slider-slide"> {if $slide.link && $pte_sliderlink}<a href="{$slide.link}">{/if} <img src="about:blank" data-src="{$urls.img_url}slide-img-{$slide.id}-{$id_shop}-{$id_lang}.png" alt="{$slide.title}" class="owl-lazy mx-auto d-block" {if isset($slide.size) && $slide.size} {$slide.size nofilter} {/if}> {if $slide.link && $pte_sliderlink}</a>{/if} {if $pte_slidercaption} <div class="slider-caption"> {if $smarty.foreach.slides.first}<h1 class="slider-title mb-0">{$slide.title}</h1>{else}<p class="slider-title">{$slide.title}</p>{/if} {if $slide.subtitle}<p class="slider-subtitle mt-1 hidden-xs-down">{$slide.subtitle}</p>{/if} {if $slide.resume}<p class="slider-resume hidden-md-down">{$slide.resume nofilter}</p>{/if} {if $slide.link && !$pte_sliderlink}<a href="{$slide.link}" class="btn btn-primary mt-2 mt-xl-3">{l s='View more' d='Shop.CreathemeGlobal'}</a>{/if} </div> {/if} </div> {/foreach} </div> {if $pte_sliderarrows}<div class="slider-nav owl-nav"></div>{/if} </div> <script> var pte_sliderautoscroll = {$pte_sliderautoscroll}; var pte_slideranimateout = "{$pte_slideranimateout}"; var pte_slideranimatein = "{$pte_slideranimatein}"; var pte_captionanimation = "{$pte_captionanimation}"; var pte_sliderspeed = {$pte_sliderspeed}; </script> /* ---------------------------------------- * OWL CAROUSEL v2.2.1 * Copyright (c) 2013-2017 David Deutsch * Licensed under MIT license ---------------------------------------- */ .owl-carousel { .transition(height 500ms ease-in-out); display: none; overflow: hidden; -webkit-tap-highlight-color: transparent; } .owl-carousel .owl-stage { position: relative; -ms-touch-action: pan-Y; .clearfix(); } .owl-carousel .owl-stage-outer { position: relative; overflow: hidden; -webkit-transform: none; } .owl-carousel .owl-wrapper, .owl-carousel .owl-item { .backfaceVisibility(hidden); -webkit-transform: none; } .owl-carousel .owl-item { position: relative; float: left; min-height: 1px; -webkit-backface-visibility: hidden; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; } .owl-carousel.owl-loaded { display: block; } .owl-carousel.owl-loading { opacity: 0; display: block; } .owl-carousel.owl-hidden { opacity: 0; } .owl-carousel.owl-refresh .owl-item { visibility: hidden; } .owl-carousel.owl-drag .owl-item { .userSelect(none); } .owl-carousel.owl-grab { cursor: move; cursor: grab; } .no-js .owl-carousel { display: block; } .owl-carousel .owl-animated-in { z-index: 0; } .owl-carousel .owl-animated-out { z-index: 1; } .owl-height { .transition(height 500ms ease-in-out); } .owl-carousel .owl-item .owl-lazy { .transition(opacity 400ms ease); opacity: 0; } .owl-carousel .owl-item img.owl-lazy { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } .owl-nav { -webkit-tap-highlight-color: transparent; &.disabled { display: none; } .owl-prev, .owl-next { .translate(0, -50%); position: absolute; top: 50%; color: @baseFontColor; font: 700 50px/1 'Times New Roman', sans-serif; cursor: pointer; z-index: 1; .userSelect(none); } .owl-prev { left: 0; } .owl-next { right: 0; } .disabled { opacity: 0.2; cursor: default; } } .owl-dots { position: absolute; top: 12px; left: 12px; right: 12px; text-align: center; z-index: 1; -webkit-tap-highlight-color: transparent; &.disabled { display: none; } .owl-dot { display: inline-block; cursor: pointer; .userSelect(none); span { background-color: lighten(@baseFontColor, 25%); border-radius: 50%; .boxShadow(inset 0 2px 2px rgba(0, 0, 0, 0.5)); display: block; width: 14px; height: 14px; margin: 0 0.2rem; -webkit-backface-visibility: visible; } &.active { cursor: default; } &.active span, &:hover span { background-color: @baseFontColor; } } } https://drive.google.com/file/d/1lJr6ARyXQt5ZatVBwmT143u3UZ_kGp-B/view Je vous remercie d'avance pour votre aide Cordialement,
-
Bonjour, J'ai trois produits pour et je voudrais afficher un lien pour chaque produit , Si le produit acheté est 1 alors affiché le lien local1.local Si le produit acheté est 1 et 2 alors affiché le lien local1.local tout d'abords je souhaite savoir comment faire pour récupérer l'ID du produit {$product->id} Merci d'avance pour votre aide PS 1.7.5.1
-
Bonjour J'ai un produit avec deux attributs alors j'ai besoin de votre aide s'il vous plaît pour apporter des modifications lorsque l'attribut 1 est sélectionné affiche un lien ou du texte Lorsque l'attribut 2 est sélectionné, un champ de texte * est nécessaire pour demander aux clients des informations supplémentaires telles que (numéro de téléphone).
-
Ajouter publicité dans les produits
eagleman replied to eagleman's topic in PrestaShop pour les développeurs
Bonjour okom3pom Je vous remercie pour votre réponse rapide Je n'ai pas assez de connaissances afin de modifier le fichier. Comment peut on le faire et erci encore une fois