Questions tagged [product]

Denotes a question related to the Magento products.

Filter by
Sorted by
Tagged with
1
vote
0answers
14 views

Magento2.4: Getting error while importing the product custom option

We have created the product custom options by uploading the csv file but its showing the error and the uploaded custom option is not showing in the frontend. Getting the below error: Integrity ...
0
votes
0answers
13 views

How to use Magento Luma theme for a specific block in the product detail page - product info detailed

I am using the Magento 2 Claue Theme for my Magento 2.3 store, I would like to know if I can use the Magento Luma theme for a specific block which is "product info detailed" in the product ...
0
votes
0answers
7 views

Magento 2: Load product data-block (via webservice) on product page

We use Magento 2.3. We should be able to load a data block (containing a message related to the speed of delivery) on the product page. The message should be loaded real time as it depends on the ...
0
votes
0answers
20 views

Override function that fetches the price from the database

I'd like to temporarily increase the prices on a Magento 1 site by 10% without actually changing their prices permanently, as I will remove price increase at some point in the near future. I thought I ...
0
votes
1answer
18 views

Magento 2.3. - Customize product image on frontend

I would like to create custom fonts, pre-defined images uploaded in admin, and then on the frontend user can choose to customize the main product (for example product is a mug) and can choose to add ...
0
votes
3answers
43 views

Magento 2: How to get ordered item details from order collection?

I have successfully got the order details and below is my code to get the details. Now, I need to get the ordered item details. Please guide $collection = $this->_orderCollectionFactory->create()...
0
votes
0answers
7 views

Magento 2 Scheduled Mass Update of Product Attributes based on Filters/Rules

It has always boggled me. We can target products using filter/rules conditions for coupon discounts, we can target products using filter/rules conditions for price rules using a schedule.. But we can'...
0
votes
1answer
22 views

How to add manufacturer details in grouprd product?

i want to show manufacturer details in grouped product. but i am not getting the manufacturer attribute in product detail page. For reference please find the attached image.
0
votes
1answer
23 views

How to get Selected categories ids by jquery in product add/edit page

I want to get categories ids from the select box which are selected in the product add/edit time on the admin side by Jquery. I tried to get value from the hidden box but not able to find a hidden box ...
0
votes
0answers
12 views

Magento 2 - Add image to a product programmatically without saving the whole product

I'm writing a script which saves products programmatically using a large file of data (6k products). My file can add or update a product. Saving a product is a long process, so if the product already ...
0
votes
2answers
28 views

Magento 2 - Passing Values From Product Page to Cart

I have created 5 Custom Input Fields (not Attributes) in the Product View Page. The Customer can write his Values inside if he want to modify the Product Values. I want to pass them to Cart, and later ...
0
votes
3answers
31 views

Get reviews by SKU and id using SQL query in Magento 2?

I want a SQL query to get product reviews by SKU using Magento2 for example, It should contain, SKU,id,title,discription,name Please help me someone for the same. since I am new to Magento 2.
1
vote
0answers
15 views

Product collection and Product Repository return different results

I am a little confused about the difference between getting products by Collection and use de Repository. Right now, in one project, if I run this code: $collection = $this->_productModel->...
0
votes
0answers
37 views

Is there a way to show products on frontend without indexing in Magento 2?

I have 60 million products in my store so I want to show products on front-end without using php bin/magento indexer:reindex command. Is there a way to show products on front-end without indexing.
0
votes
0answers
19 views

How to Change Page Title for Product Page

I'd like to add a product's designer as part of the title on the product page. I tried changing app/design/frontend///Magento_Theme/templates/html/title.phtml and added a sample designer name under it,...
0
votes
1answer
16 views

Magento 2: Get price for every attribute

I want to get price per attribute (this price will change when I change color or other attributes). Here is the method that shows the estheics swatch: protected function extractNecessarySwatchData(...
0
votes
0answers
13 views

Magento1.9-Json Output for Category / Product

How can with a parameter in URL eg: "http://mage.test/product1.html?jf=true", get detail from Category or Product as JSON. The product detail page has a few custom blocks (breadcrumb ..). I ...
0
votes
1answer
23 views

How to disable product edit per field based on admin role in Magento 2

I have some differents users that will be use the admin, on this way, I need to create different rules to edit the products. On this way, I´ll create a rule that the user can edit just PRICES and ...
1
vote
1answer
45 views

How to check indexer reindex progress in Magento 2?

I have 60 million products in my Magento 2 Store and i have run php bin/magento indexer:reindex query using terminal. Now the issue is that the indexer running from around 100 hours but it will show ...
0
votes
0answers
18 views

Prevent new customers (never purchased anything before) from ordering specific products in Magento 2

I am in a situation that requires to prevent new customers (who never purchased before) from placing an order that contains some specific products. These products should be available for all customers ...
1
vote
0answers
20 views

How to add schema for products in product page ? Magento 1

I am trying to create the product markup like below <script type="application/ld+json"> { "@type": "Product", "@context": "http://...
0
votes
0answers
30 views

How to add custom tab like “Up-Sell Products” in product edit in Magento 2.4.1

I want to create custom tab like "Up-Sell Products"
0
votes
0answers
20 views

Recent Viewed Product

Recently working on Recent Viewed Product. As I have already figure out that I can get product Id from Local storage and can be achieve by using JS but I want to do it using block. How can I achieve? ...
0
votes
3answers
39 views

How to change all products titles in Magento 2?

How to change all products titles using script or coding in Magento 2. I need to change all the products title on product description page.
0
votes
0answers
16 views

How to use Ajax addtocart on custom phtml file (Accessories Product)?

I'm trying to use the addtocart button like this one: <?php $postParams = $block->getAddToCartPostParams($_product); ?> <form class="tocart-form" data-role="tocart-...
0
votes
2answers
57 views

indexer:reindex not running in Magento 2

I have 60 million product in my Magento 2 Store. On running sudo php bin/magento indexer:reindex it will run successfull for only 2 the don't know why it doesn't show any error. Any it will not ...
0
votes
1answer
60 views

I have 60 Million product in my Magento 2 but indexer:redindex not working

I have 60 Millions products in my Magento 2 Store. But when i run bin/magento indexer:reindex command. It is struck on Category Product Index. When i check on backend it is stuck here. [![enter image ...
0
votes
1answer
22 views

On opening Product Single page gave error from Admin in Magento 2?

I have 60 million Products in my Magento Store. In my Magento 2 Admin When i go to admin panel and click on to view a product it gives me an error . Class StripeIntegration\Payments\Model\Adminhtml\...
1
vote
1answer
19 views

Product Page blank

I recently upgraded some Symfony packages through composer and did basic upgrade commands (setup:upgrade, setup:di:compile, setup:static-content:deploy, cache:clean). Suddenly, my product pages come ...
0
votes
0answers
17 views

Magento 1.9 - Getting exception while uploading product images

When I'm trying to upload product images in backend and save, getting below exception in debug file - 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column ...
1
vote
1answer
27 views

Magento 2 - get cache url of media gallery images of product

This is my code for get cache url of images: $images = $_product->getMediaGalleryImages(); foreach($images as $child){ echo '"'.$child->getUrl().'"'; } Result expected: ...
0
votes
0answers
14 views

Filter Out Of Stock Products on dropdown

I'm new on Magento and I'm getting troubles with something I thought could be very easy. In my revision form for an order I want to filter out the out of stock products as well as the ones that are ...
0
votes
0answers
8 views

Display specified variations of a configurable product in category display page, all linking to configurable PDP

This is less of a coding question and more of community knowledge. We would like to include product filters on our site, specifically for size and width. However, at the moment, for products with ...
0
votes
2answers
33 views

how to get product quantity in magento 2.3 in phtml file

I am using Magento 2.3 , in my case I want to test if a product has a quantity greater than or equal to 0 in the list of all product page, to add a message a customer, but I wonder how to get it, for ...
1
vote
1answer
41 views

I need to show the product sku in two places on the product page in Magento 2

I'm trying to show the product sku in two different places on the product page. Is this possible and if so how can I do it? The sku is currently further down the page but I would also like to display ...
0
votes
0answers
7 views

Magento 2 Add Product backend event

Is there an event in the backend that I can Observe when Add Product button is clicked? I need to limit a vendor from adding products (20 products maximum), but I don't find a way to override or catch ...
0
votes
0answers
7 views

Cart rule is not applied for Euro Currency format

Below are the cart rule which is working fine for $ currency format but it is not working or Euro currency format,Please help on this Apply the rule only if the following conditions are met (leave ...
0
votes
0answers
11 views

How add custom checkbox to product price in save/edit product page on admin panel?

How i can add custom checkbox to save/edit product page in Admin? I need to add a checkbox like 'Use Default value'. Tell me how can I do this? Thanks everyone for the help!
0
votes
1answer
18 views

How to after clicking color or size, the price will not change in magento 2

I changed the product price by javascript. But after I click on color or Size, the product price displays the original product price. I don't wanna be like that, please someone please help me with ...
0
votes
0answers
9 views

The product name in the page title is being replaced with the meta title

When a product has a meta title set this is being used as the main header eg the product name in the H1 tag on product detail. This should be the product name. Does anyone know how to stop this from ...
0
votes
0answers
19 views

How can I add a total qty column in the product grid in Magento 2?

I'm using MSI and I would like to add a column that shows the total qty of a product in all sources. So basically a sum of the qty in all sources. So let's say that currently one product shows ...
1
vote
2answers
27 views

Retrieve product url with category in the graphQL

I've enabled at backoffice the usage of the category inside the product url by setting this option: When I access the magento frontend, I can now access the product with the url <category>/<...
0
votes
0answers
8 views

Magento custom related product module

How can we create form in admin backend that takes product_id and attributes like color=='red' or price>100 and category selection to which that related product should be added and displayed in ...
0
votes
0answers
9 views

Magento 1.9 - How to display upsells products in popup on add to cart click?

In Magento 1.9, when someone click on add to cart button I need to show a popup with upsells products. I don't how to achieve this, can you help me ? Thanks
0
votes
0answers
10 views

Please help! How can you display individual quantity for each variation?

I have a configurable product with 3 variations. The quantity for each is 1,3 and 5. I want these quantities showing when selecting the relevant variation, but it currently shows the total 9, no ...
0
votes
0answers
25 views

How to add multiple products to cart using ajax in magento 2

I want to add more products to cart using ajax in magento 2 but it doesn't work. please help me to solve this problem here's my code file ajax.phtml <script> require(['jquery'], function($){ ...
1
vote
0answers
14 views

Configurable child product custom attribute gets value by parent

Is there any way to inherit custom atribute value parent to child ? eg: i have custom attribute "test" , creating configurable product productConf with child productConf-l, changing value &...
0
votes
0answers
5 views

Load icon spinning at new loaded product's detail page

I have an outstock furniture theme, so i customize it and turn it a techno store.But when i add a new product, i can not access its detail page, page waiting as loaded but load icon doesn't stop ...
0
votes
0answers
18 views

Magento 2: Approval Status is showing disapproved in sales order listing

I purchased the one product by PayPal PayFlow. Product purchased successfully but order approval status is showing disapproved. Any one can tell me the reason why approval status is set disapproved. ...
0
votes
0answers
14 views

Need to export the products but the export file is not creating in var\export

I am trying to export the products in Magento 2.3.5 there are more than 2Lakh products in the store. After I click the continue I got the below message and i also ran the bin\magento cron:run command ...

1
2 3 4 5
94