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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

It should be used for questions regarding the catalog module.

1
vote
1answer
14 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
11 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
48 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 ...
0
votes
0answers
22 views

How can I show Save & Edit Next and Save & Edit Previous link in Magento2 admin product edit section?

I want to show Save & Edit Next and Save & Edit Previous in Magento2 product edit section in admin side. That will edit Previous or Next product based on filter collection in products.
0
votes
0answers
11 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 ...
0
votes
0answers
14 views

How can I make my attributes editable from the catalogue page?

in my catalog page for products, Cost Price, Price, and QTY are editable from the catalog page itself without clicking into it. How can I make some of my other attributes act this way? I'm editing ...
0
votes
0answers
13 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
49 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
15 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()-&...
0
votes
0answers
13 views

Magento2 Mysql is using full CPU and running the same query over and over again

We are running into the situation where the Mysql is using full CPU and running the same query over and over again. SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `...
0
votes
1answer
25 views

Magento product collection override sort order with own order

I'm using Magento 1 and inside catalog/product/list.phtml I use the following code to add a custom sort order product_on_top: <?php $_productCollection=$this->getLoadedProductCollection(); $...
1
vote
1answer
65 views

Magento2: Show subcategory as a grid with images

I need to display all the sub categories under every category as a grid in relevant pages with linked images. Is there a way to do it ? I am using magento 2.2.4
0
votes
0answers
14 views

Can I change a product and maintain the url?

I currently have several products that I created as configurable but now I want them to be simple products. If I create a new copy as simple product with the same url key, does my SEO gets affected?
1
vote
1answer
37 views

SQLSTATE[23000]: Integrity constraint violation when searching on frontend

On my frontend when I type anything in the search box I get the following error: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'position' in order clause is ambiguous, query was: ...
3
votes
0answers
33 views

Magento 2 Catalog Rule Condtions

I am trying to implement Magento 2 catalog rule condtions in a custom module Ui Component form. Below is the field set: <htmlContent name="block_promo_catalog_edit_tab_conditions" sortOrder="20"&...
0
votes
1answer
24 views

Magento2: catalog_product_view.xml

Here what happen I am trying to add my custom phtml file in catalog_product_view.xml. Underneath: <referenceContainer name="content"> <container name="product.info.main" htmlTag="div" ...
0
votes
1answer
18 views

Not able to reindex “Catalog URL Rewrites”, all other index are indexed fine in magento 1.9.3.8

I have upgraded Magento 1.9.1.1 to Magento 1.9.3.8. After this I am not able to reindex "Catalog URL Rewrites" index while all other index are working fine (I am able to index them). I am getting ...
0
votes
0answers
17 views

Change the old url to new url programmatically in magento 1.9

I want to change the old url to new url when old url is going to 404 page. I need programmatically because I have nearly 50k+ products. can anyone help me.
0
votes
1answer
32 views

401 Authorization Required Magento 2 REST API

I'm trying to get the list of all magento2 products but I'm getting 401 authorization error. I tried the below methods and in all methods I'm getting the mentioned error! First Method: $userData = ...
0
votes
1answer
59 views

Magento 2.2.3 Getting an Error While Saving Product?

I am facing one issue while saving/update the product in magento 2.2.3 CE SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that ...
1
vote
1answer
21 views

Add more columns and add to basket to the grid in grouped products Magento 2

I'm trying to add more columns, with custom attributes into the frontend product grid in Magento 2.2.4 I've overridden vendor/magento/module-grouped-product/Block/Product/View/Type/grouped.phtml ...
0
votes
0answers
21 views

4 problems - 1- dashboard all white 2- orders and catalog don't display 3- doesn't go to check out page 4- our theme is all missued up?

basically i installed fastly (fislty) and zinrelo plugins. everything bad happened after that. i clreard cache. disinstalled the plugins. but it didn't solve the problem what do you think happened ...
0
votes
2answers
48 views

Magento 2 - How to get image of sub categories?

I need to get an image of subCategory. $category = $block->getCurrentCategory(); $subcategories = $category->getChildrenCategories(); foreach ($subcategories as $var) { print_r($var->...
0
votes
2answers
62 views

Observer to only display products if price greater than 0

im trying to create an observer to only show products if the price is greater than 0, this is my code, I'm using it for this event "catalog_block_product_list_collection" <?php namespace Vendor\...
0
votes
0answers
16 views

Different category view XML for each page layout

Is it possible to define a different catalog_category_view.xml for each page layout. For example if I am editing a category in Magento and choose the "1 column" layout I want it to use one ...
0
votes
0answers
33 views

Magento 2.2.4 - Move only Add to Cart below Image Element and Product Options in Main Element - Configurable products

I have managed to move Add to cart button below product.info.media (Reference : Magento 2.2.4 - Add to Cart Not Working after Move Add to Cart Buttons Below Image on Product View ) Working perfectly ...
0
votes
0answers
33 views

How I add Category chooser in custom module in backend magento 2

Anyone Help me please how I create category chooser in custom module in magento 2
4
votes
3answers
156 views

How to load less products on the mobile/tablet front page?

Magento CE 1.9.1 Porto theme We have way too many products on the front page (it works well for us on the desktop) which is not so good for Mobile users (including mobile phones and tablets). Is ...
0
votes
1answer
39 views

How to get rid of this URLs for product page?

Currently, I am working on site, where I am facing following issue related URLs. when I open a product page, In the browser, following URL gets displayed: https://zitomer-upgrade.aastaging.us/...
0
votes
0answers
20 views

Magento 2.2 : will a catalog_product_view_[CustomAttribute]_[Yes/No].xml works?

In my Magento 2.2.4 theme, I already did a <theme>/Magento_Catalog/layout/catalog_product_view_id_XXX.xml as a test, and it worked great, applying the configuration to only the item with the ID ...
1
vote
4answers
297 views

Magento 2 : How to Add quantity increment & decrements button on product details page

How to add increment(plus +) and decrements(minus -) qty button on product detail page?
1
vote
0answers
22 views

Magento 1.9 Replace Products Images

I am trying to replace images for 1500 products. So, I replace the images files in Media FTP server and Images not changed in the website ! Why? Also after I clear the Flush Catalog Images Cache and ...
0
votes
2answers
43 views

Hide grouped/configured product with zero visible sub-products

I have a site running Magento EE 2.2.2 and I have lots of Grouped and Configured Products. I turned off "Display Out of Stock Products". As expected, when a sub-product is out of stock, it is not ...
1
vote
2answers
39 views

Custom tab name handle from admin

I have created a module for custom product tab. It's working fine. Now the problem is how can rename tab name by admin from admin side. Below is the screenshot. Below is the code ...
0
votes
1answer
26 views

Magento1: Reindexing since one month Catalog URL Rewrite

in my magento 1.9.3.6 website one indexing is not done since last 45 days and still processing. And i am also unable to update and save product from admin panel. Please suggest me any solution.
1
vote
1answer
54 views

Price Slider Doesn't show filter attributes in magento 2

I have installed a free price slider from magento marketplace. It works list pages properly but catelog search pages it only show the filter attribute label and doesn't show the attribute values. How ...
0
votes
1answer
104 views

URL rewrite redirects to page 404 - sorry page not found

I created a copy of a project and of the database. Everything seems to work fine by far, but some pages are not working and I get to see the "sorry, page not found" site. No product site is working ...
0
votes
0answers
9 views

How to change “excl. 0% tax” in category/catalog

Currently when I browse through categories on the Store frontend the products are shown like this: <name> <price> Excl. 0% Tax Delivery Time: 3-7 days How can I remove the 0% to only ...
0
votes
1answer
24 views

Where to find the Catalog's predispatch event handler for sanitization?

Let's say we have a list of wrenches: https://www.toolworld.com/hand-tools/wrenches?order=price I'm trying to find the predispatch event handler for the Catalog's product list page so that I can ...
0
votes
0answers
22 views

Magento 2: Editing issue list.phtml template - literator - adding PHP data to product list.

I am trying to add the following code to the product items on the catalogue page: data-isotope-default-label="<?php echo strip_tags($filterItem->getLabel()) ?>" data-isotope-switch="<?php ...
0
votes
0answers
38 views

Magento 2.2 configurable products always out of stock

Configurable products are always out of stock but the are not in the catalog. All assigned simple items are in stock with 100pcs. I've noticed that if re do the configuration and Apply single ...
0
votes
1answer
69 views

Magento2 Getting Error while reindexing

I'm getting error while trying to reindex php bin/magento indexer:reindex Design Config Grid index has been rebuilt successfully in 00:00:06 Customer Grid index has been rebuilt successfully in 00:...
0
votes
0answers
36 views

How to show the catalog price rule applied products in On Sale?

am using Magento 2.2 Some of the products having special products. and some products are applying catalog price rules with some percentage of discounts. Both special price option and catalog price ...
0
votes
0answers
18 views

Widget conditions are looking weird in the editor

I just updated Magento from 2.1.9 to 2.2.3. Now I am trying to add a widget via the Insert Widget function in thebackend. When inserting the Catalog Products List I can set conditions like category. ...
0
votes
0answers
20 views

Getting error on category page when Category “Anchor”' option is enable in Magento 2.1.9?

I am getting an strange issue on category page. When I am enabling Anchor option in category then getting below error: Fatal error: Uncaught Error: Call to undefined method Magento\Catalog\Model\...
2
votes
3answers
175 views

what is the difference between cms page link and cms static block. Catalog product link and catalog category link

I know about catalog new product list, and how to make them show on the home page using the widget. But am having a hard time understanding the difference between cms page link and cms static block. ...
0
votes
0answers
103 views

Magento 2 reindex gives error Duplicate entry

I am experiencing an issue which not sure why when I try to reindex it gives the error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4458-142-1-1293-4458' for key 'PRIMARY',...
0
votes
0answers
22 views

M2.2 Custom module not showing in configurable products

Greetings Magento people. I followed this and build a custom module overriding vendor\magento\module-catalog\view\frontend\templates\product\view\addtocart.phtml The module works, but only in ...
2
votes
1answer
195 views

how to enable bluefoot cms pagebuilder for category and product section in magento 2

Magento default provide bluefoot cms enable option for CMS block & CMS page. Need to enable bluefootcms editor in category and product level.
1
vote
1answer
33 views

Assign product category to specific store

I've been trying for a while now to assign a product to a new category. We are running multiple store views, but when i try to assign the products to the new category IDs the original product is also ...