Jump to content

Search the Community

Showing results for tags 'POSITION'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



  1. I have a 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 )
  2. 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.
  3. 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.
  4. 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 Thanks
  5. 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
  6. 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.
  7. 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
  8. 🤝 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 Merci pour vos réponse 🙂 Bonne journée https://www.tableaux-impression-deco.fr
  9. 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 ?
  10. Bonjour, Je suis en train de développer un site avec prestashop 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 !
  11. 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 : Si quelqu'un aurait des pistes sur comment résoudre le problème, je me tiens disponible pour donner davantage d'informations. Cordialement,
  12. 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
  13. Bonjour, Est-ce qu'une bonne âme saurait me renseigner. J'ai une version Prestashop 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 ???
  14. 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, je suis passé sous, 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
  15. 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
  16. 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 Theme : warehouse 4.2.1 Here enclosed the image of what i want to do Thanks
  17. Hi, I have prestashop 1.7, I want to change the position of the price in the product details. I have made some tests with chrome and the repositions of DIV. Am i suppose to change the product.tpl? I can not find the way to change position of the element.
  18. 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.
  19. 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
  20. 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
  21. 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.
  22. 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™ ------------------------------------------------------------------------------------------------------------------------------ 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™ ------------------------------------------------------------------------------------------------------------------------------ Aperçu / Preview backgroundmanager_1.1.zip
  23. 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
  24. 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
  25. Buenas tardes, tenemos un ecommerce desarrollado con Prestashop 1.6. Dicho ecommerce utiliza el webservice de Prestashop para sincronizar productos a través de un conector con un erp. El problema que se nos presenta es el siguiente: los productos se sincronizan correctamente desde backoffice cambiamos la posición de los productos dentro de una categoría los productos se posicionan en el front de manera correcta volvemos a sincronizar productos y se pierden las posiciones de los productos dentro de una categoría que habíamos definido desde backoffice ¿De qué manera se podría modificar el webservice de Prestashop para que no actualice el campo position de la tabla ps_category_product? Muchas gracias y un saludo
  • Create New...