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
11 views

Magento 2: Facing issue in “Edit Configurations” can't save product

I faced issue in "Edit Configurations" of product, can't save products, in Magento 2.3.1 with Apply images for all. Error: The "/var/www/html/magentosample231/pub/media/tmp/catalog/product/d/o/...
0
votes
0answers
8 views

Magneto 2.3.1 'Quantity source' becomes null when create product with the same name

I have Magento 2.3.1 setup and multiple products, When I am trying to create a new product with the same name, it is allowed me to create the product with the same name but the 'Inventory Sources' ...
1
vote
1answer
10 views

How to get product random collection in magento2?

I want to get the random 10 products from whole product collection in magento2. $productCollection = $this ->productModel ->getProductCollection() ->...
1
vote
1answer
29 views

Get product views in Controller

If anyone could help me. My curent value that I get is '0' in my controller: foreach($productCollection as $product) { $_helper_views =$this->helper_views->getProductCount($...
1
vote
1answer
18 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. ...
0
votes
1answer
26 views

array convert into Magento 2 collection

I have 2 collection 1 is $bestsalecollection that show in dashboard . second is product collection. After filter collection when i return it generate error Call to a member function isLoaded() on ...
0
votes
1answer
19 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 ...
0
votes
0answers
15 views

Grid sezielize ui-form

I have refer links to make tabs have grid product sezielize. However, I can't filter that product and post data when saving. It show error on console: TypeError: require is not a function[Learn More]...
0
votes
1answer
32 views

Magento 2 delete specific product categories

how can I delete specific categories for a product in Magento 2.Forex: I have a product with a,b,c categories, I have some conditions if the conditions meet my categories remains same but if those ...
0
votes
0answers
12 views

how to change the custom option value to download link in magento 2 order

Hi I have created a custom option for product working fine in the front end When I order this product in order view the product custom option showing as text I need as the ...
0
votes
2answers
38 views

Hide product price for specific products

I am using an extension for enable "Add to Quote" option instead of "Add to Cart" for some specific products. How can I hide price for "Add to Quote" enabled products (attribute ves_enable_quote) and ...
1
vote
1answer
18 views

Magento product “Save Button” not working

I am running Magento 2.2.2 and suddenly the products cant be saved anymore. Clicking the save button has no effect at all. There are no errors in the console. The network tab in Chromes dev tools ...
0
votes
0answers
13 views

Add Free Product to Cart price threshold doesn't work after discount applied

Were using Magento 1.9 CE We offer free gifts with purchase (GWP) when the GWP conditions are met. Most often the threshold is a certain $ amount. We have an issue that when a discount code is ...
0
votes
0answers
8 views

Force use of Flat Tables in Rest API

I'm wondering how to force the use of FLAT Tables in Rest API. I have a product API which is using the Magento\Catalog\Model\ResourceModel\Product\CollectionFactory. I've enabled the Flat Tables in ...
0
votes
0answers
26 views

How can I have a product attribute with a source model as a swatch?

I have a product attribute that I populate from my own custom table, I have a class that extends from \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource to be able to populate my attribute ...
0
votes
0answers
17 views

I am getting Invalid input datetime format of value '11/22/2018' when setting special price in magento 2.3.1

I am getting Invalid input datetime format of value '11/22/2018' when setting special price in magento 2.3.1.
1
vote
1answer
26 views

Get values of customizable option

Is there a way to get the SKU of the option of my product ? Can't make anything works Tried this : $customOptions = $objectManager->get('Magento\Catalog\Model\Product\Option')->...
1
vote
0answers
19 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 ...
0
votes
0answers
12 views

Unable to add product attribute using backend (Magento 2.3)

I've either come across a Magento 2.3.0 bug or I'm confused about how this process works. I'm hoping someone here can clarify what I should be expecting. I'm using the backend to edit products. I go ...
0
votes
0answers
15 views

Magento 2 : Stock status not accurate

I have some products which they are out of stock in backend and also in catalog pages, but on the product page, they appear as in stock. This behavior is the same whether the flat product enabled or ...
1
vote
3answers
64 views

how to add negative qty product into cart in magento. 2

How to add a out of stock (less than 0 ) product in shopping cart in magento 2 In my backorders setting i have custom option as Allow pre-order when i select a custom option and saved a ...
0
votes
0answers
17 views

Magento 2 after exporting products csv products id does not match back end product ids

After exporting products in csv file products ids does not match magento 2 backend ids please help this matter. Any help would be appreciated. Thanks in advance..!
1
vote
1answer
23 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 ...
2
votes
0answers
13 views

Product page count and record count issue on listing page

Unable to change the record on listing page it shows static number for all listing page as shown in the image It display 10000 for all listing page using $this->_productCollection()->getSize() ...
0
votes
0answers
12 views

Incorrect product sorting for numerical attributes (Magento 2.2.8)

I've got a shop with an attribute "capacity" created via Magento Backend: Shops -> Attribute -> Product It has "Text Field" as input type and "Decimal" as validation. So for new products therefore ...
0
votes
0answers
10 views

Magento2: Option of product : show and select only weeks

I have a date picker attribute for a product. How can I show only the number of the weeks so that the user can select only the weeks? (not the days of the weeks)
0
votes
1answer
18 views

Some of product detail page error- Element 'reference': This element is not expected

When I tried to change or open product I got next message: 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'reference': This element is not expected. Line: 1 ...
0
votes
0answers
10 views

divide existing configurable Products

Its a bit of a complicated Situation at a Clients Magento (1.9) Store. Products are generated programmatically by an Interface to a bigger Managementsystem for Goods. Most Products are Clothes with ...
1
vote
0answers
167 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 ...
2
votes
1answer
20 views

How to load current product in Magento 2 without using deprecated functionality?

The core uses two deprecated classes to load the current product within the block class on the front end: \Magento\Catalog\Block\Product\AbstractProduct \Magento\Framework\Registry See: \Magento\...
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 ...
0
votes
0answers
17 views

Sell simple product and configurable as pair

I'm currently using bundle products to list a simple product sold as a pair. Is there a better way to do it? The reason i'm asking is that bundle cause weird behaviour with tier pricing on the ...
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
23 views

Magento2: How to load a product using URL key?

I need to load a product using its URL key. I find methods to load using only ID and SKU like, use Magento\Catalog\Model\ProductRepository; $product = $this->_productRepository->getById($...
0
votes
0answers
12 views

Magento 2 Not saving product changes at the backend

Magento 2 I am trying to change product data - first time it is working fine, when i tried to change same attribute second time it not updating which i selected data
0
votes
1answer
37 views

How use Pagination in Custom Product Page

I display custom products in page. use controller ,block and .phtml files define block and template in xml file. Products are showing correctly i use template module/catalog/view/frontend/template\...
2
votes
1answer
21 views

How to get Latest Products Collection in my costum Module Magento 2

I want to get Collection of Latest Products in Magento 2 i have some restriction Without using Object Manager Without using API i have searched on internet found these two methods but i have to ...
0
votes
0answers
26 views

Magento 2 - Add new quote item when quantity changed to > 1

I wanted to add new quote item (new row on cart page) when the product quantity is more than 1. I already tried accepted answer provided here. Whenever I tried to add existing cart item from 'product-...
1
vote
2answers
54 views

Magento 2 - hide & disable add type product (Simple product … etc)

On Magento 2, and product page, there's a list of product type, I want to hide and disable and block a user to access an additional type of product, for example: hide Configurable product and ...
0
votes
0answers
22 views

Adding textarea to admin product view to show customers who ordered product?

I want to add a textarea to the Magento 2 admin product view which contains the customer ids of the customers who ordered that product. What would be the best approach? Has anybody done something ...
1
vote
1answer
24 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 ...
0
votes
0answers
12 views

requested product doesn't exist rest api

I'm creating rest api to add product to cart, it works okay for some users and doesn't for others. what is reason for that? here is the code: $customer = null; $isGuest = true; $quote = ...
0
votes
1answer
29 views

Change the name Attribute of product to not required magento 2

I want to generate the name of product based by sku. For example : when i enter 10014000 for the sku, the name of product will be Bovin phenelop 16/18 blanc 100. This information is coming from ...
1
vote
0answers
28 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
1answer
39 views

How change layered navigation filters orientation from vertical to horizontal on product page in magento 2.3

How change layered navigation filter orientation from vertical to horizontal? Now I have vertical-orientated filters, but I want to change them to horizontal.
0
votes
0answers
20 views

how to deduce the name of product from sku when creating a product magento 2

I have disabled the auto generated SKU so SKU is independent from name but in advance I want a new functionality when adding the sku 10014100 for example i will do a request in some table to ...
0
votes
1answer
25 views

How to get the value of input of custom attribute before the saving product in Magento 2

I want to recuperate the value of the input of two attributes of the product to do a request o database to recuperate some value from the custom table according to the value of the two attributes ...
0
votes
1answer
49 views

How get the collection of all Discounted Product?

I need the collection of all discounted Product . i find 1 table catalogrule_product in which all discounted products entity are available . How can get these all discounted Products ...
0
votes
0answers
10 views

How to import Text Swatch attribute Using Magmi?

How i can import text swatch attribute in Magento using Magmi? In my CSV file i will put the attribute code but the description is filled only like below:
0
votes
1answer
32 views

Magento1: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails

getting the error while uploading the media files to the products, I have tried repairing the tables and also tried increasing the INT value in table structure still giving the following error: ...