Questions tagged [catalog]

It should be used for questions regarding the catalog module.

Filter by
Sorted by
Tagged with
2
votes
1answer
230 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
1answer
186 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
418 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
303 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
1answer
887 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
585 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
94 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
2answers
499 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
461 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\...
1
vote
1answer
395 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
237 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
474 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/...
4
votes
3answers
6k 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
4answers
798 views

Magento 2.x CatalogSearch Undefined Variable($resultPage)

Here is my code. My finding is- This is the URL for Parent Class( class Index extends \Magento\CatalogSearch\Controller\Result\Index) but unfortunately there is no $resultPage defined in this ...
1
vote
0answers
70 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
348 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
66 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
65 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
400 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
129 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
1answer
237 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
306 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
369 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:...
2
votes
3answers
670 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. ...
2
votes
2answers
1k 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',...
2
votes
1answer
763 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
42 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 ...
1
vote
1answer
68 views

How can move/use one element at different position? In Magento 2.2.3

<move element="product.info.stock.sku" destination="product.info.addtocart" as="product.info.stock.sku.old"/> <move element="product.info.stock.sku" destination="product.info.addtocart....
3
votes
1answer
568 views

Catalog Price Rules “Apply Rule” button not showing

We have tried to create catalog rules with category condition and it's not working. Also, we are unable to see Apply Rule button. Please help
0
votes
1answer
741 views

How to remove image url from sitemap.xml Magento 2?

I have created sitemap.xml in the website. In which, Image URL coming with cdn link. I have change setting from admin but still is showing. I don't want to use CDN URL in the sitemap. How to ...
0
votes
0answers
138 views

How to add brand page URLs in sitemap.xml

I have created sitemap.xml on the website. That's fine. But I want to show brands page URLs in the sitemap.xml How can do this?
1
vote
1answer
47 views

SetId on category results on exception

I would like to set my ID on the category Category::setId but this results in the following exception: "No such entity with id = x". My code: $catFactory = $objectManager->get(CategoryFactory::...
1
vote
0answers
123 views

Magento 2.2.3 - Sort product collection by custom price

I want to sort my product custom price instead of Magento default price. By default product price is '0'. I overwrite /vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php. I set my ...
1
vote
0answers
95 views

magento 1.5.0.1 upload image button doesn't display

I am using magento 1.5.0.1 My problem is i want to upload an image,but upload image and browse image buttons are not displaying.
1
vote
1answer
340 views

getModel return false after rewrite model

I was trying to rewrite product model. It's my config.xml <global> <models> <catalog> <rewrite> <product> ...
2
votes
1answer
235 views

Turn off url rewrite indexing for disabled products

How can I turn off Catalog URL Rewrites indexing for disabled products in magento 1.9?
0
votes
1answer
39 views

Magento 2 - Updating Product list page Layout

So, I'm trying to update the product list page to my own custom layout inside of Magento 2. Files I've made inside of my theme are as follows: /app/design/frontend/Theme/default/Magento_Catalog/...
1
vote
0answers
354 views

Magento 2.2.1 : Product disappeared every time after edit

Each time when I modify a product (image or quantity) it disappears from the site. Then it comes back after the site is re-indexed. Any ideas how can I stop this from happening? I have also tried ...
0
votes
2answers
291 views

Magento2 : Override core files vendor/magento/module-catalog/Pricing/Price/TierPrice.php

How to override vendor/magento/module-catalog/Pricing/Price/TierPrice.php ? in magento 2
0
votes
2answers
396 views

Magento Reindex Issue on Product Attributes

I have started a reindex and it was taking too long so I closed the process and restarted mysql. Now , when I'm tring to run from command line php indexer.php --reindex catalog_product_attribute I'...
0
votes
2answers
580 views

Magento 1.9 Save action for Catalog Product custom tab

I created the custom tab in Catalog Product. It is my layout/labels.xml <adminhtml_catalog_product_edit> <reference name="product_tabs"> <action method="addTab"><...
0
votes
1answer
98 views

Sort by options translated only in list

In category view the dropdown "sort by" is translated. When I choose an option, the default one turns into English
1
vote
1answer
1k views

How to show a custom grid in a custom tab in product edit page admin Magento-2

How to add a custom grid in a new tab in product edit page using UI_Component method? This custom grid fetches collection from a custom table.
1
vote
0answers
44 views

Getting products in a category not under the current store's root

I would like to loop through a set of categories which are under a separate root, in order to generate a simple list of products. I put them under a separate root category because otherwise they end ...
0
votes
0answers
118 views

How i do watermark programmatically?

I have a code that runs on 'catalog_block_product_list_collection' event. I need add to product image watermark. How i can do it? public function addLabel($collection) { $event = $collection->...
0
votes
0answers
527 views

Requested product doesn't exist Magento 2.1.8 after migration

I have migrated data from Magento 1.9 to Magento 2.1.8. Almost all products working fine except some products are displayed in the frontend but when I will edit one product in admin than its showing ...
0
votes
1answer
284 views

Enable/Disable associated product programmatically

Is it possible to disable and enable associated products programmatically? Currently i do this for the simple product, but it doesn't seem to be affecting the associated product. Right now i'm doing ...
0
votes
1answer
138 views

Join with Category Table

I need to show all Subcategories and their products on category view page as -- CategoryName 1 <br /> -- -- Product List for category1 --- Category Name 2 <br /> --- Product List for ...
0
votes
1answer
62 views

Inject class for overridded class

I override the \Magento\Catalog\Block\Product\View it's working but I am trying to inject class means it's not working please tell me what I did wrong and tell me how to do this without injecting the ...
2
votes
3answers
4k views

Magento 2 How to get product collection of all products?

I am trying to fetch the product collection in Magento 2 which return the all products including -> with all instock and out of stock products -> with all Visibility (Not Visible Individually,...