Questions tagged [products]

Questions about products in the Magento catalog in general

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

Product Catalog Images URL construction

I have a rather strange issue on Magento 2 (2.3.3) where product images are not loading. Grid and List view show an error 500 for (some) product images, which seem to have additional slugs versus what ...
0
votes
0answers
17 views

Combination of grouped or bundled product with simple products

I'm trying to create a product which makes perfect sense to me, but can't get it to work: Customer would be able to select a kit of two products OR one of the two separate items either by a simple ...
0
votes
0answers
8 views

Magento 2 Add Button in Edit Product page and land back there after POST request

So, as the title says, I want to add an Admin button in the Edit Product Admin page. That button, when pressed, will call the respective controller of a URL, sending along the product id, the ...
0
votes
1answer
30 views

How to get ordered products withing a date range in magento 2 programmatically?

I want to get the products ordered within a date range for a report. As the result, I need like, product, product type, product Qty. I tried to load all orders and get the sum of products, it want ...
0
votes
0answers
14 views

How can I set a product downloadable but optionally shippable?

I run a Magento 2.4.2 store which contains only downloadable products but those products could be (with a extra charge) shippable. What's the easy way to set them? Should I insert a downloadable ...
0
votes
3answers
45 views

Magento 2: existing products doesn't load regular price through a cron job

Everything was work fine. But now from cron doesn't load productFactory right! Can somebody please help me? public function __construct( Context $context, \Magento\Checkout\Model\Session $...
0
votes
0answers
27 views

What is the correct way to configure Magento, so that products will be visible on storefront?

I am completely new to magento. Trying to add some products on store, product saved successfully. But it is not visible on storefront. Checked all the configuration settings, all are correct. I found ...
0
votes
0answers
11 views

Is it possible to make the magento filter load a phtml code inside?

Staff in magento 2, in 2-column layout, in the first column there is a value filter and in the second column the products. Is it possible to make the filter load inside the product column?. I need the ...
0
votes
0answers
11 views

Set Product Image From Image Gallery

Is there any way to get an image for a new product direct from image gallery? i want to categorize photos into folders on image gallery and then putting them into the products. My Magento version is 2....
0
votes
1answer
32 views

Magento 2 REST APIs fetch results by store code

When i am trying to fetch the orders, & customers & products collection by using store code I am getting another store results aswell. Did any one facing the issue in the magento 2.4 version? ...
0
votes
0answers
15 views

Magento 2.3: products are out of stock only on the product details page

I have a multistore site with simple products that appear to have positive quantities from the backend and are set as "available" in stock. I've checked and I'm sure all other store views ...
0
votes
0answers
26 views

Magento 2.4 stock_item in /v1/products API

The stock_item seems deprecated in the Magento /V1/products endpoint there is some mentioned here: Magento 2: Get Product Stock status details in Rest API Magento 2: Rest API add "stock_item"...
0
votes
1answer
16 views

Magento 2: Export All Products with their custom options

I want to export all products with their custom options through database.
0
votes
1answer
27 views

Magento 2 | Exclude duplicate Item ID from a collection before foreach

When I foreach my collection filtered by tier price, qty and customer group I get the error: "Item (Magento \ Catalog \ Model \ Product \ Interceptor) with the same ID already exists". This ...
0
votes
1answer
28 views

Magento 2 | Item with the same ID already exists when join tables

In my class I have filtered my collection by tier price and quantity. If I put the display of only 3 products the code works, while if I set the display for all products I get this problem: Item (...
0
votes
1answer
18 views

How to create a block with random products and style grid?

I'm starting to play with magento 2 and wanted to create a list of 10 random products that I can place anywhere (e.g. home) with a grid style. May I know, How I can get 10 random products, but I don't ...
0
votes
0answers
17 views

Magento 2, programmatically create configurable products

Hello I have the necessity of creating both simpe and configurable products. This is what (following online guidelines) I have right now: $bootstrap = Bootstrap::create(BP, $params); $objectManager = $...
0
votes
1answer
11 views

Magento 2: Product status doesn't change after changing to another status

When I changed the status of the product from visible to invisible and when I view the product (in the admin panel) it displays correctly but on the table shows the preview status (see attached ). and ...
0
votes
0answers
18 views

Magento 2 Cross Sell products layout are breaking in shopping cart page even in default Theme

We are facing a issue with the Cross Sell products layout in shopping cart page. The product items that are rendered are not loading in proper HTML structure and resulting the items layout to beak. ...
0
votes
1answer
43 views

Magento 2.4.2 stock wrong on productpage

I have installed magento 2.4.2 community edition as multistore. The configurable products are uploaded with a csv from the supplier. On the page with all products I get the right message that the ...
0
votes
1answer
20 views

Load products for specific store Magento 2

$products = $this->productFactory->create() ->setStoreId($store_id) //this is not working ->getCollection() ...
0
votes
1answer
18 views

How can Enable Product (a [website] scope property) can have different values in one specific store view vs All Store?

I have 1 website, 1 store and 2 store views (for English and Finnish languages.), If "Enable product" scope is website. Then how come it can have different values between these Scope: ...
1
vote
1answer
23 views

what is the table of products in magento 2?

I want to know what is the table in the magento 2 database, which stores the product information as the description. I found a table called "quote_item" but there are a lot less products ...
1
vote
1answer
84 views

Fetching SKUs containing a “/” (forward slash character) from the /rest/v1/products/ REST API endpoint?

A lot of our SKUs have spaces and forward slashes in them (eg: "PRODUCT1-DARK BLUE" and "PRODUCT2-DARK/RED". I'm able to curl to the products with spaces via url encoding:     # ...
0
votes
1answer
36 views

Magento 2.3.3 Hide product that are missing product image

Im using Magento2 v2.3.3 Open source. My store consist of around 76000 products and some of them are missing product images. Is it possible without much coding to hide products on the frontend that ...
0
votes
2answers
59 views
+100

Magento 2 certain products hide out of stock products at storefront

I wanted to show all out of products at front store, so I went Store> Configuration > Catalog > Inventory and set yes Display Out of Stock Products option But I have to hide certain out of ...
1
vote
1answer
201 views

Magento 2: Videos not working in Product gallery

Video at product gallery inside product detail page is not working, However, it is working from admin panel but on product view it is showing only video thumbnail. Video is not playing while clicking ...
0
votes
0answers
10 views

Magento 2.3 - Customer Login custom product view

We have a customer who asked that when a customer log's into their account, they can only see the products they have been allocated. Our customer is selling a type of products to different stores. And ...
0
votes
1answer
49 views

Optimize Product Collection Filter

I have a Model in my code that creates a custom product collection based on a user search term. That search term should search products and filter it by sku or name... The issue is that it takes too ...
0
votes
2answers
70 views

Products are disappeared on the frontend. All show up after reindex manually. - Magento 2

All products are disappeared on the frontend. All show up again after reindex all php bin/magento indexer:reindex After a few hours later, all products are disappeared again on categories and search ...
0
votes
0answers
17 views

Infinite scroll is loading once all products are loaded

I want to make infinite scroll to load even if not all products are loaded templates for infinite scroll here is the code : <?php if($block->isEnabled()): ?> <div class="...
0
votes
0answers
31 views

Shopify to Magento 2 products csv converter

I want to migrate my products from shopify to magento. Is there any code present on github or any other software for this? I don't need to go for paid extensions. Need some script to convert ...
0
votes
0answers
12 views

Add attribute to bundle pre order product

I have a pre order extension that gives me an attribute "Preorder Product Availability" that responsible for the time date of Availability of the products , and I have bundle products. Then ...
1
vote
2answers
35 views

Magento 2 - Change amount of products per row in category view

Currently there are showing 4 products per row in the category view. How can I make it show 3 products per row instead? I found this answer. It says there is a file Magento_Catalog\web\css\source\...
0
votes
0answers
19 views

New products take 12 plus hours to appear in categories

We are currently using Magento 2.4.1 . When we add new products it takes hours to show in the categories we had picked when creating the product and yet if you search the product on the website it ...
0
votes
1answer
42 views

Set product in shared Catalog

For product import, I have checked from admin (admin -> catalog -> shared catalog ) that my id for shared catalog (Default (General)) is 1. Then I done code as below. but not works. please guide ...
0
votes
1answer
55 views

M2.4 - How to add OG tag for categories?

I am created OG tag for the Homepage and products, For Homepage : 1)app/design/frontend/Zero/my_theme/Magento_theme/layout/default_head_blocks.xml <meta name="og:title" content="...
0
votes
0answers
211 views

I have error Call to a member function getData() on null l/vendor/magento/module-catalog/Helper/Image.php:501 in supro theme

I have error main.CRITICAL: Error: Call to a member function getData() on null in /home/bigroadusa/web/bigroadusa.com/public_html/vendor/magento/module-catalog/Helper/Image.php:501 in debug and system ...
0
votes
1answer
23 views

How to get subcategories on one page and products on another page?

I have category seating and I have some subcategories (sofa,chair) in it. I want one category page that shows list of sub categories and another page which shows all the products of the seating. We ...
0
votes
0answers
106 views

Magento - SQLSTATE[23000]: 1452 Cannot add or update a child row: a foreign key constraint fails

I get the following error when I try to reindex product Flat Data. This error happened after I deleted all products using SQL query. Exception message: SQLSTATE[23000]: Integrity constraint ...
0
votes
0answers
30 views

Assign Products to Specific Store Programmatically : Magento2

I am trying to assign different products of the main store to other stores programmatically. Is there any way to get it done?
0
votes
1answer
43 views

magento 2: how to get order details from “controller_action_predispatch_sales_order_reorder” event?

I am using "controller_action_predispatch_sales_order_reorder" event to find out whether an order is reorder or not. Using this event I am able to get original orderId but along with that I ...
0
votes
0answers
26 views

Magento 2: which event fires before a product gets added into cart on the admin side?

When an admin wants to reorder an item I want to check whether that item is enabled or disabled and if its disabled I want to skip that product based on its SKUs from adding into my cart. Which event ...
0
votes
0answers
55 views

Redirect to /downloadable/customer/products after successful checkout automatically | Magento 2.4.1 CE

Cause we only sell downloadable products in our Magento 2.4.1 CE with Autoinvoice we would like to redirect our costumers automatically to the /downloadable/customer/products/ instead of the /checkout/...
0
votes
0answers
20 views

How to retrieve quantity from products list with REST API?

I need to get stock info about my products in REST API response. I'm using this endpoint: GET https://{{magento}}/index.php/rest/V1/products?search_criteria%5Bpage_size%5D=10&search_criteria%...
0
votes
0answers
26 views

Odd error - main.CRITICAL: Notice: getimagesize(): Read error!

main.CRITICAL: Notice: getimagesize(): Read error! in [full path removed]/public_html/vendor/magento/framework/Image/Adapter/AbstractAdapter.php on line 304 [] [] Getting this error on pages that are ...
0
votes
0answers
25 views

Can we display discontinued products in website?

Can we display discontinued sku? I have a some SKU’s in my website, but after some time it's discontinued, but people still search for it. I've seen this feature in many websites showing discontinued ...
0
votes
1answer
43 views

Hide a Ui Component Field based on condition on product edit

I have created custom field in Magento 2.4.1 product edit page, product_form.xml <field name="type" formElement="select"> <argument name="data" xsi:...
0
votes
0answers
78 views

Magento 2 The update with the “1609327541” ID doesn't exist. Verify the ID and try again. [ M2 EE 2.3.3 ]

I am facing the below issue while saving products from the backend or via script. Magento 2 The update with the "1609327541" ID doesn't exist. Verify the ID and try again. [ M2 EE 2.3.3 ] [...
0
votes
0answers
14 views

How to get the best selling products in a category and sort them from best selling to least selling?

How to get the best selling products in a category and sort them from best selling to least selling? I try get best selling collection like: use Magento\Store\Model\StoreManagerInterface; use Magento\...

1
2 3 4 5
20