Questions tagged [product]

Denotes a question related to the Magento products.

Filter by
Sorted by
Tagged with
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
12 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
13 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
27 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
19 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
18 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
19 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
26 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
19 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
24 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
24 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
209 views
+50

Display Product collection issue in Magento 2

I have a product collection like below. <ol class="products list items product-items"> <?php $productCollectionSku = array('111', '222', '333', '444', '555', '666'); // these are the ...
0
votes
2answers
28 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
40 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
26 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
35 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
77 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
11 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
18 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
17 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
29 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
55 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 ...
1
vote
2answers
34 views

Magento 2 - OWL Carousel 2 in related products issue

I try to setup OWL Carousel for Related Products in Magento 2. I overwrite this file: Magento_Catalog/templates/product/list/items.phtml this is my custom code: <div id="owlslider" ...
2
votes
1answer
35 views

How get Image Url by product_id or other way

I am rendering sales_items rows in frontend Screenshot is: Can anyone please help me to find how get image path here from product id or any other solution. and set path in src tag ? My .phtml file ...
0
votes
2answers
27 views

Magento 2 Related Product Image is not Accurate

In Related Product Slider, All Images are of different size and default Magento is not resizing them. Screenshot : https://prnt.sc/oax7yl I want to show all images of the same size. In view.xml, I ...
0
votes
1answer
22 views

Hide products category disabled

I have disabled a category of products that are only for Christmas, but if I use the search engine, the products appear although the category is disabled. How can I do so that the products are also ...
1
vote
1answer
31 views

How to get all orders items by product_id?

I want to get all order items by product_id not by order_id. So Please read carefully and give me a solution. Thanks in Advance.
1
vote
7answers
164 views

Create order programmatically product with customizable options in Magento2

I am trying to create order programmatically product with customizable options, and it's working but it's created order with one product even I passed two products for me for these I tried below code. ...
0
votes
1answer
30 views

How to get product by custom attribute in magento 2

I want get product by custom attribute My code : protected $product; public function __construct( \Magento\Backend\App\Action\Context $context, \Magento\Catalog\Model\Product $product ) { ...
0
votes
1answer
24 views

The product page moves down - Magento 2

Good morning, I have a problem ... clean installation plus sample products. When you do not choose attributes and press button add to cart, the page is going down. Why is this happening? https://demo-...
0
votes
0answers
16 views

Magento2 : How to configure that one customer can purchase only one product once in website

In my website i have to configure that one customer can purchase a single product and if that customer login again he couldn't able to purchase any product. Is it possible???
2
votes
1answer
23 views

Create Update product REST API magento2.1

I got below error on my rest API on magento2.1 { "message": "%fieldName is a required field.", "parameters": { "fieldName": "product" } } My URL is: https://XXX/rest/all/V1/...
0
votes
2answers
61 views

How to hide price options on Configurable Product?

I try to hide the price (in the screenshot +4,20€) on my Magento 2.3 but it doesn't work. I want only T2 display and not T2+4,20€. I read and test a lot of posts too like but not working on my ...
2
votes
0answers
55 views

Magento 2: How to get products data on admin product save plugin?

I am working on Admin Actions Log Extension. For the reference i am using link below https://amasty.com/admin-actions-log-for-magento-2.html I want to get old and new data of products while we save ...
2
votes
2answers
56 views

Issue with Index Management

I am running bin/magento indexer:reindex command for indexing. In admin panel Systems->Index Management Updated column shows the updated indexing date for all except ' Product Categories ' and '...
0
votes
1answer
31 views

Magento 2 product quantity increasing automatically

I have Magento 2.2.7, the issue is when I update product quantity to zero "0", it automatically increments the quantity after some time. I tried on 3 products and each products increment was different....
0
votes
0answers
22 views

Magento2: How can I make custom import / export product functionality?

I want to make custom import / export functionality? 1) Schedule or Cron wise Import Export. 2) Upload product from Google Sheet. Any one can do help in this?
2
votes
3answers
39 views

How to insert a link in Magento 2?

I'm very new to Magento. I have created a page, and I want to insert a link. I have this page: When clicking on "Order Detail", It's will move to another page. I tried to research but I can't find ...
1
vote
1answer
25 views

Magento2 Change Sku of product with custom option

I have simple product with SKU : AAA and has custom options Sku Option 1 A1A1A1 A2A2A2 Option 2 B1B1B1 B2B2B2 On Product page SKU is showing AAA is fine. Now if customer Add to cart and chosse ...
0
votes
1answer
28 views

Access specified product on custom URL

Greetings StackExchange. I' have a task where I cannot google anything on the subject. I want to create a copy of the standard Magento product view but it should be accessible on a custom URL. I ...
0
votes
0answers
22 views

Magento2.1 URL structure

I want to show my products by below URL structure in Magento2.1: localhost/products/ID/product title What should I do?
1
vote
1answer
35 views

Rest API import product Magento2

I want to add a product using REST API but don't know how should I do. could you please help me what should I do? Magento 2.1 I use. this is the code that i used: { "id": 989898989989989898, "...
0
votes
0answers
24 views

Magento 2 show pagination in admin custom module

I have created a module in which admin form I have shown product collection I want to paginate it. I have used a block and in which I have created Product collection. <?xml version="1.0"?> &...
0
votes
0answers
10 views

“Unique constraint violation found” Error When Assign Product through Category

When I create the new category and tried to assign the product through that new category, I got the error “Unique constraint violation found”. Please check below screen-shot..
1
vote
0answers
13 views

Add image options programmatically in custom attribute not working

I want to add new custom option to upload image like extension : https://shop.emiprotechnologies.com/documentation/custom-option-image-for-magento-2 . So basically , i override some file to add new ...
4
votes
1answer
50 views

Magento2 : Display Bestselling products for last 7 days

I want to display bestselling products for time inetrval 7 days. We can set period by day, month and year $bestSellers = $this->_bestSellersCollectionFactory->create() ->...
3
votes
3answers
56 views

Remove existing and assign new categories to existing product while updating it programmatically in magento 2

How can I remove existing and assign new categories to product programmatically in magento 2 while updating product data. <?php $newCategoryIds = array(5,6); $existingProductId = 25; $...