Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
1
vote
0answers
25 views

Magento 2 - “url_key” Product Attribute, force as required and unique

Is it good practice to force the "url_key" product attribute to be both "required" and "unique" by default? update eav_attribute set is_required=1,is_unique=1 where attribute_code = "url_key"; As ...
0
votes
1answer
21 views

How to get Magento 2 product image on custom phtml by product id Without loading product collection

I need product image on custom phtml in magento 2. Product is collection is a array not object. I just want to product product_base_image , without loading product collection. I tried <?php ...
0
votes
2answers
416 views

How to get product image by product Id in magento2

I am not able to get the absolute path of image by product id in magento2. Can anybody help me? I am able to get media path so far by directoryList class by doing this $this->directory->...
1
vote
0answers
130 views

Override ImageFactory Block in Magento2

I am trying to override the way that the Images in the Catalog, Checkout and Cart are going to be loaded someway different then Magento does it by default. Thats why I'm trying to create a module ...
0
votes
2answers
30 views

how to get productId in sign up or sign in page when full page cache on in magento2?

I want to redirect page if customer come from product page ->sign up page i want redirect them after sign up on product page. But i am not getting product id on that page if full page cache is on in ...
0
votes
0answers
113 views

Magento 2 - How to get product custom option values in custom file?

I want to override custom options template file.I want to show static image with each option value. I just create a custom file in Catalog module but don't know how to achieve this task? app/design/...
4
votes
1answer
343 views

Magento 2 How to remove default website checkbox checked while add new product?

Magento 2.2.5. I have set up a multi website and it is working fine. My problem is when admin create any new product Product in website field default website selection checkbox is checked by default....
0
votes
0answers
805 views

Magento 2.2 Catalog Price Rule Wont Apply

I am using Magento 2.2. I have set Catalog Price Rule. I have saved and applied for all. I have cleared the cache. I have also Reindex all Magento 2 indexers using below commands: php bin/magento ...
0
votes
0answers
125 views

how to get custom attribute value for related products in product details page

I am overriding default related.phtml in custom theme Magento_Catalog but data is not showing properly.If Any One have idea please help me. <?php if ($currentProduct = $block->getProduct()) {...
1
vote
1answer
589 views

Magento 2: When use Flat Catalog Product it gives SQL error

When I am changed setting for Flat Catalog Product to Yes, it gives SQL error in magento 2. Stores >> Configuration >> Catalog >> Catalog Is this known bug in magento 2.2.6? I have done re-...
0
votes
1answer
227 views

additional catalog attributes not working in catalog_category_view

In my templates I want to have access to custom product attributes on the detail page, the cart and also the category list view. This can be (or should be) easily achieved by creating a Vendor/Module/...
1
vote
1answer
281 views

magento 2 move product_list_toolbar after category.cms or category.view.container

I like to move the product_list_toolbar element after the category.cms or category.view.container, for that have tried the following code <move element="product_list_toolbar" destination="category....
0
votes
2answers
778 views

How to remove white background from product images in Magento 2.2.6?

How to remove white background from product images in Magento 2.2.6? Please check this screenshort
0
votes
1answer
257 views

Magento 2 multistore product setup

I am using magento 2 , and i created many store and store view. i am getting trouble in setup like: 1. how to assign one product to multiple store and store view at the time of create product. 2. how ...
0
votes
1answer
839 views

Magento 2 Catalog price rule on special price

Currently Magento is using the special price if it is lower than the applied catalog price rule. If the catalog price rule makes the product cheaper than the special price, then the catalog price rule ...
1
vote
2answers
171 views

Magento 2: Cant get custom attribute when configured in catalog_attributes.xml file for mincart

I need to get a custom attribute value to Min cart, But I am missing some thing on the catalog_attributes.xml to get the attribute value. di.xml <?xml version="1.0" encoding="UTF-8"?> <...
0
votes
1answer
32 views

Display Catalog Info on page

Is it possible to display the Magento product catalog (just a select few columns) on a page on my company site? My company's Magento install is integrated with our ERP system so it shows real-time ...
0
votes
1answer
178 views

Magento 2 overwrite checkout.cart.item.renderers block

I tried to set a new template for checkout.cart.item.renderers block and i found some issue, beucause I didn't know that i have to overwrite separately each type of product. I will post my solution, ...
0
votes
2answers
194 views

Force login to catalog and product pages in magento 2 custom theme

I have found this module : https://github.com/bitExpert/magento2-force-login But this show errors in Frontend - 1 exception(s): Exception #0 (ReflectionException): Class BitExpert\...
0
votes
1answer
46 views

Staging environment to manage the catalog

I would like to be able to manage the catalog in a staging environment and make sure that in cron (or other way) the catalog (categories and products) synchronize from Staging to Production.
0
votes
1answer
201 views

How to add new field in product attribute options in Magento 2

I want to add custom field for attribute options in Magento 2 how can I do?
0
votes
1answer
70 views

Magento 1.9 Visibility : Orphaned

In one of the project i saw visibility as orphaned as far i know there is no by default functionality to set visibility as orphaned. I trying to know how this option is created because when we set a ...
1
vote
1answer
1k views

Magento 2 How to set product minimum quantity selected to minimum qty configured in the Advanced Inventory product level

If 5 is the minimum Qty on Advanced Inventory product level for a product then in Product detail page it should as 5 default selected. How can I achieve this.
1
vote
0answers
53 views

How to implement logic for the copy an attribute value to another attribute based on the attribute sets?

We have some attribute sets like BCDs, Polespears ...etc and respected attributes like bcds_color, polespears_color ..etc would like to copy the value from attribute set based to "ca_color" ...
0
votes
0answers
16 views

Ask if user want to add another product (up selling ?)

I have two issues : I need my user to add one product (1) on his cart. Then, when this product is added, I want to ask if the user wants to add another product (2) The product (2) is available only ...
0
votes
1answer
100 views

Programmaticaly use catalog permission based on user group

Is there a way to restrict catalog / product page based on user group (for example, if my user is in the group "A", he will see only product for the group "A") ? Ideally by avoiding paid extension if ...
3
votes
1answer
28 views

When To Use MultiStore Vs. Categories

I'm attempting to hide the "Add To Cart" button for specific stores currently and am having some issues with my lack of experience. It works in each individual store but not when using the search ...
1
vote
1answer
929 views

How to get product parent category id and category id separatly in magento 2.2.6 using product ID?

Problem definition: I have product under below category: Beauty --> Sun --> my-some-product-name. where 'Beauty' is root category and 'Sun' is the subcategory of 'Beauty'. Currently, I am ...
0
votes
1answer
127 views

How to show “out of stock” in ONE category only while hiding them from all other categories?

I am trying to display out of stock product in only one category. I have already change admin setting "display out of stock" - No any idea how to display it in one category.
2
votes
0answers
32 views

how I add category dropdwon with custom option in magento 2 [closed]

how I add category dropdwon with custom option in magento 2
1
vote
1answer
85 views

Magento 2.2.5 large multi-store catalog categories not updating

I have a drop down Make Model Year parts finder on my store's front end that uses a three-level category tree with 3,000 subcategories. The same tree is used across five stores with subcategories ...
1
vote
0answers
15 views

Add new column to individual options?

I try to add radio buttons to all individual options (Catalog -> Manage Articles -> Open a configurable article -> Individual Options) so that the backend user can pick which one he likes to be ...
2
votes
1answer
223 views

Group Collection to Filter Unique Products Based on a Specific Attribute

Scenario: A store catalog is populated with configurable products each having several children with different sizes and colors. As the goal is to show the different color variations, only the ...
1
vote
1answer
344 views

Magento 2 Equivalent for Mage::getModel('catalog/layer')

For Magento1, On:- app/design/frontend/Mypackage/Mytheme/template/catalog/product/view.phtml I'm using following code:- Mage::getModel('catalog/layer')->getCurrentCategory()->getId() Same code I ...
1
vote
1answer
295 views

Overriding model file is not working in Magento 2.2.5

I tried to override model, but it is not working. I need to override: Magento\Catalog\Model\Product\Attribute\Backend\Price to Pawan\Catalog\Model\Rewrite\Product\Attribute\Backend\Price But it ...
1
vote
1answer
462 views

How to load custom template file for product detail page in magento2

I am looking for code how we can load custom template file for product detail page? I need to remove default magento2 detail page, I have tried below code to achieve it, {{block class="Magento\...
0
votes
1answer
234 views

Remove item from category collection in Magento 1.9

I have a category collection in Magento 1.9 This is my code :- $categories = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('*') ->...
0
votes
2answers
235 views

how to remove white space from product name during custom product collection?

I am getting stuck with white space in set order during product collection in magento 2. I want to get product details with ascending order via name but name has white space. I have removed white ...
0
votes
2answers
3k views

Magento 2 : How to override fotorama.js in magento custom theme

I need to show gallery arrow always visible on product gallery page. I tried in gallery.phtml variable arrows="always", but its not working. I want to show both arrow always visible on product ...
0
votes
0answers
168 views

Force customer to log in when visiting a specific category Magento 2

I have found that https://github.com/bitExpert/magento2-force-login and I just install it but I don't know how to use it: how to force not logged in the customer to login or create an account before ...
0
votes
2answers
1k views

How to Display 5 images by default in magento 2 product gallery vertical

I need to show by default 5 images in magento prduct page gallery. I change the view of gallery is from vertical to horizontal. I need to know that which js file i have to modify for display default 5 ...
0
votes
1answer
539 views

Magento 2 : Error 503 first byte timeout

Getting this error when i'm update product from product grid using update attributes. Error Page:
1
vote
0answers
42 views

Magento 2: Is it possible to create Product attributes sets and their options programmatically but not during the install

We are developing a REST API that extends magento 2's functionality. One thing we need this API to do is to create attributes "on the fly" based on the custom JSON product payload sent. For example ...
1
vote
1answer
106 views

Magento 2: Upsell programmaticly add products only adds last item

I am trying to add upsell products automaticly with the Magento\Catalog\Api\Data\ProductLinkInterfaceFactory class, I added following code: EDIT CODE IS UPDATED WITH AN WORKING EXAMPLE $i = ...
0
votes
1answer
960 views

Magento 2 : Catalog access by customer group

I want to restrict product by customer group. For mapping, we added an attribute to product called group_ids where admin can select multiple customer groups I want to restrict customer to access ...
0
votes
2answers
947 views

Magento 2.2.5: Explain about Position in “Catalog_Category_Product”

I'm looking for an explaination about column "Position" in table "Catalog_Category_Product". I dont understand what is 0 and 1 in that column, and what does it for? Thanks for reading. Have a good day ...
4
votes
0answers
153 views

How to use modifier in product_action_attribute Form?

I have created an eav attribute and modified the field inside edit product form, that was easy. But in products mass action (Update attributes) page, the field I have created, by eav Attribute and ...
2
votes
2answers
518 views

How to get cart price rule collection in magento 2?

I want to show cart price rule on product page. How to get collection of cart price rules?
0
votes
2answers
766 views

Magento 1.9 : How to Edit the price of all products؟

I want to increase the price of all products And if I want to edit each one It's very time consuming Is there a way to group?
1
vote
1answer
36 views

Get the product of review?

I'm listing all the reviews on a particular page of my magento store: $review_collection = Mage::getModel('review/review') ->getResourceCollection() ->addStoreFilter(Mage::app()->getStore()-&...