Jump to content

Eljaouhari

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by Eljaouhari

  1. Bonjour tout le monde, Je suis en train de résoudre un bug au niveau de mon thème actuel et j'ai besoin de savoir si le bug vient des intégrations qui ont été faire sur le thème actuel. Donc j'ai pensé à basculer vers le thème par défaut, mais j'ai peur de perdre la configuration actuelle de mon thème actuel concernant les hooks, le logo et l'intégration que j'ai fait à l'aide des plugins (Page builder). Est ce que c'est possible de basculer entre les thèmes en gardant toujours la même configuration partout ?
  2. Je suis actuellement en train de réparer un site d'un client et sans plaindre, son stagiaire a supprimé les headers et les footers a les a remplacé avec de l'HTML et CSS inline static ( La galère je sais. ) Mais encore plus pire, le client aime ce nouveaux design hahahaha Donc quand j'ajoute la page des nouveaux produits dans mon footer, personne ne peux la voir et donc j'en connais pas le lien... Est ce que vous pouvez me fournir l'adresse de cette page svp ? j'ai essayé ces liens déjà mais je reçoit toujours sur une erreur 404 : exemple.com/nouveaux-produits exemple.com/produits-nouveaux exemple.com/new-products exemple.com/products-new
  3. I solved that problem 3 months ago and the cause of the problem is the same. when you moved that block generally it contains a form and and when you moved it you actually placed it inside another form and it's the link of the first form that is being redirected to. If you forgot where that block was in the first time just use your theme to copy that file and replace it with that corrupted file. Have a nice day.
  4. Hello everyone, Must I master Symfony 3 in order to develop modules for Prestashop? Thanks a lot!
  5. Hello everyone, I hope my question will not get ignored after all... but do you know guys how to change the rendered HTML/content according to the hook the modue or the template is attached to? I thought about something like this : {if hook=displayNav} {*HTML content*} {/if} {if hook=displayTop} {*Different HTML content*} {/if} Thanks a lot, have a wonderful day.
  6. Hello everyone, I'm new to prestashop theme development and I'm trying to load css and js libraries that I've chosen to work with but none of what's mentioned in the documentation seems to work. I'm working with the StarterTheme and I've tried these two solutions but none of them work. https://coderwall.com/p/wn0czq/add-your-js-and-css-files-to-a-prestashop-theme as follows in the override/classes/controller/FrontController.php <?php class FrontController extends FrontControllerCore { public function setMedia() { parent::setMedia(); // CSS files Tools::addJS(_THEME_JS_DIR_.'materialize.js'); $this->registerStylesheet('materialize-css', '/themes/custom-materialize/assets/css/materialize.css', ['media' => 'all', 'priority' => 50]); $this->registerJavascript('materialize-js', '/themes/custom-materialize/assets/js/materialize.js', ['position' => 'bottom', 'priority' => 0]); } And Also I've tried registering the assets using theme.yml assets: css: all: - id: stylesheet-materialize path: assets/css/materialize.css media: all priority: 1 js: all: - id: script-materialize path: assets/js/materialize.js priority: 1 position: bottom name: custom-materialize display_name: Custom Materialize version: 3.0.0 author: name: "ELJAOHARI Hamza" email: "[email protected]" url: "http://www.undefined.com" meta: compatibility: from: 1.7.2.0 to: ~ available_layouts: layout-full-width: name: Full Width description: No side columns, ideal for distraction-free pages such as product pages. layout-both-columns: name: Three Columns description: One large central column and 2 side columns. layout-left-side-column: name: Two Columns, small left column description: Two columns with a small left column layout-right-side-column: name: Two Columns, small right column description: Two columns with a small right column global_settings: configuration: PS_QUICK_VIEW: false hooks: custom_hooks: - name: displayFooterBefore title: displayFooterBefore description: Add a widget area above the footer modules_to_hook: displayNav: - ps_shoppingcart - ps_languageselector - ps_currencyselector - ps_customersignin displayTop: - ps_mainmenu displayHome: - ps_imageslider - ps_featuredproducts - ps_banner displayFooter: - ps_contactinfo image_types: cart_default: width: 80 height: 80 scope: [products] small_default: width: 125 height: 125 scope: [products, categories, manufacturers, suppliers] medium_default: width: 300 height: 300 scope: [products, categories, manufacturers, suppliers] large_default: width: 500 height: 500 scope: [products] home_default: width: 250 height: 250 scope: [products] category_default: width: 960 height: 350 scope: [categories] stores_default: width: 170 height: 115 scope: [stores] theme_settings: default_layout: layout-full-width layouts: category: layout-left-side-column best-sales: layout-left-side-column Any solutions? Thanks in advance!
  7. Bonjour tout le monde, Je suis nouveau au développement des thèmes Prestashop et j'aimerai bien charger les libraries css et js que j'ai choisi. Sur la partie Asset management de la documentation j'ai vu qu'il faut enregistrer les librairies sur le theme.yml comme ceci assets: css: all: - id: stylesheet-materialize path: assets/css/materialize.css media: all priority: 1 js: all: - id: script-materialize path: assets/js/materialize.js priority: 1 position: bottom name: custom-materialize display_name: Custom Materialize version: 3.0.0 author: name: "ELJAOHARI Hamza" email: "[email protected]" url: "http://www.undefined.com" . . . Mais ceci ne marche pas ! Alors j'ai essayé d'enregistrer les libraries en faisant un override sur de la méthode setMedia comme ceci (qui marche toujours pas) <?php class FrontController extends FrontControllerCore { public function setMedia() { parent::setMedia(); // CSS files $this->registerStylesheet('materialize-css', '/themes/custom-materialize/assets/css/materialize.css', ['media' => 'all', 'priority' => 50]); $this->registerJavascript('materialize-js', '/themes/custom-materialize/assets/js/materialize.js', ['position' => 'bottom', 'priority' => 0]); } } C'est qoi la solution s'il vous plaît ?
  8. HI everyone, I hope you're having great day I'm on the pos_oregon4 theme and ps 1.7 and I'd like to display subcategories images on the left column of the page. This is the code I've edited and which does not display images for the subcategories {function name="categories" nodes=[] depth=0} {strip} {if $nodes|count} <ul class="category-sub-menu"> {foreach from=$nodes item=node} <li data-depth="{$depth}"> {if $depth===0} <a href="{$node.link}">{$node.name}{$node.desciption}{$node.image.medium.url}</a> {* The code below does not work *} {* The code below does not work *} {* The code below does not work *} {if $node.image.small.url} <img src="{$node.image.small.url}" alt="{$node.image.legend}"> {/if} {if $node.children} <div class="navbar-toggler collapse-icons" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}"> <i class="ion-ios-arrow-right add"></i> <i class="ion-ios-arrow-down remove"></i> </div> <div class="collapse" id="exCollapsingNavbar{$node.id}"> {categories nodes=$node.children depth=$depth+1} </div> {/if} {else} <a class="category-sub-link" href="{$node.link}">{$node.name}{$node.description}</a> {if $node.children} <span class="arrows" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}"> <i class="ion-ios-arrow-right"></i> <i class="ion-ios-arrow-down"></i> </span> <div class="collapse" id="exCollapsingNavbar{$node.id}"> {categories nodes=$node.children depth=$depth+1} </div> {/if} {/if} </li> {/foreach} </ul> {/if} {/strip} {/function} <div class="block-categories"> <ul class="category-top-menu"> <li class="cat_header"><a href="{$categories.link nofilter}"> {* The code below is working *} {* The code below is working *} {* The code below is working *} {if $category.image.small.url} <div class="category-cover"> <img src="{$category.image.small.url}" alt="{$category.image.legend}"> </div> {/if} {$categories.name} {if $category.description} <div id="category-description" class="text-muted">{$category.description nofilter}</div> {/if} </a> </li> <li class="cat_list">{categories nodes=$categories.children}</li> </ul> </div> I really need your help ! Thanks in advance.
  9. Helo everyone, i'm trying to display the description of the subcategories on the ps_categorytree module (of course not a classic theme). Here's the non-edited code of the module {function name="categories" nodes=[] depth=0} {strip} {if $nodes|count} <ul class="category-sub-menu"> {foreach from=$nodes item=node} <li data-depth="{$depth}"> {if $depth===0} <a href="{$node.link}">{$node.name}</a> {if $node.children} <div class="navbar-toggler collapse-icons" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}"> <i class="ion-ios-arrow-right add"></i> <i class="ion-ios-arrow-down remove"></i> </div> <div class="collapse" id="exCollapsingNavbar{$node.id}"> {categories nodes=$node.children depth=$depth+1} </div> {/if} {else} <a class="category-sub-link" href="{$node.link}">{$node.name}</a> {if $node.children} <span class="arrows" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}"> <i class="ion-ios-arrow-right"></i> <i class="ion-ios-arrow-down"></i> </span> <div class="collapse" id="exCollapsingNavbar{$node.id}"> {categories nodes=$node.children depth=$depth+1} </div> {/if} {/if} </li> {/foreach} </ul> {/if} {/strip} {/function} <div class="block-categories"> <ul class="category-top-menu"> <li class="cat_header"><a href="{$categories.link nofilter}">{$categories.name}</a></li> <li class="cat_list">{categories nodes=$categories.children}</li> </ul> </div> And I've tried to add this code {if $node.description} <div id="category-description" class="text-muted">{$node.description nofilter}</div> {/if} After this line <a href="{$node.link}">{$node.name}</a> It doesn't work... I've tried to add the code into multiple places but it just doesn't work either. I need your help! Thanks a lot !
  10. Hello everyone, I hope you're doing great ! I'm on prestashop 1.7 and I'm using a theme that doesn't display the categories and the subcategories description. How do I go about this ? Which file to edit ? What to edit in a file ? Thanks a lot, have a great day !
  11. Hello everyone, I hope you're doing great ! I have an urgent task to accomplish by the end of the day ! I have managed using the backend-office to display each main category and it's subcategories when the products of a category are listed just like this picture.. The right side : the main cateogry and it's subcategories . The left side, is where I want to display this module + displaying the category and subctegory images. How can I proceed knowing that I don't use a classic theme and I'm on PS 1.7 ? Thanks in advance.
  12. Bonjour tout le monde, J'espère que vous allez bien ! Actuellement je suis sur Prestashop 1.7.4 et j'aimerais bien pouvoir permettre à mes clients d'uploader / de télécharger plusieurs fichiers sous le même champ de personnalisation ( dans ce cas c'est le champ fichier dont je parle) . J'aimerai bien vous élaborez une solution complète contenante les fichiers que je dois changer ou il se situent, les fonctions, les lignes que je dois et notamment par quoi. Merci d'avance à tous et à toutes
  13. Hello everyone, I hope you're having a great day. I'm currently on prestashop 1.7 and I have already a non understandable amount of products on line. The problem I'm struggling with is that after some css editing of the template I found out that my customization fields module is not saving the customization for products. After reading the code of the customization form I find out that the normal behaviour is leading me to the product page after click on "save" but what happens is that I end up on the cart page and the customization is not saving. I'm using the theme "pos oregon 4". I'll be really grateful if someone can help me solve the problem. Thanks in advance.. Can it be because of missing files ? or something I don't know about ?
  14. Bonjour tout le monde, j’espère que vous passe une très belle journée Je suis actuellement sur la version 1.7 du prestashop avec le theme "pos_oregon4" activé J'ai pas mal de produits en ligne et ma boutique devra être ouverte d'ici 2 semaines Le problème que j'ai c'est que les champs de personnalisation des produits ne s'enregistre pas aprés avoir cliqué sur "enregistrer" mais bouton m'emene vers la page du panier sans aucun enregistrement pris en compte. Je suis revenue en arrière et abandonné quelque modifications que j'ai fait sur les fichiers .tpl (pour gérer les liens, et l'affichage du module personnalisation dans une autre page.;; j'ai aussi touché au css) Je serai très heureux et appréciant si quelqu’un peux m'aider à résoudre ce problème. Merci d'avance. Les fichiers que j'ai touché sont: quiview.tpl et button-cart.tpl. Merci beaucoup
  15. Bonjour tout le monde, j’espère que vous passe une très belle journée Je suis actuellement sur la version 1.7 du prestashop avec le theme "pos_oregon4" activé J'ai pas mal de produits en ligne et ma boutique devra être ouverte d'ici 2 semaines Le problème que j'ai c'est que les champs de personnalisation des produits ne s'enregistre pas aprés avoir cliqué sur "enregistrer" mais bouton m'emene vers la page du panier sans aucun enregistrement pris en compte. Je suis revenue en arrière et abandonné quelque modifications que j'ai fait sur les fichiers .tpl (pour gérer les liens, et l'affichage du module personnalisation dans une autre page.;; j'ai aussi touché au css) Je serai très heureux et appréciant si quelqu’un peux m'aider à résoudre ce problème. Merci d'avance. Les fichiers que j'ai touché sont: quiview.tpl et button-cart.tpl. Merci beaucoup
  16. Hello everyone, I hope you're having a great day. I'm currently on prestashop 1.7 and I have already a non understandable amount of products on line. The problem I'm struggling with is that after some css editing of the template I found out that my customization fields module is not saving the customization for products. After reading the code of the customization form I find out that the normal behaviour is leading me to the product page after click on "save" but what happens is that I end up on the cart page and the customization is not saving. I'm using the theme "pos oregon 4". I'll be really grateful if someone can help me solve the problem. Thanks in advance.. Can it be because of missing files ? or something I don't know about ?
  17. Hello everyone, I hope you're having a great day. I'm currently on prestashop 1.7 and I have already a non understandable amount of products on line. The problem I'm struggling with is that after some css editing of the template I found out that my customization fields module is not saving the customization for products. After reading the code of the customization form I find out that the normal behaviour is leading me to the product page after click on "save" but what happens is that I end up on the cart page and the customization is not saving. I'm using the theme "pos oregon 4". I'll be really grateful if someone can help me solve the problem. Thanks in advance..
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More