Questions tagged [product]

Denotes a question related to the Magento products.

1
vote
1answer
25 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
11 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
169 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
29 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
24 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
18 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
42 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
25 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
27 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
61 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
29 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
15 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
31 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
30 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
42 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
21 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
26 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
51 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
15 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
43 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: ...
0
votes
0answers
14 views

M2 | Close First Group as “Product Details” on Product Creation Form

I need to close first group as "Product Details" and show custom fields at top on product creation form as in screen shot: I think this feature is originally available in Magento Enterprise Edition ...
0
votes
1answer
61 views

Fatal Error: 'Uncaught Error: Call to a member function setCustomPrice() on boolean magento 2.3

Here i am trying to add product to the cart using customerId and productId without customer logged in, it's working fine but its not adding custom Price to that product,please guide me if you have ...
0
votes
0answers
26 views

How to add product to the cart with customer id and product id magento 2.3?

Actually while adding product to the cart with product id and customer id, i am facing one error "We found an invalid request for adding product to quote." If anyone have any idea please guide me. &...
0
votes
1answer
36 views

Magento 2 : Default filter on sales admin order grid

I need to create a filter on sales admin order grid that only shows the orders that contain products from a specific source. I found questions that sort of answered this for Magento 1 but not for ...
1
vote
0answers
35 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
36 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
2
votes
1answer
28 views

Unable to access the PUT API service of Magento 2 through Python

I'm trying to update a particular product in Magento through PUT using python. I'm using OAuth1Service for authentication to Magento 2. GET products is actually giving me all the products in Magento ...
0
votes
1answer
32 views

Magento 2.1.17 product imported but product images not show

I want to import product in Magento 2.1.17 product imported but images show error - Imported resource (image) could not be downloaded from external resource due to timeout or access permissions in ...
0
votes
0answers
20 views

Magento 2.2.6 quick search is not working for sometimes

I am trying to search a product through a quick search using the product name and its brand name. But it does not work for all product. Only for some product. E.g if I search products of brand "XYZ" ...
0
votes
0answers
16 views

How to update the stock status after the quantity changed in magento 2.2.4

I wish to update the stock status while saving the product. If the quantity is 0, then I wish to update the stock status as out of stock. If the quantity is 1 and above, I wish to update the stock ...
0
votes
0answers
35 views

Magento 2 : Assign Child Product Image to Parent Product

I was wondering if there is a way to programmatically assign child product image to its parent product via objectmanager or via some event in Magento 2? Thank you for the help.
1
vote
1answer
27 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
2answers
125 views

How to set qty to product on MSI Magento 2.3

In my custom module, I'm using StockRegistryInterface to set qty and save my product. But on Magento 2.3 I started facing the issue of having 0 salable qty right after saving the product. After ...
0
votes
1answer
13 views

How to get category image based on category ID?

I am trying to get an image which is uploaded for the category. & also I have category id and want to load complete details of that category based on category ID. How can I achieve this?
0
votes
2answers
35 views

How to get a each product id in category page in Magento 2?

How to get a each product id in category page? I need to get the product id in custom module template file.
-1
votes
2answers
21 views

How do I get the product updated timestamp?

I am trying to display the data and time for the last time the product was updated. <?php $product = $block->getProduct(); ?> <h1><?php echo $product->getData('spec_sheet'); ...
1
vote
1answer
23 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
26 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 ...
0
votes
2answers
54 views

send custom product price to checkout on add to cart in magento2

I have a custom price in phtml which is shown in the product page.Now I want to send that price to checkout page on add to cart click in magento2 that custom price is coming in js variable and input ...
0
votes
0answers
7 views

Where to edit magento 2 catalog pages

So I have a magento 2 installation on Ubuntu (aws lightsail) and I am using the pearl theme. I have ftp/server/ssh access. I am trying to add some custom html to the catalog pages to have the banner (...
0
votes
1answer
30 views

Add additional tab after reviews

I am trying to have a few more additional tabs added after the Reviews tab, though my tab keeps appearing as the first tab <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
1
vote
2answers
134 views

Magento 2 import bulk products with custom attribute

I have created 1 custom attribute (current_user_id) and saving value when product is saved. I have usecatalog_product_save_before event that save value for my custom attribute(current_user_id). code ...