Questions tagged [product]

Denotes a question related to the Magento products.

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

Magento2 Add Product API With Custom Attributes

I know how to call Add product API in magento2 by default. But here i want to add Option Names Like Maroon , Red Instead of values like 143 , 167 etc. Here is our default Payload { "product&...
0
votes
0answers
9 views

Magento 2.3: Round Brackets Issue In Product Meta Fields

I'm using Magento 2.3.4, I don't know why this is happening but when I enter round brackets () in Meta Fields e.g Meta Title Meta Keyword Meta Description and save product it gives me an error like: A ...
0
votes
1answer
20 views

Product Form Modifier Datetime Can't store correct DateTime to product attributes

I created a product attribute called datedate want to store DateTime, in default Magento product attributes, just have a date input type, so I using Ui Modifier to config date picker support time, ...
0
votes
1answer
50 views

Magento 2 : get Mysql Query of products

I wanna show in my mysql query of all attributes name,product name, product status is 1 and sku but in my query its not showing product name and status so could you help me in my this query ? SELECT ...
0
votes
0answers
17 views

extension not working

I have bought bundle option image extension https://bsscommerce.com/magento-2-bundle-option-image-extension.html to use in my https://adarccomputer.com/newpc.html .though i have tried many times the ...
0
votes
0answers
12 views

Magento 2 : How to Change Product Price on Save some Fields in Backend?

I have Created some fields and add some data which is saved in core_config_data table. I want to change the all product price on saving these data which is depend on these data. Any Help is ...
0
votes
0answers
27 views

Stock management on Magento 2.4

I want to show available stocks on my magento 2.4 store front and user can choose any stock that he wants, for example I have a stock on Miami and a stock on Florida for SKU 325, now customer wants to ...
0
votes
0answers
30 views

Magento 2 setting product stock

Can you please help me on setting stock programmatically for already existing product. I have a Magento 2.3.5-p1 instance, so StockRegistryInterface, StockItemInterface, setStockData method of ...
0
votes
0answers
15 views

How to add js file for specific product type edit page?

I create new product type in Magento 2. I want add js file for specific type to product edit page. How i do?
0
votes
1answer
30 views

update product websites on magento 2 programmatically

I have come across posts to update products websites programmatically for Magento 1. However, I do not find the same for Magento 2. Ideally, a command would really be useful. Can somebody help with ...
0
votes
0answers
10 views

Change first product image that is displayed on product page - Magento 2.3.5

How can we change the product image that is displayed first when the productpage is loaded? At the moment this is the first image in line, but we want to change this to be the "base" image. ...
0
votes
1answer
44 views

How to use orderCollectionFactory and productCollectionFactory together in Model file?

I have created a custom attribute in product and saved a string in that value and I want if some one order those product of same value string i want that collection of product. So, i want to use \...
1
vote
1answer
28 views

How to get orders based on custom attribute value of product?

I have a Custom attribute name ( product string ) on Product in which i have save a string i want to get those orders which will have that product string of same value. I will get the product by : $...
0
votes
0answers
12 views

Get product list in custom admin grid form magento 2

I have a custom admin grid form, I want to select product like this when add or edit form How can i do that? Any help? Thank in advance.
0
votes
1answer
25 views

How to get custom attribute value of ordered product?

I have a Custom attribute name ( product string ) on Product in which i have save a string i want to get that custom attribute value for ordered product. I have getting the ordered product by this ...
0
votes
0answers
18 views

how to add dynamic rows to edit product page for specific type

I add dynamic rows to the product_form.xml file as follows. However, it appears on all product add pages. How do I just add to the specific type I want. <?xml version="1.0" encoding=&...
0
votes
0answers
18 views

How do I exclude products with discount from coupon codes?

I need put a coupon code. But I don't need the products with any discount (catalog price rule). I want to make discount coupon only for products with normal price. Is this even possible?
0
votes
0answers
21 views

Product Qty update after order place Magento 1.9

I am doing it via observer but nothing is working. here is my code snippet: config.xml <checkout_onepage_controller_success_action> <observers> <qtyupdate> ...
0
votes
0answers
19 views

Magento 2.3: product quantity shows negative value but I have the backorders disabled

why I have negative stock qty? I don't enable the backorders options and any products show negative values. Any idea? Working in Magento 2.3. Regards.
1
vote
2answers
26 views

Custom Attribute not saving on Product

I've created two custom attributes, but when i create a simple product, just saves one attribute. Using postman,the request has both attributes fields, but the response just has one. Any help is ...
1
vote
2answers
28 views

Product image by ftp url

I need to pass an url of an ftp to be the product image by the magento api, can I do this? Something like { "attribute_code": "image", "value": &...
0
votes
0answers
20 views

Magento 2 custom field not exists in request

I have added a custom row builder using phtml (template) to product creation form. However, when I submit the form, it does not send my custom input values to the server. my phtml file is like the ...
0
votes
0answers
16 views

Magento 1 shopping cart: product list empty, but there is products

When I open shopping cart, the product list seems to be empty; however there is products, infact the total show the price. Any suggesion? Thank youenter image description here Magento 1.9.4.5
0
votes
1answer
13 views

Magento : Assigning products to (new) websites programmatically do I need to run an index and which one?

In Magento When assigning products to (new) websites programmatically do I need to run an index and which one? When using Mage::getModel('catalog/product_website')->addProducts(array($...
1
vote
1answer
15 views

How to change Product price of a Cart? [SOLVED]

I created an order using Rest Api and i want to change the Produt Price from a Cart. I tried this: But didn't work, this line: $quote = $this->quoteFactory->create()->load($resultQuote->...
0
votes
0answers
15 views

The errror message “We don't have as many of some products as you want” is showing while adding the product to cart

I am getting the error message "We don't have as many of some products as you want" while adding the product to cart. Help me to resolve this.
0
votes
1answer
21 views

Magento2 Use of “Cost” In Catalog Product Edit Advanced Pricing Section

Does anyone explain me what is the use of "Cost" Attribute in magento 2 catalog product edit advanced pricing section?
0
votes
0answers
65 views

Magento2.3.3 - Can't check requested quantity for products without Source Items support in product list grid

I see someone getting the same error but different magento2 version. Ref - Can't check requested quantity for products without Source Items support
0
votes
0answers
17 views

error comming while add to cart using textarea in magento 2.3.5

I am facing this kind of error while creating module for custom add to cart in magento 2.3.5. So can anyone have idea then please share with me. Thank you in advance.
0
votes
0answers
8 views

Magento2 Configurable showing add ot cart button when product is set out of stock

For configurable product - when I set option Out Of stock to main product it is showing that's fine. But also add to cart button showing is not expected as it is out of stock now. When I try to add to ...
0
votes
0answers
32 views

Magento 2 - Get custom attribute of child products of a configurable

I tried to get value of my custom attribute of child products in product details of a configurable but without success. This is my code but not work: $simple_collection = $_product->getTypeInstance(...
3
votes
1answer
46 views

Creating a csv file that contains product details magento 1

I am trying to create a csv, using script that contains the below product attributes. (id, title, description, link, image_link, price, availability) in Magento 1 Has anyone implemented it? Or Any ...
0
votes
1answer
34 views

Move custom product in More Information Tab

I want to move product attributes inside the more Information tab. Can someone help?
1
vote
3answers
210 views

Magento 2 - After migration Catalog -> Add Product return Fatal error - How to deal with Attribute set after Migration?

After migration from Magento version 1.9.2.3 to 2.3.4 If click Add Product i am getting the following error, Errors: System.log : [2020-09-18 10:37:04] main.INFO: Consumer "async.operations.all&...
0
votes
0answers
13 views

Image gallery area disappear in admin product

I am using magento 1.9.3.4 I'm trying to add images for product in catalog->Manage product->side bar/images option But I can't see image gallery and upload button So I have a look console log ...
0
votes
0answers
10 views

How to programatically assign multipe Bundle Products into one bundle product?

I have one project requirement, which have one Bundle product, in which requires multiple bundle products (nested levels) same as Simple Products Options association allows. Is there any way to ...
0
votes
0answers
18 views

How to add column to product grid magento 2?

How to add column to product grid magento 2 ?
0
votes
1answer
42 views

Products are not updating programmatically Magento2

I'm trying to update product details by this code - public function updateProducts(){ $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // instance of object manager ...
0
votes
2answers
148 views

How to add a custom link to product page magento 2

I want to add custom link in More Information tab. See attached screenshot: I want to give a link instead of text
0
votes
2answers
53 views

Magento 2 - Add multiple simple product in cart programmatically

I'm trying to add to the cart the simple products of the programmatically configurable product. For now I have this script that only puts 1 item in the cart and does not update the minicart: <?php ...
0
votes
1answer
24 views

Product URL issue in Observer Magento 1.9

I have create an Observer function which is call after product save but having some issues with product url. Getting product like: $product = $observer->getEvent()->getProduct(); Getting ...
0
votes
1answer
25 views

Get data from orders with observers

I am with magento 2.3.4, and I want to capture the information: product order client I would also like to know how I can print the data on the console. I am using the observer when ordering ...
1
vote
0answers
39 views

Magento 2 How to Update Product Saleable qty using programmatically with Magento standard code

How to Update Product Saleable qty using programmatically with Magento standard code ? i am able to update product quantity using below code - protected $_stockRegistry; public function __construct( ...
0
votes
0answers
34 views

Magento 2 REST API V1/products list all inactive Tier Prices

I am using /V1/products API Call to get the product list. It contains the inactive tier prices (means expired tier prices). Either I need to get the tier price from and tier price to or I need to get ...
1
vote
0answers
20 views

Product's Custom Attribute ISN'T updating on the ADMIN PAGE

I'm beginner at Magento 2 and i'm trying to update an attribute value from a specific product. The update works on the API, but seems to have not updated on the admin page. What could it be? Any help ...
2
votes
4answers
167 views

faster way to update attributes/ update product programmtically with stock data in Magento 2?

I have this code but Anybody tell me faster way to update products. This below code takes much time. So any alternative solution for to save product in fast way and Can I also put sleep function at ...
1
vote
0answers
15 views

How to add all product to a category at once magento 2

I want to add all website product to a specific categories using database query.anyone?
0
votes
1answer
13 views

Assign attribute to a product using mysql Magento 2

I am trying to assign attribute to a product in mysql, but not able to do so. Any idea how to do it ?
1
vote
1answer
39 views

Call current product in custom phtml file in Magento 2

On the product page I created a custom module to override the form.phtml file. I also added the option to include a new file called customFile.phtml when the user clicks on a button that is positioned ...
1
vote
0answers
35 views

Magento 2: Add product attribute to product by SQL

I am trying to add a product attribute to a product in Magento 2 by SQL, but its there is some issue in it. product id is = 244992 product attribute code is = 70

1 2
3
4 5
93