Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [category-view]

The tag has no usage guidance, but it has a tag wiki.

0
votes
2answers
43 views

How to pass added custom “key=>value” into getCollection()?

On product lisitng page i want to get one more parameter "latitude" for all product,how can i achieve? Here is my code:- public function setCollection($collection) { $this->...
0
votes
0answers
17 views

For heavier category(having 2000 products) ,category page takes 4-5 min to load, while for a small category( few products) it's working properly

I've used following two joins on product listing page due to which heavier category page taking 4-5 minutes to load:- Class:- vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php ...
0
votes
0answers
20 views

Magento 2.3 how to add cms static block in footer on last page of product listing

I would like to display a static Block at the footer on last page of category view page. Using Magento 2.3. Tried with productlist.php but not working as expected. Using below references. How do I ...
2
votes
1answer
24 views

Magento 2: Get recently reviewed Products on Category Page

On the product view page the reviews get loaded via the following code: $_items = $block->getReviewsCollection()->getItems(); This is what the getReviewsCollection function looks like: ...
2
votes
1answer
30 views

filtering product collection on category page based on custom customer attribute

I've been struggling with Magento\Catalog\Block\Product\ListProduct::initializeProductCollection() from a few days. I need to filter category product collection based on user's location. So ...
2
votes
2answers
64 views

Move category title above category page image

I want to move the category title to this image: Is it possible to do it with the layout.xml or is CSS needed to move it there?
1
vote
1answer
34 views

magento 2 Deepest Category product list page gives Error 500. Which files to inspect?

The site I'm working on the lowest category page (suppose to be list view) give the error 500. I'm not quite remember file I edited. search result also return the same error. Which files should I ...
1
vote
1answer
54 views

How to remove SKU from product name in search results?

How can I remove SKU from product name in search results? In category view, product name is without SKU but when I search for some product, the results is including SKU in product name.
0
votes
1answer
43 views

Attribute not showing category

I am using Magento 2.2 for my store. I have created a custom attribute. I have modified list.phtml and catalog_product_view.xml and I have created a myatrribute.phtml. I have also enabled visible in ...
0
votes
1answer
54 views

How can I edit files like frontend/…/category/view.phtml?

I have been trying to edit some files from the frontend folder. On this folder I have the following folders: base, default, rwd and typologancee. I have to create a specific filter which is going ...
0
votes
0answers
35 views

catalog_category_view.xml just target no anchor pages

I'm trying to create a different layout for non anchor category pages in Magento 2.3 (1 column, big masthead category image, move page title and breadcrumbs down). Where should I put these changes so ...
0
votes
1answer
28 views

catalog_product_view.xml is loading from vendor folder, instead of theme folder

I'm trying to remove the category title & category images from category view page. However, when i edit the catalog_product_view.xml from the (Infortis Ultimo) theme folder app/design/frontend/...
0
votes
1answer
38 views

Magento 2, Change On click instead of 'hover' for menu

In Magento 2 for the main menu, they dropdown with hover. How to change the dropdown on click instead of 'hover'.
0
votes
2answers
89 views

Magento 2.2.6 - New categories not showing products

After created new category products not showing, it shows blank page with no error. But for other categories products shows. Any help should be appreciated.
0
votes
0answers
13 views

Catalog Category Changes are Not reflected in Overidden File

I am using the barbour theme and i have created a child theme for the same.The issue i am having is that by default for category pages,the products are shown with a sidebar so i have removed that and ...
0
votes
0answers
50 views

Product Prices Not Showing On Category Pages

I can't seem to find anyone else that has had this problem. But I noticed my category pages are not showing the product prices. <?php echo $this->getPriceHtml($_product, true) ?> works on ...
2
votes
0answers
102 views

Category page, static block and layered navigation

On Magento 1.9 I have a category page with produts and static block. For static block I used a block type="catalog/product_list with a custom template. In the html template I loaded a custom ...
3
votes
2answers
38 views

Is there a faster way for me to show 'Only X Remaining' on a category page?

1.9.3.1 - My catalog setup is using configurable products with associated simple products. My category pages show the configurable and I'd like for the 'Add to Cart' text to read 'Only X Left' if all ...
1
vote
0answers
30 views

Removed products from a category but still showing

I removed a bunch of products from a category and it's still showing in the webshop. What I've done is: Reindexed all indexes Cleared all caches Another problem that keeps happening is that I can ...
0
votes
0answers
20 views

how customise view per page functionality in magento2 category view page?

I want to dropcick select box in magento2 on category view page in place of view per page what should I have to change to limiter.phtml?
0
votes
1answer
116 views

Rearrange category page in order: cat image, title, description and then products

I'm using Magetique template for Magento and I'm changing the 'listing-layout-1.xml' file. I need it to look like this Although, right now it's looking like this: And the title isn't even ...
2
votes
0answers
98 views

Adding scrollbar in category dropdown

I add 1 category name Category, and add sub categories to it. But, because there's too much sub categories, i need to scroll down the page first to see the full list of the sub categories. So my plan ...
1
vote
0answers
142 views

Product list page Toolbar issue

I have issure regarding category page. While i click on mode switcher of grid view to list view its not working. and also try to change Sort by value and Show number of product its not working. ...
0
votes
2answers
1k views

Magento 2: remove the category image and description from the corresponding XML file

I am working on a Magento 2.1.7 shop and I have created a child-theme of Magento Blank. I need to eliminate the category image and description, more exactly the <div class="category-view"><!...
4
votes
1answer
314 views

Layered Navigation not showing the right options after overriding product list block

I've successfully override productList block to show my custom filtered product collection like this: di.xml <preference for="\Magento\Catalog\Block\Product\ListProduct" type="\Vendor\Module\...
2
votes
0answers
167 views

Show customer wishlist collection like in category view page

I want to show the customer wish list products to another customer with the layout like in category view page which include the layered navigation, toolbar option, and navigation page. Is there a ...
0
votes
1answer
61 views

Magento : Check if two conditions are true (category view)

I am trying to check if two conditions are true in the Magento category view file. Specifically if parent id = 1 and if category name = Nike. Can someone please suggest how I can update the code ...
0
votes
1answer
195 views

url_path is missing for products in category-view

product attribute url_path is missing for all products in category view, but it is present in product lists/grids. This has an effect on review links, they have empty urls. I can't get my head ...
2
votes
4answers
5k views

Magento 2 How to get first level parent category of current Category?

I want to get the first level parent category of the current category. I have a code but it gets only the parent of the current category: protected $_registry; public function __construct( ...
0
votes
2answers
91 views

Magento 1 : Category page not shown in admin

On the Magento-Dashboard under Catalog > Manage Categories is shown only the left colom with the already created categories. But I can't create new one or modify the existing ones. Take a look at the ...
1
vote
0answers
47 views

Magento sub-categories listing on category pages cache issue

I have the following static block to display my sub-categories in the categories page: <div class="category-products2"> <ul class="products-grid subGrid"> <?php $_categories=$this->...
1
vote
0answers
126 views

Sidebar next to CMS block on category page

I'm somewhat new to Magento 2 but most of it is going just fine. There is a minor issue I'm experiencing and I can't seem to figure out how I can fix this. I've added a CMS block to a category ...
2
votes
1answer
589 views

Magento 2 remove breadcrumb empty title category view

I am developing a custom theme which never displays the breadcrumb, so I removed it in the default.xml: <referenceBlock name="breadcrumbs" remove="true" /> This caused that the category view ...
1
vote
0answers
205 views

Magento 1 category page show subcategories before products

I have a magento 1 website and I want to display subcategories before products on the category page. In the admin page -> on Catalog, Manage Categories -> Display Settings -> Display Mode is set ...
0
votes
2answers
533 views

How to remove the bottom toolbar using css in mobile view?

In product listing page there are two toolbars one at the top of list as shown below: another toolbar at bottom of list as shown below: Both of them are has outer div as: <div class="toolbar ...
1
vote
1answer
2k views

Magento 2: How to add custom form on category page?

I am using Magento 2.1 and I am trying to add one custom form in catalog page. I override the catalog_category_view to my custom module and use this code <referenceContainer name="columns.top"&...
1
vote
1answer
117 views

All products and categories side-menu on one page

I want to display all my store products on one page, with a side menu to 'filter' on the available categories. Basicly the same view as a single categorie product list, but then with all products (of ...
0
votes
1answer
248 views

view custom message in product page by category id

How do I display a message (ex. AVAILABLE IN 30 DAY) in product page only for a specific category id (98, 100 and 101)? I've created <?php if($_product->isSaleable()): ?> <div class="...
0
votes
0answers
527 views

Get sub-categories listing of parent in Magento 2 CMS block

I want to get a list of a parent categories sub-categories, their name, link and image. An example of what I require is below. I know this can be done using object manager but I understand that is ...
0
votes
2answers
1k views

Magento 2: Left Category Sidebar from Sebwite (copy of question)

I am trying to create left sidebar category navigation for my website. But it shows only default category. It does not show any other subcategories. I activated all category is_anchor, and re-...
0
votes
1answer
856 views

Magento 2 customizing category page

I want to customize the category page and I am using the below file path: app\design\frontend\Vendor\Theme\Magento_Catalog\layout\catalog_category_view.xml Below is xml file code: <page xmlns:...
0
votes
0answers
20 views

Magento 2 sometimes don't show items in the second category

I have two basic categories (woman/man) with many subcategories and products. Sometimes, just sometimes the products in the second category "man" don't appear in the frontend. In the backend they are ...
3
votes
1answer
1k views

Magento 2 : Sub Categories not Showing in Layared Navigation

I have install Magento 2.1.3 with Porto Theme. In category page, Few sub category display proper with products count and Faw doesn't appare/display but it has product. I tried to disable all custom ...
1
vote
1answer
3k views

Magento 2 - Show product options and attributes in categories

I need some help to display products custom options and attributes in category view, I can't find any guide to do this. What I want to do is that if a simple product has custom options to display a ...
1
vote
0answers
33 views

Magento 2: Display specific categories to specific usergroups

Sorry guys this might be bit silly question but I am new in Magento. I am trying to display specific categories according to specific Usergroups: For example: I have usergroups "...
2
votes
1answer
835 views

Magento 2 : How to write controller to load category page?

I have customized a Layered navigation modules in Magento 2. However, I can't write a controller to get all content of category page and load into controller page(localhost/magento2/layerednavigation/...
1
vote
2answers
2k views

Execute JavaScript code after swatches are displayed in category view

I'm trying to trigger custom event whenever Magento displays the product swatches in category view. It looks like Magento uses ajax to load these swatches, they are not displayed on page load, they "...
0
votes
3answers
3k views

Magento 2: How to Get Subcategory Image in Category Page?

I want to display subcategory in category page with the image. I've to put below code get only subcategory name not getting the image. How to get subcategory image in category page? if($this->...