Jump to content

AngelDisc

Members
  • Posts

    257
  • Joined

  • Last visited

1 Follower

Contact Methods

Profile Information

  • Location
    Hyères (83)

Recent Profile Visitors

5,878,658 profile views

AngelDisc's Achievements

Newbie

Newbie (1/14)

8

Reputation

  1. Bonjour. Depuis une page produit, lors d'un click sur l'image pour la faire Zoomer, il est créer <div class="modal-backdrop fade in"></div> Cet ajout est créer depuis le fichier theme.js, au alentour de la ligne 3695 à 3708. , l.prototype._showBackdrop = function(e) { var n = this, i = t(this._element).hasClass(d.FADE) ? d.FADE : ""; if (this._isShown && this._config.backdrop) { var r = o.supportsTransitionEnd() && i; if (this._backdrop = document.createElement("div"), this._backdrop.className = d.BACKDROP, i && t(this._backdrop).addClass(i), t(this._backdrop).appendTo(document.body), t(this._element).on(f.CLICK_DISMISS, function(t) { return n._ignoreBackdropClick ? void(n._ignoreBackdropClick = !1) : void(t.target === t.currentTarget && ("static" === n._config.backdrop ? n._element.focus() : n.hide())) }), r && o.reflow(this._backdrop), t(this._backdrop).addClass(d.IN), !e) return; if (!r) return void e(); t(this._backdrop).one(o.TRANSITION_END, e).emulateTransitionEnd(150) } else if (!this._isShown && this._backdrop) { t(this._backdrop).removeClass(d.IN); var a = function() { n._removeBackdrop(), e && e() }; o.supportsTransitionEnd() && t(this._element).hasClass(d.FADE) ? t(this._backdrop).one(o.TRANSITION_END, a).emulateTransitionEnd(150) : a() } else e && e() Je souhaite au moment du click, ajouter une autre class, qui serait celle du déclencheur (class du bouton par exemple). Elle doit être différente entre celle du zoom ou celle de l'ajout au panier. Avez vous une idée ? Merci par avance
  2. Merci pour ton retour. Dommage que cela soit si compliqué, il aurait été super de pouvoir ajouter une possibilité de répondre aux commentaires des clients. Bonne journée
  3. Bonjour. Je souhaiterais modifier un fichier appelé depuis l'override ("use PrestaShop\Module\ProductComment\Repository\ProductCommentRepository;"), mais je ne connais pas la méthode. J'ai pu remarqué que le fichier (use) d'origine est toujours appelé. if (!defined('_PS_VERSION_')) { exit; } use PrestaShop\Module\ProductComment\Repository\ProductCommentRepository; class ProductCommentsOverride extends ProductComments { } Mon override appel le fichier ProductCommentRepository.php qui se situe d'origine dans "src\Repository" La question est de savoir comment l'appeler, ou placer le fichier et une fois fini, faudra t'il renommer la class "ProductCommentRepository" du fichier ProductCommentRepository.php Auriez vous une idée ? Merci par avance.
  4. Bonjour. Pour passer le module en 1.6 Dans le fichier mlpushmenu.php (ligne 47) $this->ps_versions_compliancy = array('min' => '1.6.0.0', 'max' => _PS_VERSION_); Dans la BDD INSERT INTO `ps16_hook` ( `id_hook` , `name` , `title` , `description` , `position` , `live_edit` ) VALUES ( NULL , 'displayAfterBodyOpeningTag', 'Very top of pages', 'Use this hook for advertisement or modals you want to load first.', '1', '1' ); INSERT INTO `ps16_hook` ( `id_hook` , `name` , `title` , `description` , `position` , `live_edit` ) VALUES ( NULL , 'displayBeforeBodyClosingTag', 'Very bottom of pages', 'Use this hook for your modals or any content you want to load at the very end.', '1', '1' ); Dans le fichier header.tpl de ton thème (juste au dessous de la balise body) {hook h='displayAfterBodyOpeningTag'} Dans le fichier Footer.tpl de ton thème (juste au dessus de la balise body) {hook h='displayBeforeBodyClosingTag'} Créer un fichier FrontController.php dans (override\classes\controller) <?php /* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class FrontController extends FrontControllerCore { /** * Initializes common front page content: header, footer and side columns */ public function initContent() { $this->process(); if (!isset($this->context->cart)) { $this->context->cart = new Cart(); } if (!$this->useMobileTheme()) { // These hooks aren't used for the mobile theme. // Needed hooks are called in the tpl files. $this->context->smarty->assign(array( 'HOOK_HEADER' => Hook::exec('displayHeader'), 'HOOK_TOP' => Hook::exec('displayTop'), 'HOOK_BeforeBodyClosingTag' => Hook::exec('hookdisplayBeforeBodyClosingTag'), 'HOOK_AfterBodyOpeningTag' => Hook::exec('hookdisplayAfterBodyOpeningTag'), 'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''), 'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''), )); } else { $this->context->smarty->assign('HOOK_MOBILE_HEADER', Hook::exec('displayMobileHeader')); } } } Et big ça fonctionne Bon dev
  5. Bonsoir. Dans l'état, il est impossible de passer en 1.6 (Hook inexistant) Après, si t'es un bidouilleur Tu peux créer 2 hooks, puis ajouter les hooks à ton thème. Bon Dev.
  6. Bonjour. Voici un petit module pour afficher votre menu verticalement et en multi level. Compatible : 1.7.x.x Traductions : FR Vous pouvez voir le module en fonctionnement sur http://www.angeldisc.com/ et aussi télécharger la dernière version. mlpushmenu-prestashop.zip
  7. Bonjour. C'est un idée que je dois développer pour mes besoins personnel également. Je rajouterais cette variante au module payant. Bon Dev
  8. Bonjour. En bidouillant le module, c'est possible oui. Bon Dev
  9. Bonjour. dans les "Paramètres" vous pouvez sélectionner divers statuts. D'origine, il est prévu pour Passer les commandes "Paiement accepté" en "En cours de préparation" Seul 2 statuts sont visible ("Paiement accepté" et "En cours de préparation") Seul 1 statut est pré-coché ("Paiement accepté") Dans le module payant, vous pouvez passer les commandes avec le statut "en cours de livraison" en "Livré" et encore bien d'autres choses Bon dev
  10. Bonjour. Là comme ça, je trouve ça bizarre Et si vous désactiver le module "priceminister", l'erreur est toujours visible ou pas ? Bon Dev
  11. Bonjour. Peut on voir un aperçu de ce qu'il y a à cette ligne sur le module "priceminister" ? Peut-être un nom de fonction identique... A déterminer Bon dev
  12. Dans le dossier "config" à la racine de Prestashop Bon Dév
  13. Bonsoir. Pour voir d'ou vient vraiment le problème, dans le fichier defines.inc.php modifiez define('_PS_MODE_DEV_', false); en define('_PS_MODE_DEV_', true); Ensuite indiquez moi l'erreur Pensez à nettoyer le cache également Bon dév
×
×
  • Create New...