Questions tagged [products]

Questions about products in the Magento catalog in general

Filter by
Sorted by
Tagged with
2
votes
2answers
1k views

Magento 2: Override for product custom option value Interface and model file

I have added custom product option value to below interface ProductCustomOptionValuesInterface.php and Value.php model file. File path: magento2/vendor/magento/module-catalog/Api/Data/...
15
votes
6answers
50k views

Magento 2.2.2 : Allowed memory size of 792723456 bytes exhausted (tried to allocate 184320 bytes)

I am working in magento 2.2.2 and when I save product It will display this error. Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 184320 bytes) in /var/www/html/...
5
votes
2answers
11k views

Use product list template with my own product collection?

I already have a products collection and an empty page, how would I load the products list layout and use my own products collection? EDIT: Better explanation hopefully. I have a form to select ...
0
votes
1answer
653 views

Rolled back transaction has not been completed correctly while saving product

We have been facing an issue while saving products & categories at the admin end we are getting Rolled back transaction has not been completed correctly. We are using Magento 2.3.1 EE Can anyone ...
14
votes
1answer
14k views

Magento 2 : How to get Final price & Original price of all types of product

How can I get Original price and Final price of given below types product? Simple product Configurable product Bundle product Group product For simple product I can get price easily using below code....
12
votes
4answers
46k views

Get product stock quantity in magento

I need to get product stock quantity for the item, how to get that $products = Mage::getModel('catalog/product')->getCollection(); $products->addAttributeToSelect(array('name', 'thumbnail', '...
1
vote
3answers
14k views

Magento : Change products per page for individual categories

First and foremost, I know that you can change the default products shown on all category pages for Grid and List views in System > Catalog > Frontend. What I want to do is change this setting for ...
10
votes
1answer
7k views

set attributes to 'use default value' for a list of products

I want to set the images to 'use default value' for a list of product, and for a list of store view. I know how to do it individually for each product : setData(attributeName,false), and so i can do a ...
5
votes
3answers
4k views

How does the Sort Order of Products in Subcategories work?

When adding a product to a category, a sorting order value can be specified. Imaging now we have a Category "P" set to "Anchor" and various categories "C1" and "C2" which are childs of "P". How is ...
12
votes
7answers
26k views

Delete multiple products in Magento

Is there any way to delete multiple products by filtering with SKU? I have around 1000 products that I want to delete.
6
votes
3answers
32k views

What does catalog:images:resize do in magento 2?

I am having a problem with how my images are displaying on my Magento 2 store. And also I would like to know: What does catalog:images:resize in Magento 2.x version ?
8
votes
1answer
14k views

Magento 2 Products Not Showing in Category (but are visible via search)

Got a little issue here with Categories. Running Magento 2.1.3 All other categories display the correct amount of product, except this one Under Products->Categories->"Kingdom Death" category ...
2
votes
1answer
943 views

How to solve Soap_V2 - Uncaught SoapFault exception looks like we got no XML document - SoapClient->__call('login', Array)?

After configuration SOAP_v2 for getting products info, Magento version : 1.9.2.3 Code: <?php $proxy = new SoapClient('abc.com/api/v2_soap/?wsdl'); $sessionId = $proxy->login((object)array('...
1
vote
2answers
956 views

List out admin user id who add the product in magento 1

I have created user1 and user2 only to add the product and I want to show there ID in a new column I want to add new column in catlog/Manage Product before name column.
1
vote
2answers
833 views

a bundle without options

We sell buttons (for the plug). Each of the buttons will cost 2,- Euro. A defined set of 3 buttons will cost 5,- EUR. All individual buttons are created as simple products. So far so good. I have ...
4
votes
3answers
7k views

Programmatically add tier prices

I have a custom module in my magento website where I add products programmatically. I have the requirement to add tier prices to products and I'm using the following code for that. $tierPrices = ...
3
votes
1answer
1k views

load product grid ui component

I want to load the product grid via an ui_component. <fieldset name="fieldset_name"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
3
votes
1answer
2k views

Show products on homepage breaks page 1.9 [duplicate]

I am currently found this solution to post products on homepage {{block type="catalog/product_list" category_id="7" template="catalog/product/list.phtml"}} once i paste above code inside CMS > ...
2
votes
2answers
567 views

Magento 2 would like to override configurable.js method form custom module

Here I would like to override the configurable.js there is a method _fillSelect The below method is working for preselecting the first children. I would like to override from my custom module what ...
2
votes
3answers
3k views

Delete products from order programmatically

I use Magento CE 1.8.1.0 and I have developed a php script that can delete a product from an order. After the product is deleted the value of the order is the same. How can I reduce the order value ...
1
vote
2answers
5k views

How to get the wishlist collection of a customer by Customer Id in magento2

I am trying to get the wishlist products collection of a particular customer by the customer Id. but it is not working. I am using the following code : $objectManager = \Magento\Framework\App\...
1
vote
1answer
1k views

Set product sku as product id

i'm working on a website which doesn't need product sku. Is it possible to set the sku=product_id whenever a new product is created? Any side effect doing that? thanks
17
votes
2answers
15k views

Set NOINDEX, NOFOLLOW on particular products

My magento store has the following to allow google/search engines to crawl the entire site. <meta name="robots" content="INDEX,FOLLOW" /> I am now in need for some particular products to have: ...
9
votes
9answers
27k views

Magento2: How to enable pdf on wysiwyg to upload attachments to products?

Where can I edit the code to enable the pdf's or how can I do it on Magento 2 for uploading pdf attachments to products?
16
votes
2answers
67k views

$_product->getProductUrl() giving url path without URL key

I am getting a product collection of a certain category on a page in a few different Magento sites. My code for getting the collection is: $category = new Mage_Catalog_Model_Category(); ...
12
votes
3answers
11k views

Change standard quantity on product page from 0 to 1 (Magento 2)

When a customer visits a product page, the order quantity is standard set to 0. I want it to be automatically set to 1, but I have no clue how to do this. How do you do this? Translation: Normale ...
23
votes
6answers
54k views

How to get first item from product collection

On the category view.phtml if I get the category and then get a product collection, how can I get the first product form the collection assigned to $_product for use in the code? Here is what I have: ...
5
votes
3answers
11k views

Magento 2.1 Create a filter in the product grid by new attribute

I used Magento 2.1 and want to add new filter in the product grid. But when I added my module the website loading forever. Please help me to solve the problem. I have searched on the internet, but I ...
3
votes
2answers
15k views

How to get cart item details in event observer?

I'm using an event observer which fires when user clicks on the 'Place Order' button in checkout flow. I want to capture the product details which are in the cart. Actually this moment order object ...
3
votes
4answers
4k views

How to update product qty and Stock Status update programmatically by product id : Magento 2

I want to update product qty and change Stock Status as in stock by programmatically by product id. I dont want to insert new product, but I want only update existing product by its id. Any one know ...
2
votes
1answer
335 views

Can you sell product (fabric) by the metre in Magento?

We have fabric on a roll which we cut to requirement. Let's call this main product 'Red Fabric'. We have 100 (metres) in stock. We want a dropdown showing customers length options they can buy; 2m, ...
6
votes
2answers
13k views

show products of a category on home page in magento 1.9.2.2

i'm getting crazy right now. I'm setting up a template and this easy thing which was done in 5 minutes took my last 3 hours. I can't figure out why this simple block thing for showing a category on ...
5
votes
5answers
7k views

Magento 2 Load More Product Script

I am using this script for Load More in Magento 2 But it's not working <script src ="https://infiniteajaxscroll.com/vendor/jquery-ias/dist/jquery-ias.min.js"></script> <link src = "...
5
votes
2answers
6k views

Magento 2 How to do export products csv & xml from admin end?

I would like to implement export catalog products functionality from admin end from custom module. I have followed below steps for displaying export button at admin end catalog > products but unable ...
5
votes
5answers
13k views

Get Attribute of products of the products in cart at onestepcheckout

I was trying to define some exceptions, and one of them is about the volume of the product. I've got width-length-height attributes in the products. And i was trying to get the total of these 3 ...
4
votes
2answers
6k views

Disallowed file format in Magento 1.9.2.2 after patch upload

I installed patch 8788 on my Magento shop, but now i get the error "Disalollowed file format." (I think they mean "Disallowed file format.") when i want to upload an image in at my products. How is ...
3
votes
1answer
123 views

How to get Magento Product List using Soap V2 at CodeIgniter?

If I try with below code, <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Live_stock extends CI_Controller { public function index() { //$this->...
3
votes
1answer
3k views

Magento 2 adding multiple items to cart at one time

I am trying to add multiple products to Cart at one time, But i am facing issue while second product adding to cart as per attached screen shot. The second product showing in cart items but price is ...
2
votes
1answer
1k views

Getting Products by category id! Magento 2.1 REST

How can I get products of specific category? For Example If I hit https://www.example.com/index.php/rest/V1/categories/[category_id]/products it should return all products of same Category [...
2
votes
2answers
2k views

Get all orders/purchased products for each customer

In Magento 1.7, I need to get all products that each customer bought. I already know how to obtain them but the problem is that the code returns orders, but not separated by customers. I have the ...
2
votes
1answer
877 views

Magento group upsell products by category

i'm a newbie to magento, default using $this->getItemCollection()->getItems() (upsell.phtml) displaying all up selling products. I'm wondering how to group these results by its category. ...
1
vote
1answer
68 views

How can I show specific products on homepage in Magento 2?

How can I show specific products on homepage? It has to be client friendly to do in CMS. I tried displaying a category then changing the sort order on products in category.
1
vote
1answer
2k views

Get products by product tags

I'm trying to write my own search engine on my project. I'm trying to get products by product tags. How can I do that? Edit: Actually, is magento search working by product tags or just product name ...
1
vote
2answers
3k views

Magento Search returns no product after 1.9.3.1 upgrade

I've just upgraded my store from 1.9.3 (which had a glitch in the search that showed all products when searching) to 1.9.3.1, and now the search shows no products. What I've tried: Roolback the file ...
0
votes
1answer
2k views

How to add filter option in product details page?

I have a category called perfume in my website. I manage to show the default filter in the left side of this category. I want to add the same default filter in the product detail page only for the ...
0
votes
1answer
739 views

How can i add Custom Print button on Managed products Grids and print those details?

I need to print my products details like name, SKU, price, image. Code : <?php set_time_limit(0); //THIS SCRIPT JUST INITIALS THE PROFILE TO BE RUN VIA MAGENTO ADMIN "RUN PROFILE IN POPUP". ...
5
votes
1answer
2k views

How to Access Shipment from Order ID and product ID?

In my activity, I can have several shipments per order. Shipments are generated automattically by a module I coded. I now would like to access the shipment linked to a selected order (ID) and ...
3
votes
1answer
2k views

How to create a page that show all brands magento 2

I download module Ves_Brand ; i want to create a page that show all brands some ideas please! i know that i have to create a module and controller to show page but what i have to do inside that. ...
2
votes
2answers
7k views

How do I delete products in magmi

I have been using magmi to import products in bulk, but now need to delete some of them. How can I do this?
2
votes
1answer
1k views

Magento2: How to get Bestseller products collection by category ids(subcategories)

I need to get Bestseller products collection by category ids(subcategories) Thanks