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
0answers
8 views

How to get/pass a custom product in cart, custom attributes value to a PHP file in Model folder [on hold]

I created a custom text attribute for all the products I created in the backend. It is called freight class. I want to pass the value of the freight class attribute of the item in the cart to a PHP ...
0
votes
0answers
7 views

magento 2 add associate Simple Products with custom options to Configurable Product not working

I want to add the simple products with custom options to configurable product.When I am trying to add the simple product to configurable product, it's not showing after product save.Need suggestion to ...
1
vote
1answer
16 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
1answer
19 views

display subcategoies and their products on parent category page

I want to display subcategoies and their products on parent category page I tried this code on ../Magento_Catalog/templates/category/products.phtml but it shows all product of the parent category on ...
2
votes
1answer
21 views

M2 | How to set default store view of product while creating the product programmatically?

I am creating simple product programmatically, but for displaying it on frontend I need to edit product from admin side and set its view from All Store Views to Default Store View Mannually, ...
0
votes
0answers
10 views

How to sort the product attribute options list in magento 2.3 alphabetically?

I am trying to sort the product attribute options list alphabetically. I have no idea how to do it for drag & drop fields. I want to sort attribute color, size, and brand.
0
votes
4answers
6 views

How to set qty number to add to cart on product page

How to set certain number when the product page loads up. Default level when you click on a product the add to basket quarry is always one how to change that to different value for each store. I know ...
2
votes
0answers
27 views

Magento 2: Use Categories Path for Product URLs is not working

I have two products having the same attributes as categories, attribute set, etc. And I have set Use Categories Path for Product URLs as NO but still, one product has the category in URL another don't ...
0
votes
2answers
24 views

How to get dropdown product attribute value Magento2

I have created a product drop-down attribute and assigned a value to it on the product. I need them on product detail page. $_attributeValue = $_product->getResource()->getAttribute('...
3
votes
2answers
42 views

Magento 2.1 pricing in 4 decimal places

I am trying to work with produce prices using 4 decimal places e.g. 0.0475 I have already got the prices to save and display in catalog admin by editing the following file... vendor/magento/...
0
votes
1answer
15 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
1answer
25 views

How to get product collection based on custom price attribute in Magento 2?

I am using Magento 2.2.2 I have created one attribute "Retail Price". Input type for this attribute is "Price". I have added values in some products for this attribute. Now I want to load product ...
0
votes
0answers
9 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
15 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
2answers
40 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
20 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
21 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
33 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
40 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
19 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
16 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
65 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
19 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
13 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
168 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
22 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
19 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
14 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
38 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
59 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 ...