Questions tagged [product]

Denotes a question related to the Magento products.

1,402 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
332 views

magento-change product name base on value of custom attribute

I need to write some code in checkout/order review section. file--- app\design\frontend\base\default\template\checkout\onepage\review/item.phtml Now the problem in details: I have a drop down custom ...
2
votes
1answer
44 views

Magento 2 : Product Quantity Update Programatically If Product Status is Disabled

We want update product quantity programatically. If product status is Enable then quantity update properlly. But which product status is Disable quantity not update in it. We create one custom module ...
2
votes
1answer
458 views

How Can I Apply TAX Rule Based On Individual SKU Wise - Taxable Goods

I need to apply the tax rate for my all products with the unique tax rate, Tax rate different from each other, I mean all products have the own tax rate. How can I solve it?
2
votes
1answer
404 views

Magento 2 : How to Check Cart Items Satisfying Cart Price Rule Condition?

In my module I have condition like cart price rule. How to check item in cart satisfy condition or not.
2
votes
2answers
1k views

Magento 2: add fields to products collection

Ok so I'm trying to implement a simple export to CSV massaction on the Magento 2 Catalog products grid. I've successfully created the mass action item, as well as the admin controller. I am able to ...
1
vote
0answers
14 views

Product's Tax Class change to “None” on Reindex. Any ideas?

We've just migrated from Magento 1.9.2.2 to Magento 2.2.8. We noticed in the last couple of days some orders are created without billing any tax. When We go check the product We notice the tax class ...
1
vote
0answers
11 views

Magento 2.2.18 - Layout Update XML - not working at product level - need to add meta name=“googlebot” content=“NOINDEX,FOLLOW”

I need to be able to add some specific meta tags on a small subset of the products on my site. I have tried adding: <reference name="head"> <action method="setRobots"><value>...
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
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 ...
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\...
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 ...
1
vote
1answer
31 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 ...
1
vote
1answer
38 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, "...
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 ...
1
vote
0answers
36 views

Magento 2 - bundle product

I want to sell in Magento 2 products that depend from production. I will explain this base on coffee. Let say I have 1 Kg of seeds arabika as a simple product. This translate to 900 g of ground ...
1
vote
0answers
27 views

Product stock not returning to available stock in canceled order

Is there any explanation of why product stock from canceled order is not returning to available stock? Step to reproduce: I tried to order an item X (until place order) Open admin site, edit ...
1
vote
0answers
36 views

Button not work

Can u check my code please, ty when i press the button nothing happens I think error in "actions" public function modifyMeta(array $meta) { return $meta['general'] = [ ...
1
vote
0answers
14 views

Magento 2 : Unable to to get custom image url on list.phtml

i have created custom image attribute in magento 2 named as background_image screenshot below i want to show url of background image in my category listing page, i have tried below code but nothing ...
1
vote
0answers
25 views

Why quantity_and_stock_status is always 1 in /V1/products?searchCriteria in Magento-2.2.7?

I am using Magento-2.2.7 . If i call this endpoint /V1/products?searchCriteria , it always show each product having same quantity_and_stock_status . Whenever product is in_stock or out_of_stock it ...
1
vote
1answer
29 views

How can i import simple_links and downloadable_links of downloadable products?

i want to import downloadable products, which have multiple sample_links and downloadable_links, My Magento app is multi store site. like i have 7 multistore/multilingual, each product belongs to ...
1
vote
1answer
34 views

Magento 2 REST API: extension attribute for saleability not working for some products

I needed product's stock status in the product listing API: V1/products?searchCriteria[filter_groups][0][filters][0][field]=category_id&searchCriteria[filter_groups][0][filters][0][value]=144 ...
1
vote
1answer
98 views

Magento2.3 adding the products automatically to the parent category and to the subcategories which are on higher level

I am using Magneto2.3.0 I need this adding the products automatically to the parent category and to the subcategories which are on higher level If anyone idea reply me how to achieve this requirement....
1
vote
1answer
21 views

Product Description is not showing on product page

Getting my webstore up and going. Just noticed that I don't have a product description tab. Only the more information tab is showing. I am using the Luma theme and the only changes I have made are to ...
1
vote
0answers
21 views

Tax Class does not appear in product Magento 2.3.0

I migrated from Magento 1.9.x to Magento 2.3.0. When editing a product in admin the Tax Class is not shown and is not in any of the expandable sections. I can see the tax class in the product list (...
1
vote
1answer
24 views

Getting Subcategories even if product count for each is 0

In my module, I am getting the current ID and then using the category repository and the "getChildren" method. This works great, except it doesn't return child categories with product counts of 0. ...
1
vote
1answer
36 views

Magento 2 How to prevent product save with custom condition using plugin 'aroundSave'?

I want to prevent to save the product with my custom condition, for that, I want to use the plugin with method 'aroundSave', When the user clicks on 'Save & Duplicate' button I do not want to ...
1
vote
0answers
28 views

Can't update products in Magento 1.9

When I try to update a product nothing happens and I got the following messages in logs: 2019-05-16T07:19:30+00:00 ERR (3): Warning: array_key_exists() expects parameter 2 to be array, null given in ...
1
vote
1answer
28 views

How get products name magento 2 sql database

I am trying to get products name(value) and when i see my db table catalog_product_entity_varchar but in which in the column of value all base images are given so please tell accurate table or any ...
1
vote
0answers
170 views

How I can place a block anywhere in Store?

I want to place my best seller product list in the following places: Home Page Product Page Category Page Cart Page I want the administrator to select any of them according to the administrator ...
1
vote
0answers
20 views

Product page and category page disappeared

Developed on developer mode and everything is OK, just set production mode, home page and admin panel is OK but category page completely disappeared and shows a blank page and also product page is ...
1
vote
0answers
23 views

How to modify the collection of options in step 2 when creating product configurations magento 2

I have overrided this template module-config product/view/admin/templates/catalog/product/edit/attribute/steps/attributes_values.phtml now i can't understand where options com from in the file and ...
1
vote
1answer
30 views

Product Url Key is not generated on edit product

I have the following scenario: I have created a new product. I have left the url-key field blank. If url-key field kept blank, then on product saving, it will set url key value automatically ...
1
vote
0answers
38 views

Filter product with Ajax and return Json Array from a controller to show in a phtml file

Is it possible to return an array from a controller or from a block function to the phtml file? <?php namespace Mnuhell\FormSearchAttributes\Controller\Index; use Magento\Framework\App\Action\...
1
vote
0answers
36 views

Magento 2 : Two same products in cart but one must be FREE

I need to implement a functionality that do this : After an api call, I get some SKU of product. This product needs to be added to the cart, but as a free product. By doing this, this could cause a ...
1
vote
1answer
68 views

Magento 2 - How to show configurable product options in a popup

I would like to show the configurable product options in a popup in the mobile version of my store
1
vote
1answer
30 views

Hide virtual products on backend listing

I have a lot of configurable product in my backend listing, I'd like to know how can I hide all my virtual product ? (I want to show only configurable products on my backend). Can I do this from the ...
1
vote
1answer
25 views

Category name on product url still working after “Use Categories Path for Product URLs” set to no

"Use Categories Path for Product URLs" set to no on admin panel But everytime I create a new product, it creates rewrite also for category/product url So both of them work: example.com/category/...
1
vote
0answers
31 views

Set quote item product custom weight no holding through shipping

I am trying to set a custom product weight based on a set product custom option. I've tried multiple things like a plugin, before/after events, actual events like sales_quote_add_item etc. I am able ...
1
vote
0answers
16 views

How to add custom option field added to every created product in Magento 2 added to products under specific category?

i am trying to add custom option programmitically to products created under specific category in Magento 2 , But it isn't easy at all doing this, i tried to search for a solution on the internet but ...
1
vote
0answers
28 views

catalog_category_product_index_store1 has stopped updating on reindex

I am currently having issues with making products display when adding them to new categories. The table catalog_category_product_index_store1 is no longer adding new records when reindexing Has ...
1
vote
0answers
31 views

Need the help of an EXPERT in Magento 2

i am currently trying to wireframe a very custom website e-store, i will try to be as direct and clear as possible to my question: Is it possible to have for example, in a product page where you are ...
1
vote
0answers
62 views

Magento 2 How to make “Save” button same as “Save & Close” on product add/edit?

I need to make the "Save" button same as "Save & Close" on the product add/edit in admin? I need both buttons will behave the same. (when click on save it will save the product and go to the ...
1
vote
0answers
72 views

Product CSV file not exporting from admin in Magento 2

When we export Procuct Csv from admin side. Then csv not export. We get error There is no data for the export. Any one help me to solve this issue.
1
vote
0answers
60 views

How to get Quantity selected by customer on Product Page. Magento 2

I want to get the Quantity of the product selected by Customer on the Product page And also wan to get Qty and the product price on the Grouped Product explained in the image
1
vote
0answers
41 views

Magento 2: Backend Related, Upp-Sell and Cross-Sell Product Tab Filter Issue

When I filter Product By Name in related product tab product filter Working Completed, but without product add called save function directly and page redirect to the Catalogue page.Any idea,please ...
1
vote
1answer
13 views

Magento 2 - Buy minimal 2 products

We are using Magento 2.1 we have a cheap baby product in 10 different colors. And sometimes people order just one of it. With the shipping costs included this is not profitable. Now we would like ...
1
vote
0answers
16 views

Magento 1.9.2.2 Product Editor error

I got a following error. When I go to Product editor i cant see the text field. How can I fix it. http://prntscr.com/n0ca4d http://prntscr.com/n0cafh
1
vote
0answers
25 views

Show Product Out of Stock if Related Item Out of Stock

Is there a way in Magento 2.2.1 to mark a product out of stock if the related item is out of stock?
1
vote
1answer
29 views

Move theme layout elements on a product view from within a Module Magento 2

I am having trouble moving the short description on the product page. I tried with the move command within the layout file without any luck. I can move any new created block where I want but I can't ...
1
vote
1answer
65 views

How to get recently viewed product collection in observer Magento 2

I want to fetch a recently viewed products collection in the observer and by using that collection I want to add my custom product in that collection. Following Things That I Want To Achieve. On ...