Search the Community
Showing results for tags 'Position'.
-
Bonjour à tous, Je rencontre un souci avec la position des modules, impossible de les déplacer correctement. J'ai essayé plusieurs solutions, mais aucune ne fonctionne. Même en vidant le cache, Prestashop ne prend pas en compte mes modifications. Quelqu'un aurait une idée d'où cela pourrait venir et comment résoudre ce problème ? Merci d'avance pour votre aide ! Version Prestashop : 1.7.8.11 Version PHP : 7.4
-
I have a 1.7.8.8 store installed, i tried to reordering the position of a few products. The problem is the following: (Attached images showcasing this) ( Every Parent Category does this, not only the current, if i create a new one, same behavior) I have 1 Parent Category ( Partent Category ) with 2 Child Categories ( Child 1, Child 2 ) In "Child 1" there are: "Product 1" and "Product 2", In "Child 2" there are: "Product 3" and "Product 4". When i reorder the products in "Child 1" and open the front end they display as in the backend, but in "Parent Category" they have strange order and when i go to "Parent Category" and reorder them they don't change at all. If i change the order of "Prod 1" and "Prod 2" in "Child 1" then they change their places. This only happens in Parent Categories not in Child with no other Childs. I have "Default Order Method" (In Store Parameters/Products Settings) to "Place in Category". I will be greatful for any help. Stuck on this for way too long. Information/Specs: ( Attached Photo )
-
Hi everyone, if someone could please help that would be fantastic. I am using prestashop 1.8, PHP 8.0, theme Electron Mega Electronic Super Store, my domain is www.gr8-kitchenware.co.uk I have attached the a screenshot that shows my issue. On quite a few of my product pages the brand's logo overlaps my product's description and it looks a bit of a mess. I would like to know how I can change my files so that this logo fits nicely and doesn't overlap? Or if that is somehow not possible, how to remove the logo completely from this position. Thanks so much.
- 1 reply
-
- brandlogos
- product page
-
(and 3 more)
Tagged with:
-
Hi, I'm building a very simple module for PS1.6, mostly for learning purposes. It has an admin interface like you can see in this picture: I've added the position field to the list table and it shows perfectly, but the drag and drop feature doesn't work. In my module admin controller, I have this code (just the fields list part): $this->fields_list = array( 'id_quicklinks' => array( 'title' => $this->l('ID'), 'align' => 'center', 'width' => 25 ), 'titulo' => array( 'title' => $this->l('Titulo'), 'width' => 'auto' ) , 'lead' => array( 'title' => $this->l('Subtitulo'), 'width' => 'auto' ), 'position' => array( 'title' => $this->l('Ordem'), 'filter_key' => 'a!position', 'position' => 'position', 'align' => 'center', 'class' => 'fixed-width-md' ), 'active' => array( 'title' => $this->l('Publicado'), 'width' => '25', 'active' => 'status' ) ); This makes the listing table show the position field in the table like you can see in the printscreen above, but I can't drag and drop to reorder... What is missing here? Some javascript? Some option? Appreciate any help.
-
Hi Chaps, I have setup a module for instagram and the content is shown well on the homepage. I can also change the position/order where the module is shown on the first page. So everything is fine from this perspective https://bombahair.ch However I want the content to be shown here too https://bombahair.ch/de/43-services-preise Is there any chance to set the hooks accordingly? Is this configurable or do I need a developer instead to show the content on both places? I am running PS 1.7.5.2 Thanks
-
Hello, I've got a little situation with my shop and its "Change product position in category" feature. When I add a new product and assign categories to them, its position in the category is set to the last place by default, and I have to drag-and-drop it to the first position manually. It wouldn't be a problem, but I have almost 3000 products - so dragging and dropping a product from last position to first position takes forever - and I add new products really often. So the question is, can I change it through a panel or through a code? I mean, when I assign a product to a category, it's default position should be first, not last. It's Presta 1.6.1.23.
- 1 reply
-
- prestashop-1.6
- position
-
(and 1 more)
Tagged with:
-
Hi again community. I managed to make my own custom field for the checkout form, specially to the section Delivery Address. I did this: 1 - I added my custom field to the DB into the Address table. 2 - I modified the CustomerFormatterAddress file to display my custom field: $format['custom_final_customer'] = (new FormField) ->setName('custom_final_customer') ->setType('checkbox') ->setLabel( $this->translator->trans( 'I want my invoice as End Consumer', [], 'Shop.Forms.Labels' ) ); 3 - I modified the Address model file: //Custom Fields public $custom_final_customer = 0; 'other' => array('type' => self::TYPE_STRING, 'validate' => 'isMessage', 'size' => 300), 'phone' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'phone_mobile' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'dni' => array('type' => self::TYPE_STRING, 'validate' => 'isDniLite', 'size' => 16), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false), //Custom fields 'custom_final_customer' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool') My field is displaying correctly in the front office: But two things: 1 - I don't know when even start to make that field into de position/order I want in that form. 2 - I assumed that maybe in BO / Countries / My country / Address Format, I could order my custom field like does the default fields, but nope. While my custom field is properly listed in the Address section inside the Address Format fields to add, my front office looks even worst: The final result: Thanks in advance.
-
Hi, I’m trying to get and display a product’s position within a category. The position that you can find in the backend on the right side by filtering products by category. I can’t find anything about this on the internet, can anyone help? I’m using Prestashop 1.7.8.7
-
🤝 Bonjour,j'ai un problème au niveau de la barre de recherche que je souhaiterai placer à coté du lolo. Mon thème à la base est "classic-rocket" mais je l'ai personnalisé et je suis sou PrestaShop 1.7.8.1 Merci pour vos réponse 🙂 Bonne journée https://www.tableaux-impression-deco.fr
- 13 replies
-
- prestashop 1.7.8
- position
-
(and 2 more)
Tagged with:
-
Bonjour, J'ai mis le paramètre de 'Tri par défaut' sur "Position dans la catégorie". Lorsque je filtre sur une catégorie dans la liste des produits du catalogue, les doubles flèchs permettant la réorganisation des positions n'apparait pas (tri sur position effectué). Il est donc impossible de changer l'ordre des produits pour une catégorie. (1.7.6) Une idée ?
-
Bonjour, Je suis en train de développer un site avec prestashop 1.6.0.9 et je rencontre un problème avec la gestion des produits : les petites flèches dans la colonne "Position" n'apparaissent pas et je ne peux donc pas modifier l'ordre de mes produits (voir capture ci-dessous). Est-ce un bug ? comment puis-je faire pour modifier l'ordre des produits ? Merci pour votre aide !
- 33 replies
-
- backoffice
- produits
-
(and 2 more)
Tagged with:
-
Bonjour, Quand je veux sur mon site changer de position un module dans la page Apparence / Positions en faisans un cliquer glisser, les changements ne veulent tout simplement pas se prendre. Quand j'actualise tous les changements sont perdu. Version Prestashop : 1.7.7.6 Si quelqu'un aurait des pistes sur comment résoudre le problème, je me tiens disponible pour donner davantage d'informations. Cordialement,
-
Hola a todos. He estado buscando y no encuentro este tema. ¿Es posible que el apartado filtros aparezca en el apartado superior con un desplegable? existe algún modulo que haga esto? (he hecho un pequeño apaño con el paint) ¿Es esto posible? o tenemos que adentrarnos en el código y modificarlos nosotros? Muchas gracias
-
Bonjour, Est-ce qu'une bonne âme saurait me renseigner. J'ai une version Prestashop 1.7.5.2. Je réorganise l'affichage de mes produits par catégorie (sous-catégorie) sans problème cela fonctionne. Mais en ce qui concerne la catégorie principale (ici LES PARFUMS D'ÉVEIL), celle qui comprend les autres catégories (sous-catégorie), cela ne fonctionne pas. Malgré une réorganisation, malgré une configuration de Pagination en Tri par défaut "Position dans la catégorie"... qqch m'échappe... y a-t-il un autre endroit où l'on peut effectuer se paramétrage ???
-
Bonjour, Dans le BO, dans catégories, lorsque je veux changer la position des catégories (remonter ou descendre une catégorie ou une sous catégorie), et bien, parfois, cela fonctionne, parfois, cela ne fonctionne pas. Ce qui est bizarre, c'est que dans "position", au départ, ils sont tous sur "1", et lorsque je bouge les catégories de place, j'ai des positions de 1, 2, 3, 4..., et puis lorsque j'actualise ma page, j'ai des numéros de positions identiques (plusieurs 1, un peu de 2...) et l'ordre que je souhaité n'a pas été conservé. Pour info, j'étais sous prestashop 1.7.4.4, je suis passé sous 1.7.5.1, mais cela n'a pas changé... J'ai réinstallé mon presta en utilisant un module d'import (articles, catégories, clients, commandes)... Si quelqu'un a une idée... Merci
- 3 replies
-
- position
- catégories
-
(and 1 more)
Tagged with:
-
Good morning i would like to change the position of product reference div class and place it below the product price. I have installed a custom theme and i am running 1.7.5 prestashop version. Where can i make the change and which file i can modify? Best regards
- 2 replies
-
- product reference
- theme modification
-
(and 3 more)
Tagged with:
-
Hello, I'd like to make some few modifications on the header of my website. I have to idea how to do it (already tried hook / unhook but it never works correctly) Prestashop 1.7.5.1 Theme : warehouse 4.2.1 Here enclosed the image of what i want to do Thanks
-
I'm trying to reorder items in my categories, but when I drag and drop them into place in my back office, when I refresh, they jump right back to the original position.
-
Hello, My friend asked me to help him fix some problem he have on his website.. http://saunovyraj.sk/ but probelm is that i work with Wordpress, not Prestashop, so i dont know how to work with Prestashop and it will take me hours and hours of time to find some specific info about my problem.. and during work with Wordpress i discovered the power of forums so i have these two questions (you will better understand if you look on photos i uploaded): 1. Products with longer name, the price positon is under border of product box and it looks so bad and not very unattractive for customers 2. I dont know how does lists or cataloges of products in Prestashop works so i want ask you how can i change font and color of text because some basic info about it, for example product sorting, number of page or number of products on one page... look in the pictures If someone can help me i will be very thankful! because i dont want to waste my time during school and sorry for english i know i am not very good Matus
-
After some changes the header of my shop looks like: ========================================================== (Quick search) (login) (Cart) (Shop Logo ) ========================================================== I want put the Shop Logo as showed belowe as belowe: ========================================================== (Shop Logo ) (Quick search) (login) (Cart) ========================================================== How can I make this change ? Probably I've to work on tpl and css files but I don't know where. tks in advange
-
Hello Devs, How to change position of product in category to the end using PHP? Is there is any built in php solution or should I write my own? EDIT: I wrote down something like this: $nafo_products = Db::getInstance()->executeS(' SELECT `id_product` FROM `' . _DB_PREFIX_ . 'product` WHERE `available_for_order` = 0 AND `active` = 1 '); $nafo_products = array_column($nafo_products, 'id_product'); foreach ($nafo_products as $id_product) { $product_categories = Product::getProductCategories((int)$id_product); foreach ($product_categories as $id_category) { $last_position = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' SELECT MAX(position) FROM ' . _DB_PREFIX_ . 'category_product WHERE id_category = ' . (int)$id_category . ' ', true); $current_position = (int)Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' SELECT position FROM ' . _DB_PREFIX_ . 'category_product WHERE id_category = ' . (int)$id_category . ' AND id_product = ' . (int)$id_product . ' '); // To improve performance (do not move products already moved) $counted_already_moved = count(Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT p.id_product FROM ' . _DB_PREFIX_ . 'product p LEFT JOIN ' . _DB_PREFIX_ . 'category_product cp ON (p.id_product = cp.id_product) WHERE cp.id_category = '.(int)$id_category.' AND p.active = 1 AND p.available_for_order = 0 ')); if (($last_position - $current_position - $counted_already_moved) >= 0 ){ if (Product::setProductPositionInCategory($id_product, $id_category, $last_position)){ echo 'Moved ('.$id_product.') ' . Product::getProductName($id_product) . ' to the end of category' . $id_category . '.<br>'; } } else { echo 'Product ('.$id_product.') ' . Product::getProductName($id_product) . ' is already at the end of ' . $id_category . ' <br>'; } } } And in Product.php override add this function which is not only usefull to move product to the end but to any position given. It is static remake setWsProductPosition which is only working for default id category. public static function setProductPositionInCategory($id_product, $id_category, $position) { if ($position < 0) return false; $current_position = (int)Db::getInstance()->getvalue(' SELECT position FROM ' . _DB_PREFIX_ . 'category_product WHERE id_category = ' . (int)$id_category . ' AND id_product = ' . (int)$id_product . ' '); $products_in_category = Db::getInstance()->executeS(' SELECT id_product FROM '._DB_PREFIX_.'category_product WHERE id_category = '. (int) $id_category.' ORDER BY position '); if ($current_position == $position || ($position + 1) > count($products_in_category)) return false; $products_in_category = array_column($products_in_category, 'id_product'); if ($current_position && isset($products_in_category[$current_position])) { $save = $products_in_category[$current_position]; unset($products_in_category[$current_position]); array_splice($products_in_category, (int)$position, 0, $save); } foreach ($products_in_category as $new_position => $cat_id_product) { Db::getInstance()->update('category_product', array( 'position' => $new_position, ), '`id_category` = '.(int)$id_category.' AND `id_product` = '.(int)$cat_id_product); } return true; } This basically takes all of the not available for sale products and move them into the last position of each category they belongs. Put in cron.
-
- programming
- category
-
(and 2 more)
Tagged with:
-
Léger, facile à mettre en place et gratuit, Background Manager est fait pour vous C'est ennuyeux de changer son fond d'écran à chaque nouvel évènement de l'année... j'ai donc développé ce module afin de gagner du temps. La code est basic mais donne la possibilité de changer de fond d'écran, de modifier sa position, sa répétition ou encore la couleur de la page de votre site. La traduction via l'admin est possible mais aucun fichier de langue n'est disponible dans le pack. Développé sur PrestaShop™ 1.5.4.1. ------------------------------------------------------------------------------------------------------------------------------ Light, easy and free to use, the background manager is for you It's so boring to change background's elements everytime (christmas, easter etc.) so I have developped this module to go faster. The code is basic but give you everything to manage your background css. The translation is enabled from the administration. Based on PrestaShop™ 1.5.4.1. ------------------------------------------------------------------------------------------------------------------------------ Aperçu / Preview backgroundmanager_1.1.zip
- 81 replies
-
- 4
-
- prestashop
- easy
-
(and 6 more)
Tagged with:
-
Bug suite à un module de contact greffé au mauvais endroit.
Sofia posted a topic in Rapports de bugs
Bonjour à tous, Je n'ai plus de visibilité sur mon BO depuis que j'ai fais une mauvaise manipulation lorsque j'ai voulu greffer le module contact. Je l'ai mal encontreusement greffé sur un emplacement Admin et depuis, j'ai accès à mon BO mais je ne peux plus rien voir. Cfr printscreen ci-joint. Je me dis que je dois le dégreffer mais j'ai toute les peines du monde à trouver comment faire pour dégreffer un module depuis le server FTP. Voici l'erreur qui m'est renvoyé lors du debug: Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isLogged() on null in /home/safessen/public_html/modules/contactform/contactform.php:354 Stack trace: #0 /home/safessen/public_html/modules/contactform/contactform.php(298): Contactform->getTemplateVarOrders() #1 /home/safessen/public_html/modules/contactform/contactform.php(247): Contactform->getWidgetVariables('displayAdminAft...', Array) #2 /home/safessen/public_html/classes/Hook.php(929): Contactform->renderWidget('displayAdminAft...', Array) #3 /home/safessen/public_html/classes/Hook.php(881): HookCore::coreRenderWidget(Object(Contactform), 'displayAdminAft...', Array) #4 /home/safessen/public_html/config/smarty.config.inc.php(168): HookCore::exec('displayAdminAft...', Array, NULL) #5 /home/safessen/public_html/classes/Smarty/SmartyLazyRegister.php(83): smartyHook(Array, Object(Smarty_Internal_Template)) #6 /home/safessen/public_html/app/cache/prod/smarty/compile/5d/f2/c8/5df2c893923eaa2bed8674d13dd99b895db97949.fil in /home/safessen/public_html/app/bootstrap.php.cache on line 3231 -
Good afternoon, we have developed an ecommerce using Prestashop 1.6. We are using Prestashop webservice to synchronize products through a connector with an erp. We have the following problem: the products are correctly synchronized We change the category products positions from backoffice the products are shown correctly in frontoffice Then we synchronize products again and the products positions are lost How could we modiy Prestashop webservice so that it doesn't update the position field in ps_category_product table? Thank you very much for your help
-
- category
- webservice
-
(and 2 more)
Tagged with: