fitin Posted August 26, 2017 Share Posted August 26, 2017 (edited) Hello, i have problem with homepage which is my category page. After enter at https://www.fit-in.pl i got products and thats allright but problem is with sorting my products on homepage. When i choose in options sort by alphabetic it works only for all other pages like https://fit-in.pl/54-mezczyzna ; https://fit-in.pl/36-kobieta ; https://fit-in.pl/21-start . Is there any way to get it works at my homepage? If its impossible, how to change my homepage to this one > https://fit-in.pl/21-start I dont know if i wrote this good and you will know what i need. I got one more question how to change quantity of my products. There are 3 visible products on page but i want 4. Thanks guys for help. Edited August 26, 2017 by fitin (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted August 27, 2017 Share Posted August 27, 2017 (edited) You have to manually sort the products in your top level category (root or home). The home featured module does have its own sorting.Use backoffice - catalog - products.Then select filter for top level category. Sort by position. Use drag and drop on position column to re-areange. See post #4 Edited August 27, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
fitin Posted August 27, 2017 Author Share Posted August 27, 2017 It's not working i change positions and it says that is saved but on my shop it isnt change. Link to comment Share on other sites More sharing options...
Scully Posted August 27, 2017 Share Posted August 27, 2017 Ok, I would guess you are NOT using a standard theme? My information might be worthless if this is the case. To mention prestashop version AND theme used is always a good practice to avoid unnecessary questions and answers. Link to comment Share on other sites More sharing options...
fitin Posted August 27, 2017 Author Share Posted August 27, 2017 Okey sorry my bad. Prestashop is 1.6.1.15 and my theme is pro_buisness. https://themeforest.net/item/pro-business-multipurpose-prestashop-theme/19551547 Link to comment Share on other sites More sharing options...
Scully Posted August 27, 2017 Share Posted August 27, 2017 (edited) My initial post assumed you are using the module homefeatured for the homepage. But it doesn't seem so after more investigation. Usually sort settings should be effective in any category list. Long story in short: I would ask the theme deleloper. It's always hard to guess how a theme is working in detail and hence a solution might be depending on your setup. And one hint: Your title refers to "Product page" but the following post does not refer to products but categories insted. Your initial post is very "messy" and badly formatted, the links look very confusing. Try to be a bit more careful with postings. It might help the helpers. Edited August 27, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
fitin Posted August 27, 2017 Author Share Posted August 27, 2017 Ok, i solved it. I change $orderby in file indexcontroller.php and its works. Thanks for help. Now i want to know how to change quantity of products in my homepage now i can see 3 but i want 4. Link to comment Share on other sites More sharing options...
Scully Posted August 27, 2017 Share Posted August 27, 2017 Now i want to know how to change quantity of products in my homepage now i can see 3 but i want 4. => not understood. Link to comment Share on other sites More sharing options...
fitin Posted August 27, 2017 Author Share Posted August 27, 2017 I dont know how to say it in english. Grid maybe. I got 21 products per site and there are like 3 in every line. I want to make 4 in line. Is that clear? Link to comment Share on other sites More sharing options...
Scully Posted August 27, 2017 Share Posted August 27, 2017 (edited) Grid is correct but Quantity as term is rubbish in this context. You have to consider that your theme displays between 1 and 3 or eventually also 4 columns with products. It all depends on the screen size. On my 1200 x 1920 pixel screen I can see 3 columns. With current setup you wouln't have enough space for 4. If you want to change you have to adapat the corresponding CSS file or files. Yes, it might concern more than one file. The most important might be product.css somewhere in your themes directory. And the change might not be easy because several items in its size or font might needed to change. Edited August 27, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
fitin Posted August 27, 2017 Author Share Posted August 27, 2017 In file product-list.tpl i got like this: {if isset($products) && $products} {*define number of products per line in other page for desktop*} {if $page_name !='product'} {assign var='nbItemsPerLine' value=3} {assign var='nbItemsPerLineTablet' value=2} {assign var='nbItemsPerLineMobile' value=2} {else} {assign var='nbItemsPerLine' value=4} {assign var='nbItemsPerLineTablet' value=4} {assign var='nbItemsPerLineMobile' value=2} {/if} {*define numbers of product per line in other page for tablet*} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet} <!-- Products list --> <ul{if isset($id) && $id} id="{$id}"{/if} class="product_list grid row{if isset($class) && $class} {$class}{/if}"> {assign var='is' value=0} {foreach from=$products item=product name=products} {if true || isset($ybcDev) && $ybcDev && isset($tc_dev_mode) && $tc_dev_mode && isset($tc_layout_products) && $tc_layout_products && in_array($product.id_product,$tc_layout_products) || !isset($ybcDev) || isset($ybcDev) && !$ybcDev || !isset($tc_layout_products) || isset($tc_layout_products) && !$tc_layout_products} {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if} {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if} {assign var='is' value=$is+1} maybe i need to change something here? Link to comment Share on other sites More sharing options...
Scully Posted August 27, 2017 Share Posted August 27, 2017 On my screen it doesn't have space for 4 columns. But try it to change. Link to comment Share on other sites More sharing options...
fitin Posted August 27, 2017 Author Share Posted August 27, 2017 U are right i changed it and it dont looks good, thanks for all very much. Link to comment Share on other sites More sharing options...
Scully Posted August 27, 2017 Share Posted August 27, 2017 You're welcome. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now