Search the Community
Showing results for tags 'number of products'.
-
Hi First time looking for prestashop and it seems very interesting. (My perspective is to download, modify and sell to my customers~) I have two questions, please: 1. Is it acceptable to remove all prestashop logos, footers, references, etc from font and back ends?? 2. IS it possible to see for each product the number of items already ordered, avoiding to open the cart to see that info? Thanks a lot Imo
-
Hi, I'm trying to add a piece of code to my homepage to display a list of all the categories and under each category it's subcategories with a number at side with the amount of products in it. Something like this: - Category 1 - - Sub category (42) - - Sub category (13) - Category 3 - - Sub category (17) - - Sub category (33) Although it may be simple for some, I've been searching for 2 ways for a way to do it, but without result. Tried modifying the CategoryController.php override but without success (no result in homepage, but then I realized the Category page was actually crashing). The code I have now shows the main categories, but not the sub categories. {foreach from=$categories item=subcategory name=homeCategories} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width|escape:'htmlall':'UTF-8'}" height="{$mediumSize.height|escape:'htmlall':'UTF-8'}"/> {else} <img class="replace-2x" src="{$img_cat_dir|escape:'htmlall':'UTF-8'}{$lang_iso|escape:'htmlall':'UTF-8'}-default-medium_default.jpg" alt="" width="{$mediumSize.width|escape:'htmlall':'UTF-8'}" height="{$mediumSize.height|escape:'htmlall':'UTF-8'}"/> {/if} </a> </div> <h5> <a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'}</a> </h5> <ul class="sub-menu"> <!-- It loops with a foreach --> <li><a href="#">Sub-category <span class="sub-counter">60 (number of products in this subcategory)</span></a></li> </ul> </li> {/foreach} Any kind sould to help me out, pretty please? Thanks in advance. Prestashop 1.6.1.14
-
I don't know if it's according to community policy but I am going to post a question then answer myself. I am doing it because I found it useful and got no answer for this on other forum posts. Sorry, please delete if against community standards. I've installed prestashop 1.6 on my Bluehost.com server. I need to display 3 new products per row and a left column for categories list. I need all this content in tabs but after the homepage slider. There are by default 4 products per row on homepage and no left/right sidebar so I wanted to achieve both of these requirements. Attached is the image/screenshot that I wanted to achieve. Look for the next post for solution.
- 1 reply
-
- new products
- increase
-
(and 4 more)
Tagged with:
-
Hi all, I have a challenge with the template and I have tried to resolve it through forum search but I am lost. When someone clicks a category or searches a product they see the results in the grid view with 3 products on the first row, then 1 product on the next row and then 3 on the following and then the same 3 -1 all the way down. Anyone experienced this problem and can give me some advice on how to fix?
-
Hello everyone, Can I get number of products in category on product page, and how can I do it?
- 2 replies
-
- number products
- category on product page
-
(and 1 more)
Tagged with:
-
Hi, I am facing the here below problem under Prestashop 1.5.6.0 In the control panel, there are two ways to display the products belonging to one category First way : Catalog > Products In the field "Category" (middle of the page), I enter the category name. Then, I click on the "Filter" button on the right side of the screen The product list is displayed Unfortunately, the number of products displayed is lower (and for some categories, much lower) than the real number. Second way : Catalog > Products Check "Filter by category" on the left side of the screen Then, I check the desired category The right list and number of products are displayed Thank you in advance for any help in this matter Patrick
-
- category
- number of products
-
(and 1 more)
Tagged with:
-
Hi, . In the back-end, I change the 10 per default show product per page from 10 to 12. 12 is now showing in the dropdown menu with 10, 20 and 50. Now I'd like to know where I can change these number of products 10, 20 and 50. I think it's in the core but where ? Thanks
-
Hello, I am using PS 1.5.4.1 default theme, and I am trying to add "Found xxx Results" in the "content_sortPagiBar" section of the category and subcategory pages. I have tried the solution propsed here. But it did not work for me. Instead of getting the number of prodcuts in my current category, I get '6', which probably corresponds to one of the nested subcategories which has 6 products. Any idea on how I can acheive this? (on a similar topic, any idea how to get the number of subcategories displayed, if any) Thank you
- 3 replies
-
- number of products
- display
-
(and 2 more)
Tagged with:
-
Hi all, I am using Prestashop version 1.5.3.1. I have been searching and implementing code from topics on here to try and show the number of products in my sub-categories but I just cannot get it working. There are a number of topics on here that I have followed, but the one that has got me closest to displaying anything relevant is when I added this line of code to /themes/default/category.tpl: <h3><a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> [{l s='%d products' sprintf=$subcategory}] This line of code outputs the ID of the subcategory but not the number of products e.g. 34 products. I am assuming that a function needs editing in one of the PHP files so that I can pass through the number of products in each subcategory, but I do not know how to do this. I have tried editing the code in the /modules/blockcategories/blockcategories.php files as suggested in a lot of topics, but I can't get it working. I don't even know if the file I am editing is passing through the information that I need to category.tpl ? I have seen this topic here: http://www.prestashop.com/forums/topic/190264-solved-show-number-of-products-next-to-categories/ but I think this applies to the category_tree_branch.tpl file. I require the number of products in the subcategories to be displayed in the cateogry.tpl file. Please can someone help me fix this? It is driving me slightly insane. Any help will be MUCH appreciated. Kind regards Jp
- 5 replies
-
- subcategory
- products
-
(and 1 more)
Tagged with:
-
I have a custom template called products-categories.tpl, listing all main subcategories, which link to subcategory page with list of products. I would like to show a number of products each subcategory has in this custom template, but I am not sure how to do this. There is a variable called $nb_products in CategoryController and the code for it is: $nbProducts = $this->category->getProducts(NULL, NULL, NULL, $this->orderBy, $this->orderWay, true); $this->pagination((int)$nbProducts); self::$smarty->assign('nb_products', (int)$nbProducts); $cat_products = $this->category->getProducts((int)(self::$cookie->id_lang), (int)($this->p), (int)($this->n), $this->orderBy, $this->orderWay); Anybody knows what code would I have to put in my custom template controller so that I could display a number of products next to each subcategory? Any help would be really appreciated.