Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [product]

Denotes a question related to the Magento products.

0
votes
1answer
15 views

How to set the category ids to a products from category path?

I want to progrmmatically create products from a xml. Ex : I am getting the product categories as like below. Default Category/Beer , Default Category/Beer /CRAFT, Default Category/Beer /CRAFT/...
0
votes
1answer
19 views

Override Magento\Catalog\Model\Product

I would like to add a new function to Product Model which be accessible each time I create Product. Below, my code : src/app/code/Project/Catalog/Model/Product.php : <?php namespace Project\...
1
vote
0answers
10 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
0
votes
3answers
43 views

Display Widget in phtml file magento 2

I have Following widget and its working in cms page but now I want it to display in phtml file {{widget type="Magento\Catalog\Block\Widget\RecentlyViewed" uiComponent="widget_recently_viewed" ...
2
votes
0answers
14 views

Product pages open with errors

I don't know if it is the reason to introduce custom CSS. Now my website opens some product pages, which prompts the following error. But some product pages are open normal. How can I solve it?
1
vote
0answers
14 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
48 views

Unable to get newly inserted Product's Id using After Plugin for Catalog Product save controller method

I have created interceptor for catalog product controller's save action <type name="Magento\Catalog\Controller\Adminhtml\Product\Save"> <plugin name="ricky_catalog_save_product" ...
1
vote
1answer
17 views

Base table or view not exist

I want to import product or create them via the BO. Before, it's was OK, but, I don't know why, suddently, it's impossible to me to create product. Each time, I got this error : SQLSTATE[42S02]: ...
1
vote
1answer
22 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 ...
0
votes
0answers
8 views

Configurable product own url M2

I have configurable product and has size and color options. I want when user clicks the color then want to change Url of the product. My colors are swatches type Looking for good approach. Thanks
2
votes
1answer
26 views

magento 2 Uncaught TypeError: Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() must be of the type string

In custom theme And category page show this error- Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() must be of the type string, null given, ...
1
vote
1answer
33 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 ...
2
votes
0answers
19 views

Magento 2: How can I modify the product edit page depending on my custom product types

Is it posible to hide/remove default fields and fieldsets from the product edit page for custom product types? For example weight, price, tax_class...
2
votes
0answers
24 views

add product title into product tabs

I am trying to add the product title and short description within the product tabs on the luma theme. With short description, I am happy to use the move object to place this into the tabs but I need ...
1
vote
0answers
36 views

Could not save product “” with position 0 to category - Magento 2

I have gone through all the links as possible..but i don't find any solution for this.. From this Link ..its already fixed in 2.2.4 My current version is 2.2.7 and still i am facing the issue.. ...
1
vote
0answers
27 views

Product list page configurable product price in negative value in magento 1?

Product list page configurable product price in negative value in Magento 1? How to correct it? Single product page the price is correctly showing
2
votes
1answer
34 views

HTTP 500 error with a php script

The following piece of code provided by SuperDicq Remove products from all categories when price is zero) gives me a HTTP 500 error, anyone knows what's wrong? I changed the name of htaccess, put ...
0
votes
0answers
16 views

Magento 2 - Product Customizable Options is not showing on frontend

i create a product with Customizable Options but sometimes at frontend, the place which custom options should have appeared is now nothing I'm not sure why it happen, but when i resaving the product ...
1
vote
1answer
24 views

How to get currently selected product id of configurable product on view page?

I need to change name, price, SKU and more when options are clicked. So I need the product ID of the selected option in the product view page. I have a Custom phtml file to write my own alteration in ...
0
votes
1answer
26 views

Custom Product export in Magento 1

I want to Product export. But I need Only data which I need. For example, I need not "gift_message_available" attribute value. So Please tell me what I should I have created the profile. but When I ...
0
votes
0answers
26 views

Single Page Magento 2 Theme - Add Product To Homepage

I made but I am stuck. The site is a simple one-page Magento 2.3 theme, with the homepage having a single configurable product. I am at a loss of how to add the product to my block, displaying the ...
0
votes
0answers
44 views

Magento 2 REST API delete all products

I want to delete all product using Rest API in Magento 2.
2
votes
1answer
39 views

Magento 2 : Join category name in product collection

I want to join category name in product collection. I want to use that in product grid filter which is used in my custom module. This is my collection code. It's same as like this _prepareCollection()...
1
vote
2answers
30 views

How to update sku code using Rest API in Magento 2?

I want to update sku using Rest API in magento 2 Call: PUT /rest/V1/products/{sku} Request: { "product": { "sku": "modified.sku", "name": "modified name" } } Result: The name has changed, but ...
1
vote
2answers
23 views

How to share product image and details in social media in Magento 2?

I want to share product image and details to social media in Magento 2 using addthistool. We have added http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5b30cd59923bb69c js in header part ...
3
votes
2answers
95 views

Allow only one qty of item into cart in Magento 2

I have created a custom controller in my module and calling via ajax to add the item to cart. Below is my controller code. <?php namespace {Vendor}\{Module}\Controller\Product; ...
2
votes
1answer
26 views

Product view page scrolls up randomly on mobile device

In the product view page when I scroll down a little bit, sometimes (very often) the page scrolls to the top. This is the effect of the scroll up: https://www.youtube.com/watch?v=aKwLVwIMrpM
4
votes
1answer
42 views

Can't change product description in specific store view

I'm using Magento 2.3. I have created some store View But in my product i can't change short description and description, all the other field change without any problem, i can only change it in "...
2
votes
1answer
16 views

Can an Attribute be used more than once in an attribute set?

How to reuse an attribute in the same set? I have a product that has multiple items and I'd like to use "description" (attribute) several times.
1
vote
0answers
18 views

Magento Product Listing Sort By not working on some category

The issue is that on some of the category pages the Product Listing Sort By is not working while on some it is working.
0
votes
0answers
8 views

When do product changes become public after a “save” operation (with varnish)?

We use Magento2 with Varnish (2 instances). I wonder when exactly a product should update in the frontend after being created / updated / disabled / enabled / mass updated / ... especially on product ...
-1
votes
1answer
17 views

Where we can set property for product is salable or not

I want to know where we can set property 'is_salable' for products. I have checked for all attributes if there any attribute for that but not found any. Then Where we can set this property to the ...
1
vote
0answers
23 views

Magento 2 : Custom field data is not saving in product add edit

Custom Field is showing in Product add/edit but data not saving. Here is my full code Vend\Customattrib\etc\adminhtml\di.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="...
0
votes
0answers
14 views

How Can Product Registrations from a web form, stored in magento, get pulled into an email?

Customers Register Product, serial number and date purchased on our website. The data is stored in Magento under customers>product registration. How can the submitted product registration data be ...
0
votes
1answer
41 views

Error While Saving Product and doing reindex in Magento2.3

When I run the reindexing command got this error: Fatal error: Uncaught Error: Cannot instantiate interface Magento\InventoryIndexer\Model\StockIndexTableNameResolverInterface in /home/public_html/...
2
votes
0answers
24 views

Magento 2 : Product list only shows one product in one of the category, the rest works fine

Product list only shows one product in one of the category, the rest works fine. That category has more products, if you search for a product, you can access its product view and in related products ...
1
vote
0answers
17 views

How Can we use React JS product View page in magento 2?

I need to do some functionalities in which the page to not load. I prefer to react js but I don't know how to add react js for selected modules of Magento. I need to react for Magento component view ...
1
vote
0answers
50 views

Magento2 : Having issue with product add to cart jmeter

I am using Magento2.2.5 and using benchmark_2015.jmx, Facing issue when test for logged in customer and adding product to cart, Cart shows empty. It's default magento benchmark_2015 script, stored in ...
1
vote
0answers
10 views

Connect external product API to Magento

An external API contains 250K products. I am setting up a new online store and would like to import all products, categories, product variables, prices into Magento. How long would a job like this ...
3
votes
0answers
167 views

Magento 2 : keep disable product in cart

I want to keep disabled product in cart. Let's say I have added one product to the cart. After that I have disabled that product from Magento admin. Now when I visit cart page, there is message that ...
0
votes
0answers
36 views

Magento 1 Admin panel a lot of problems please help

We started to get a lot of problems in our magento admin back panel. The problem is that we cannot enter to products and to some of extensions. It simply loaded for several minutes and than going to ...
2
votes
0answers
16 views

Magento 2 admin product custom option page add customer group dropdown

I want to add customer group dropdown on product custom option page. the reason behind is to show the custom option based on the customer group in front-end. how can i achieve the above functionality....
2
votes
0answers
19 views

Create advanced shopping cart rule in Magento 2

I want to create a shopping cart rule in Magento 2. I have 6 products (range product A -> product F) to keep it simple. Those products cannot be ordered without a valid discount code. if cart has one ...
2
votes
0answers
32 views

Update select attribute in custom_attributes via catalogProductRepositoryV1 API PUT request

I'm trying to update a product with the catalogProductRepositoryV1. I want to change a custom select attribute for the given product. When sending the following request: { "product": { "...
2
votes
1answer
53 views

Get Product price by customer Group magento 2

I am trying to get Product price by customer group. Used below code. $sku = 123; $customerGroup = $this->getCustomerGroupId(); $currentProduct = $this->loadProduct($sku); $productPrice = $...
1
vote
0answers
7 views

Is there any way to retain the entered customer billing/shipping addresses in magento admin once entered?

We see that the addresses of billing/shipping added to the order creation process gets erased if we remove all line items from the cart and then add back new product using "Add products by SKU" button....
1
vote
0answers
15 views

Magento : How to set product type as 'Simple product' when adding new product? OR how to change the product type from virtual to simple?

Currently, when I am adding new product its product_type is set to 'Virtual'. I am adding simple product as shown in below image. Why this is happening while adding the product of type simple.
3
votes
0answers
40 views

Magento 2 - Product names with number/digits & special characters are not searchable

I have product names like ' 8" X 6" cards ' they contain measurements i.e. numbers and characters. when I try to search these products on the frontend. the Ajax search returns the product fine and ...
1
vote
1answer
19 views

Magento 1.9 show productData on catalog/product/list.phtml

I am trying to display an if statement for products to show Item details if they exist. Otherwise display an attribute. <?php echo $_product->getAttributeText('filter_metal'); ?> and it ...
1
vote
0answers
21 views

Magento 2.2.5 product redirects to other category

I'm having a strange situation. When i select a product in my webshop, the category and breadcrumps are from a different category. Yes, the product is also available in this category, but i don't want ...