Questions tagged [magento-catalog]
Denotes questions regarding Magento Catalog module
22
questions
1
vote
0
answers
28
views
How to apply catalog price rule on out of stock product?
here we have created a custom catalog price rule for out of stock products, but it didn't apply. You can get reference using the below image. I want to display the product price as 50 rupees when ...
0
votes
1
answer
109
views
Error creating product after 2.4.2-p1 to 2.4.3 upgrade
I've upgraded Magento on my dev. site from 2.4.2-p1 to 2.4.3, which went smoothly, but if I click 'Add Product' I get the following error:
SQLSTATE[42000]: Syntax error or access violation: 1064 You ...
3
votes
1
answer
787
views
Magento2 Append a css class to a product detail page if a special parameter is in the URL
Here's what I'm trying to achieve.
When a product page URL has a parameter added to it like so: https://example.com/This-THI08.html?specialview=1
I'm trying to append a “specialview” class to the ...
0
votes
1
answer
57
views
Can we overwrite list.phtml and catalog_category_view in multiple modules?
Well I am vcery new to Magento,
I have a module where I have already overwritten catalog_category_view.xml and list.phtml can I use the same file with other changes in other modules if Yes how?
1
vote
1
answer
938
views
How to show the product attribute in the product listing page Magento 2.3
How to show the product attribute in the Product listing page i had used the helper in Magento_Catalog (Magento_Catalog/templates/product/list.phtml) but it gives the value of the product attribute ...
2
votes
3
answers
144
views
What are other possible functions i can access
I created placed custom html in Magento_Catalog>template>product>view>details.phtml file in Magento_Catalog module and added below code to get current product ID and name
$objectManager = ...
1
vote
4
answers
561
views
How to Check a catagory is Anchored or non Anchored Programmatically in Magento 2
I want to check whether my current category in Anchored in Magneto 2
4
votes
0
answers
479
views
Magento 2: add specific option for widget
I want to add specific widgets in admin panel , but I'd like to duplicate it.
for instance:
app/code/my/module-links/etc/adminhtml/system.xml
<?xml version="1.0"?>
<config xmlns:xsi=...
2
votes
1
answer
524
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 ...
0
votes
2
answers
1k
views
Invalid template file: 'Magento_Catalog::catalog/wysiwyg/js.phtml' in module: In ubundu 16.04 and Magento 2.3.0
1 exception(s): Exception #0
(Magento\Framework\Exception\ValidatorException): Invalid template
file: 'Magento_Catalog::catalog/wysiwyg/js.phtml' in module:
'Magento_Backend' block's name: '...
1
vote
1
answer
1k
views
Catalog Input Type for Store Owner accepts numbers
I would like to create a new input type in Catalog Input Type for Store Owner.
0
votes
1
answer
150
views
How to use $_product on Magento Catalog template pages
I have overridden the Magento catalog phtml file in our store's custom template to display a link to a custom instructional page that we created.
Problem is, I only want this link to display on ...
1
vote
3
answers
3k
views
Override Magento\Catalog\Block\Product\View\Options\Type\Select
SOLVED :: 15.9.17 (the following code works on a fresh Magento 2.1.7 installation; tested on Luma theme)
I am struggling with the override of this particular core block
Magento\Catalog\Block\...
2
votes
1
answer
788
views
SKU non-Default label is not reflected on the frontend in Magento 2
I am trying to change the SKU attribute label from "SKU" to "Item" on the Product Page on the storefront by adding a label to the attribute in Admin Panel by going to
Stores > Attributes > Product
...
1
vote
0
answers
636
views
Magento 2: Why the product not show in category page (reindex)?
I have well mastered Magento 1.x, however, I'm starting on 2.1.7 and what caused me confusion is the index manager, since I created a product and after saving it does not appear on the page of the ...
0
votes
1
answer
313
views
multiple catalog rules with same price, calculate wrong final price
I have multiple catalog price rules on same product with same price but different priority, so i suppose that system will apply the lowest (0 is lowest) priority rule to calculate final price.
Rule A:...
3
votes
1
answer
3k
views
Magento 2 : get product custom option base on sku
I am working on magento2 and i am try to access product all custom option. For now i have added to text box and for access custom option bellow code i have use.
$objectManager = \Magento\...
2
votes
0
answers
2k
views
Magento 2: Product repository's getList() method doesn't retrieve recent items
I have a model where I look for products from the database, filtered by a custom attribute:
/**
* @var ProductRepositoryInterface
*/
protected $_productRepository;
/**
* @var ...
3
votes
4
answers
7k
views
Invalid template file error in Magento 2
In my custom theme, I added custom template for which I am getting invalid template file error in system.log. My xml file loctaion:
app/design/frontend/{vendor}/{theme}/Magento_catalog/layout/...
1
vote
7
answers
14k
views
Magento 2.0 - Display custom attribute on product listing page
Default catalog_product_prices.xml
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<layout xmlns:xsi="...
0
votes
1
answer
34
views
category is showing different in home page and different in product page
**i have problem with catalog my root catergory is home as you can see in screen 1, and the sub category is clothes, i save settings clear cache, then load the page the out put is screen 2, **
...
2
votes
0
answers
355
views
Magento EE 1.14.2.0 Indexing Issue / Database Repair Tool failure "You have missed trigger(s)"
Magento Details:
Magento EE 1.14.2.0
12 Websites
80 Store Groups
160 Stores
3500 Categories
15k products
75 Customer Groups
Mysql 5.5
php-fpm 5.6
My import process has always worked successfully ...