Questions tagged [product]

Denotes a question related to the Magento products.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Magento 2: How to fetch swatch_images url in product listing and how to loop them in an array

I am trying to fetch the swatch_image url of product list and pass them through the api. I am even trying to loop those images in an array if in case there are multiple images in the gallery.
0
votes
0answers
14 views

Magento 2: How to override new_grid.phtml in Custom Module?

I need to override product/widget/new/content/new_grid.phtml file in my custom module. Please tell me the possible ways to do it.
1
vote
0answers
14 views

Magento 1.9 Product Image Upload Console Error

Console Error : Failed to load resource: the server responded with a status of 403 (Forbidden) VM262:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse ()...
1
vote
1answer
74 views

Status filter is not working in admin

We are using Magento2.3 and found an issue that is status filter is not working properly in admin. We have some of the products which is disabled. When I filter the product with Status disabled, I'm ...
0
votes
0answers
12 views

Magento 1.9 Cart Tax Vat

I have a client who wants to show the products without VAT, but the prices are charged with VAT in the administrator. he requires something like this: Price: $1000 calculates TAX VAT backward ...
0
votes
1answer
34 views

Restore M2 products after migration

I used data-migration-tool and did migration from 1.9 to 2.3 but lost all the products which were already in M2. Before the migration there were around 2000 products and now they lost. I have backup ...
0
votes
0answers
30 views

magento 2 How to show Simple product images instead of configurable product images?

In Default Magento, For configurable product in product detail page product media displays images of configurable product by default,but i want to show simple products images in product media instead ...
0
votes
1answer
41 views

Magento 2.3.2 - Product Page doesn't show category in breadcrumb

The site is setup to Use Categories Path for Product URLs - No Use Canonical Link Meta Tag For Categories - Yes Use Canonical Link Meta Tag For Categories - Yes The category page shows the ...
0
votes
0answers
23 views

Magento 2.2.6 - Admin Catalog Products -> Browser freeze

Problem The admin catalog product overview does load very very very slow (15minutes+) or not at all. The product overview in the admin loads pretty fast until the animated loading icon appears. So ...
0
votes
0answers
24 views

Magento 2: Set product position in category via REST API

I'm trying to set the position of an existing product inside a category via REST API. Currently all products have a position of 0. The endpoint I'm using is POST /V1​/products. The json body: { "...
1
vote
0answers
25 views

Adding product photos in Email a Friend in Magento 2

I modified the product_share.html and added this <img src="{{var product_image}}“ border="0" /> before {{var product_name}} The email contains has the image box but no product image only ...
0
votes
1answer
22 views

how i can solve unable to save stock item in magento 2 while saving product

I deleted all the products and categories via SQL queries (i used this answer https://magento.stackexchange.com/a/283404/73525 ) while saving new product i got error Unable to save Stock Item ...
0
votes
1answer
44 views

Duplicated product not showing on front-end, Magento 2.3.2

I have upgraded my Magento EE store from 2.2.7 to 2.3.2, and the issue I am facing is, after duplicating a product, the duplicated product is not showing on frontend. The urls are generating, product ...
0
votes
1answer
45 views

Magento2: How can update the product price using before plugin

I want to update the product price using plugin and I tried the afterGetPrice() plugin its working fine in normal case but showing wrong price calculation when catalog price rule applied, I want to ...
0
votes
1answer
34 views

Magento 2 - Get all details in product list api

Is it possible to get product available quantity and ordered product quantity to get product API http://localhost/test/rest/V1/products with all other details? And extension_attributes are also not ...
0
votes
3answers
45 views

How do I get the current product id into wishlist.phtml in Magento2?

Here is My Block.php file app/code/Smartwave/Porto/Block/Catalog/Product/View/AddTo/Wishlist.php namespace Smartwave\Porto\Block\Catalog\Product\View\AddTo; /** * Product view wishlist block * ...
0
votes
1answer
33 views

Getting Fatal error: Call to a member function setUrl() on null in Magento 1.9

Fatal error: Call to a member function setUrl() on null in /app/code/local/Ced/CsProduct/Block/Media/Uploader.php on line 37 I'm using the below code $this->getConfig()->setUrl(Mage::...
0
votes
1answer
20 views

How to get extension attributes in product list by using api in magento2

I am using "http://localhost/rest/V1/products" api to get product details but not able to get product quantity in response. So I searched and found that we can get product quantity with extension ...
0
votes
1answer
23 views

Magento 2 Error while saving product

I am getting " DateTime::__construct(): Failed to pass time string (17/06/2019) 0(1):Unexpected character error while saving product. See the Screen shot below Image Here What can be the ...
0
votes
0answers
10 views

How to get product of seller using seller id in magento2.3.0?

How to get product of seller using seller id in magento2.3.0? I am using mageplaza extension. Here is my code. <?php $ProductID = 76; $storeCollection = $objectManager->get('Webkul\...
0
votes
1answer
41 views

Filter orders using Product Id in Magento 2 Order rest API

I am using this API "http://localhost/test/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=product_id&searchCriteria[filter_groups][0][filters][0][value]=24" to filter orders by ...
0
votes
2answers
32 views

Magento 2 - Site not loading properly in Developer mode

I am working on M2 and I set M2 developer mode.My site home page works fine but the other pages not loading.Just showing errors/warnings on inner pages. Screenshot
0
votes
1answer
46 views

Magento 2 - Products not showing in front end

I have an issue with my development store (Magento 2.2.7), I have cleaned all data from the database with this tutorial (https://www.titechglobal.com/magento-2-x-how-to-clear-test-data-before-...
0
votes
1answer
15 views

show product label on sale products

How to show product label sale only on products that are on sale?
3
votes
1answer
43 views

Get product data between 2 dates using filters in get product rest API magento2

I am using this API to get products between given end_date "http://localhost/test/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=end_date&searchCriteria[filter_groups][0][...
0
votes
0answers
14 views

Ajax call on product view page and that ajax calls on page load in magenro 2

I have different ajax call on product view page and that ajax calls on page load. when I try to do add to cart it waits for that ajax calls to be completed first before process the add to cart. so ...
0
votes
1answer
27 views

Magento 2.3.1 Product Thumbnail Image is not displaying

After upgrading Magento Website from Version 2.0 to Version 2.3.1, product thumbnails are not displaying in "Most Viewed Products". Please help me.
0
votes
1answer
16 views

Dynamic Content based on items in Basket

Is there a way to dynamically display content on a page, based on whether there is something in your basket. i.e Page would display certain block of text IF there is something in the customers basket ...
0
votes
1answer
39 views

How to replace final_price.phtml with custom.phtml file only on product view?

Using Magento ver. 2.3.0. I want to display my custom final price block only on catalog product views. I try to replace final_price.phtml with my custom_price.html that I have created in \app\design\...
0
votes
1answer
23 views

Magento 2.3.0 from Backend Product Edit not working

I have Magento 2.3.0. I have an issue while updating the product from backend. It's giving me an error message "Invalid input DateTime format of value 'Invalid date' ". I am not finding any solution ...
0
votes
1answer
19 views

Magento 2 - Admin product page layout issue

I am facing an issue while trying to go on the product page from a catalog in the admin. The product page grid layout not loading properly. Every time when I clear cache, page load correctly. What is ...
0
votes
0answers
20 views

Magento 2 - Add an input field for every product in product listing in admin

I want to add input field in every row for every product in product listing. How could I achieve it? Above image is from magento 1.9 and I want to do something like that. Any help is appreciated.
0
votes
1answer
30 views

Magento 2 Url Key of Configurable Simple Product are same

I had migrated my store to the latest version, now I am facing an issue: Some Configurable Simple Product have same Url key, Below are the Simple Products of a Configurable Product: Is there any ...
0
votes
2answers
26 views

Magento 1.9 - how to get single product stock data by id?

How to get all data about the product having id including stock status and quantity?
1
vote
1answer
25 views

Programatically Product Save with Image

This is My File Uploader in .phtml file : <input type="file" id="imageUploader" name="imageUploader"> This my PHP file code where form post. <?php namespace VendorName\ExtensionName\...
0
votes
1answer
40 views

Magento 2 configurable product price not update

Magento 2.2.8 .I have created Configurable product with Color + Size attribute. Product price is not update When select(Click) attribute on Product details page. I am using Luma theme.
2
votes
5answers
230 views

Display Product collection issue in Magento 2

I have a product collection and i have used below code to display in my template file as follows. <ol class="products list items product-items"> <?php $productCollectionSku = array('111',...
0
votes
2answers
35 views

Getting 500 error when access product page magento 2

when i add a product to muy category this what i found as results any help please and thanks in advance
1
vote
0answers
25 views

Get out of stock product collection in magento2

I want to get the wishlist collection for the customer. $this->wishlist->create()->loadByCustomerId($this->session->create()->getCustomerId(), true)->getItemCollection(); How to ...
0
votes
1answer
57 views

Magento 2.3 extreamly slow with over 100 cart lines

I am working in a Magento 2.3 installation with avarage cart size of 100-150 lines. Getting the visible cart items from Quote is slower over time ( as products count rises ) I've search thought ...
0
votes
0answers
38 views

magento2 how to add product grid in ui form using ui component

Magento 2 : How to add a product grid in custom module using ui component? this refreance is not work me it is display look like layout grid
0
votes
0answers
23 views

How to bulk remove certain category from product catalog

I publish content for a merchant, and I want to bulk remove one category from multiple categories assigned to products. I saw there are some answers to help on developer side but not any to solve this ...
0
votes
1answer
36 views

How to display product by using order Item_Id in Magento 2?

I'm trying to show product detail by order Item_Id. I have this page: When we click on Order Detail, it will get the item (2) to show product detail we've chosen. Here is my code to show this page: ...
1
vote
2answers
108 views

How to get current product in Magento 2.3.1 without deprecations

Not a duplicate question, as the referenced original question uses deprecated classes. I want to get the current product in a Block / Model in Magento 2.3.1. I cannot directly use / inject / extend ...
0
votes
0answers
13 views

Product Alert Notification from API in Magento 2

Hi find this useful features in Magento2: https://docs.magento.com/m2/ce/user_guide/catalog/inventory-product-alerts.html But I can't understand how access it from REST API. Is it possible? ...
0
votes
0answers
28 views

How to skip this error “ Not all of your products are available in the requested quantity.”

I am new in magento 2 and I have products in stock with qty 0, all of them. If I have an order when shipping of course this error showed up Not all of your products are available in the requested ...
0
votes
1answer
21 views

Magento 2 admin catalog save button not working

yesterday I have imported some products in my store, today when I was trying to do some changes in product edit functionality is not working. Even the Save button is not clickable I checked logs no ...
2
votes
3answers
33 views

Magento 2 Create A custom grid for product using Ui component

I want to create a gird using the UI component in Magento. The grid must have product id and product SKU. I tried using the below code but it's not working. Here is the below code to create the grid. ...
2
votes
0answers
34 views

Magento 2 Can We override **Add New Product** Page ? in custom_module on frontend area?

I want to make a custom page where vendor can add New Product with all text fields which Magento provide from the backend. I want to override this same page on my custom module on the frontend side. ...
2
votes
1answer
79 views

Magento 2 How to show categories name in breadcrumbs in some conditions?

I am trying to show breadcrumbs when open a product from custom listing or from search result. For example, if I open a product from search result, then it's breadcrumbs look like this image: The ...