Stack Exchange Network

Stack Exchange network consists of 174 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 [catalog]

It should be used for questions regarding the catalog module.

1
vote
0answers
17 views

Magento 2 Override Gallery.php file

I would like to override /vendor/magento/module-catalog/Block/Product/View/Gallery.php file getGalleryImagesJson function In result I would like to get - public function getGalleryImagesJson() { ...
0
votes
1answer
19 views

Magento 2 - Enabling Flat Catalog causes SQL error. Reading from “report” tables

When I enable the flat catalog in my Magento 2.2.5 installation, I get an error. SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.name' in 'field list', query was: SELECT COUNT(...
1
vote
1answer
21 views

Magento 2.3 use of `db_schema_whitelist.json` file in etc directory of each module

What is the use of db_schema_whitelist.json located in Magento Catalog etc directory? In Magento 2.3 version, I found db_schema_whitelist.json and db_schema.xml files, in the Magento_Catalog module. ...
0
votes
0answers
7 views

Remove Auto-generated URL Rewrites

I've been having this issue with auto-generated URLs. The catalog/* URLs keep auto-generating the red box are the URLs that auto-generate, the green box are the URLs that I want. How do I stop the red ...
0
votes
0answers
15 views

ACL Resources Access Customization and Admin form customization

I am new to magento so can somebody please help me out? I have created a new user (belonging to custom role group = vendor) who can login to admin panel and add their own products, for that i have ...
0
votes
0answers
9 views

EE 1.11 SOAP V2 catalogProductInfo additional_attributes

I am using SoapUI to test the SOAP V2 APIs. Currently working with products and need some help with the correct syntax to call all additional_attributes. Herein is what I am doing right now: magento-...
0
votes
0answers
16 views

How to implement “Uses Per Customer” in Catalog Rules?

How can I implement "Uses Per Customer" functionality (Same Like Cart Price Rules) in Catalog Rules? Say for example. If I enter 3 in Uses Per Customers. Catalog Price rule has to apply only 3 times ...
0
votes
0answers
13 views

Extend Catalog Search Indexer

I would like to extend catalog search indexing by adding some own values to the fulltext index. I am researching the magento catalog indexer a while now and do not find a good entry point to change ...
1
vote
0answers
9 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
14 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
44 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->...
0
votes
2answers
26 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
10 views

control the visibility of add to cart according to group and their catalog magento 2

I have created two catalogs and two group and each group had his own catalog so when he connects he can just see added to the cart of his catalog and not the other catalog. Is there a sol of creating ...
0
votes
0answers
9 views

Restrict add to cart visibility according to group magento 2

I have two catalog and two group when a customer that belong to group 1 is connecting he can just see add to cart of catalog 1 and same for a customer that belong to group 2 he can just see add to ...
0
votes
0answers
21 views

Can we Create Product attributes with condition in magento 2

I'm having issues while creating product attribute with condition. I have two Options : Yes and No If any SKU Condition is yes then customer can order Quantity 3 else they can order 1 or more. For Ex....
0
votes
0answers
39 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
64 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
4 views

Magento 1.x : How do I run Catalog Price Rules + Indexers in 1 php script

Magento 1.x : How do I run Catalog Price Rules + Indexers in 1 php script I want to apply Catalog Price Rules And run related Indexers in 1 go via a script, how cn I do this? This does not seem ...
0
votes
0answers
87 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
26 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()) {...
0
votes
1answer
75 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
34 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/...
0
votes
0answers
27 views

How to display my custom price instead of product price for product detail page in magento2

I have created functionality for saved my custom price for every product from back-end, I have created duplicate of tier price that is (my tier price)functionality. both are working that means i ...
1
vote
1answer
26 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
70 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
20 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
0answers
26 views

Magento 2 - Apply filter on Product collection

Is there any common event or plugin to apply the filter to product collection which includes product list page, related products list as well as upsell and cross-sell product list? If no, then how ...
0
votes
0answers
102 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
44 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
26 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
26 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
0answers
19 views

Stop admin url Redirect to dashboard

Preconditions Have latest M2.2 installed 1)install demo data (using bin/magento demodata installation options) 2) clean browser cookies for the domain you're at (to make sure we start from clean ...
0
votes
2answers
115 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
37 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
22 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
0answers
15 views

Magento 2 admin Storefront not visible in Default Config

When I'm in Stores > Configuration > Catalog > Catalog and I select the Default Config scope, the Storefront does not show up. When I change to another scope the Storefront does show up. I need this ...
0
votes
1answer
28 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 ...
0
votes
0answers
23 views

Load ajax after using observer

I have added this JS code inside catalog-add-to-cart.js : var popup = $('<div class="add-to-cart-dialog ajoutPanierModal"/>').html('<span>Le produit a été ajouté au panier.</span>')...
1
vote
1answer
175 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
26 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
27 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 ...
0
votes
0answers
324 views

The new url key is not working for product page

I am trying to change "URL Key" for the product. When I edit "URL Key" on product edit page, URL key gets changed correctly ... but the "request_path" in database is not updated for that key. I have ...
2
votes
0answers
21 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
85 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
28 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.
0
votes
0answers
46 views

Default sort order for default sort attributes

So it is already possible to select custom attributes for the default sort order in categories. But this sorts by default ascending. If we have - like in our case - a popularity rating which is a ...
2
votes
0answers
19 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
46 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
10 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 ...