Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

Product name change

Is there a way or a program etc that can help to change products on 50k products in an easier way than Excel or do it one by one in Admin? Thanks,
Jan-petter Havna's user avatar
0 votes
1 answer
46 views

updating product description via coding correctly shows text on product page but admin side's edit description with pagebuilder shows old values?

In my custom module, I am able to set the description of an existing product successfully using the code below & the product url shows correct output for description: $product = $this->...
raza19's user avatar
  • 23
0 votes
1 answer
48 views

rearrange more information & details tab in product details page in product details page

I need to change the default tab on product details to be more information tab, i make this edit in vendor, i replace this code <block class="Magento\Catalog\Block\Product\View\Details&...
Omar Khaled's user avatar
0 votes
3 answers
55 views

Preference Module - When to Pass in Parent Dependencies

I am currently creating a preference module to add additional functionality to \Magento\Catalog\Model\Product and in reviewing some of the tutorials, example below, I noted that dependencies weren't ...
A. Andersen's user avatar
0 votes
2 answers
620 views

add custom tab in product page

Is it possible to add custom tab in product page remains in custom module(with out changing template of theme). if it's not possible help me in extending template of theme to adding custom tab in ...
Muhammad Zahoor's user avatar
0 votes
1 answer
680 views

How to set special price on all stores?

I want to programmatically set special prices on products. The below code works perfectly for 1 store view. But I want to have the special price to be applied to the "All Store Views" scope. ...
Hassan Al-Jeshi's user avatar
0 votes
0 answers
2k views

main.CRITICAL: Error: Call to a member function getId() on null

I'm using Magento 2.4.3 and I'm loading a custom module using someone else's code from the link https://community.magento.com/t5/Magento-2-x-Programming/Magento-2-Product-Reviews-only-by-customer-who-...
Isaac's user avatar
  • 1
0 votes
1 answer
448 views

Magento 2 - How I can get category for related products

How I can get categories for related products like in the following image: I use this code: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $category = $objectManager->get('...
Robert's user avatar
  • 2,186
0 votes
1 answer
51 views

Any free extension for displaying top rated products in magento 2?

I like to know is there any free extension or module for displaying top rated products in magento 2?
Kowsigan Atsayam's user avatar
0 votes
0 answers
19 views

error comming while add to cart using textarea in magento 2.3.5

I am facing this kind of error while creating module for custom add to cart in magento 2.3.5. So can anyone have idea then please share with me. Thank you in advance.
Deep Shah's user avatar
  • 577
1 vote
1 answer
694 views

Call current product in custom phtml file in Magento 2

On the product page I created a custom module to override the form.phtml file. I also added the option to include a new file called customFile.phtml when the user clicks on a button that is positioned ...
Jackom's user avatar
  • 503
0 votes
0 answers
95 views

Move only error message on product view page

can I just move the error message (You cannot use decimal quantity for this product.) under product.info.price?
mac_mod's user avatar
2 votes
1 answer
861 views

How to get the product ID in Magento 2 plugin

Hi all I am using Magento 2 and I want to get the product Id on all pages. Now i amable to get the product id in product details pae (Product single page). but i am not getting those in product ...
Sanjun Dev's user avatar
1 vote
2 answers
2k views

Magento 2: How to completely hide price from the store

I want to completely hide the price from the store. Be it in the catalog, product, minicart or cart. I need to do this through a custom module. Any help is appreciated. Thanks!
coderGeek's user avatar
  • 545
5 votes
0 answers
722 views

Custom Model Relationship (CMS Page + Product)

I am trying to assign a Product Object to a CMS Page Object, so when you have the CMS Page Object, you can do something like this: $product = $page->getProduct(); I have modified the CMS Page ...
user3218861's user avatar
0 votes
1 answer
888 views

How to add serial number with products in Magento 2

I need to module that is able to attachment a serial number to each product sold in Magento 2
Gagan's user avatar
  • 565
0 votes
1 answer
2k views

Pass the value from the block class to the phtml file and not working in custom module

Hi all I need your help, I am writing a new module (quote request, when user go to the product details page, they can request a quote for the product) I created a form and display in the product ...
GeorgeM's user avatar
  • 109
2 votes
0 answers
34 views

Product feed with 2 Facebook Page

I have the Facebook Ads extension plugin with Magento. I already have it configured with one Facebook Page with the product feed. Is it possible to add another page and a second product feed? The two ...
Quentin's user avatar
  • 21
4 votes
1 answer
5k views

Magento 2.2.6 - Change the product name title

how I can change products name attribute. I create a new attribute second_name and I assigned to all products, now I want this attribute to replace the default name attribute. I need to change this on ...
Robert's user avatar
  • 2,186
1 vote
2 answers
1k views

How to include custom JS to admin create new product in magento 2

I want to include custom JavaScript to create new product form. I already try with below way Using XML way. app/code/Namespace/Modulename/view/adminhtml/layout/index_index_add.xml <head> ...
Chirag Patel's user avatar
  • 6,166
1 vote
1 answer
1k views

Create a Bulk products using rest api with rabbitMq custom queue in magento 2.3 beta

How to publish message to rabbitmq and read message in consumer and create a bulk products in magento while running custom queue in rabbitmq. I want to create custom module in magento 2.3 beta to ...
P Ramulu's user avatar
  • 187
1 vote
1 answer
957 views

Magento 2: Overriding addtocart.phtml for Configurable Products

I've create a module and overriden addtocart.phtml to replace the 'Add to Cart' button with 'Preorder' when the Preorder attribute is set to 'Yes'. This works well on simple products, but I cannot ...
Max's user avatar
  • 307
2 votes
1 answer
5k views

Add custom textarea field to product form (admin)

I want to add a custom product attribute to the product form in the admin area. https://devdocs.magento.com/guides/v2.2/howdoi/customize-form-configuration.html and https://devdocs.magento.com/guides/...
hey's user avatar
  • 1,137
1 vote
0 answers
214 views

Magento2 Multiple product chooser

I need a multiple product chooser for a widget. Can anyone please help me with some directions how can I implement something like that?
glafche's user avatar
  • 487
1 vote
1 answer
122 views

Custom Magento module config.xml not loading after applying security patch

I've just applied the security patches on Magento 1.9 and after that, my custom modules didn't work. I tried clearing the cache and index but nothing happened. When I tried visiting the URL of my ...
nosnevetzy's user avatar
0 votes
1 answer
39 views

Magento Module not loading. Codepool local [closed]

I am trying to make a module to hide product types when tryng to create a new product. I have created the files as follows: app\etc\modules\Grando_Producttype.xml <?xml version="1.0"?> <...
Gabriel G's user avatar
1 vote
1 answer
2k views

magento 2 unable to set the values for product collection using service contract from custom module?

I am trying to form a custom format for product collection(getList) using service-contract concept in magento 2 i am able to add keys but i am unable to add values to the response object can you ...
Nagaraju Kasa's user avatar
2 votes
1 answer
2k views

Magento 2 : How to add a product grid (assign product) in custom module using UI Component?

I want to add product grid (assign product) in my custom module using UI Component. I follow this ANSWER: Magento 2 : How to add a product grid in custom module using ui component? and I get the ...
Rajan Soni's user avatar
  • 1,019
1 vote
1 answer
656 views

Magento 2 - Move swatch-options at the bottom

I try to move swatch-options in the product page at the bottom of the page, before "Write a review" zone, I use this code: <move element="product.info" destination="content" before="product.info....
Robert's user avatar
  • 2,186
0 votes
2 answers
96 views

Fatal error: Class 'Mage_Mageworx_Customoptions_Helper_Data' not found

I cannot find where Mageworx dir is... /app/code/local /app/code/core/ I didn't install the extension but seems to be called it in my page.. and send an error in the admin page.. in the product ...
regnoredlac's user avatar
1 vote
1 answer
1k views

Fetch details from catalog_product_flat_1 table

In catalog_product_flat_1 table, we created a custom column custom_uid & saving customer ids Assume below image is the catalog_product_flat_1 table. You can see the columns contain Product name ...
user avatar
0 votes
2 answers
73 views

One Image uploading instead of two for Programtically created Product

Once we click on button present in Product view page, we are doing 2 things : Creating 2 images in folder media/custom_product_preview/quote/ Creating new Product Programtically & uploading those ...
user avatar
0 votes
1 answer
250 views

Redirect to url of Programatically created Product

once we click on button in product view page, we are creating New Product Programatically & displaying pop up with message : "new product created" Instead of displaying pop up , i need to ...
user avatar
0 votes
1 answer
56 views

How to manage a product attributes while adding/editing a product?

I have created 2 attributes for my products, attribute1 and attribute2, both are multi-select dropdowns. What I wanted to achieve is that the second attribute values changes based on the options ...
Mann's user avatar
  • 151
10 votes
1 answer
3k views

Magento2 : How to hide a Product from a specific Customer Group?

I want to create an extension that will hide a product from a specific customer group.
Toto Memeng's user avatar
  • 1,255
0 votes
2 answers
343 views

Resolved - View Particular Product From the Grid

I have developed a custom module with a grid. Also added a column named "View Product" to be able to navigate to the current product page. With my current solution all "view" links redirect to ...
bestwebdevs's user avatar
1 vote
2 answers
484 views

update Programtically created Product

We have 2 buttons in Product view page, after we click on 1st button, we creating Product Programtaically. once click on 2nd button [ after entering email, password] we are assigning that product to ...
user avatar
0 votes
1 answer
215 views

create product after user loggedin

We have 2 buttons in Product view page, after we click on 1st button, we are creating Product Programtaically. once click on 2nd button [ after entering email, password] we are assigning the product ...
user avatar
1 vote
2 answers
1k views

Adding Product Backend URLs on the Custom Grid

I have a custom grid, where I need to add links to Product Edit pages on back-end. I was able to get product front-end URLs using a renderer, but can't get the product links on back-end. I have ...
bestwebdevs's user avatar
0 votes
1 answer
56 views

Get all products in the catalog from my Module controller in 2.1.5

I'm in a controller's action in a module I just created. How can I get an array with all the products I got in my catalog? I did this, but it's not returning the items in the catalog $objectManager =...
Victor Ferreira's user avatar
1 vote
2 answers
162 views

Magento : Replace Discontinued Product with New Product

I making observer, that detects when someone reorders a discontinued product and should replace that product with a new product. My question is: How do I retrieve a product object with a specific ...
sazr's user avatar
  • 111
0 votes
1 answer
53 views

Magento2: How to create a page same as Product view page?

In my custom extension, I want to display product view page same to same in Popup. Can anyone help me how to display product view page or create a page same as product view page.
BornCoder's user avatar
  • 1,518
1 vote
0 answers
489 views

magento 2.1 grid on custom tab of admin product edit page

I am trying to create a grid that should be shown on clicking a custom tab of admin catalog edit page. 1. Created catalog_product_new.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
SPK's user avatar
  • 183
0 votes
1 answer
603 views

Magento error when creating a product programmatically

I am creating an admin module where the user import's a .xls file in magento, then the .xls file can be executed and the data inside has to be imported into the products table. This is the error I ...
Radu Dascălu's user avatar
1 vote
0 answers
400 views

How to save custom attribute in Magento module

I have this hidden input that I am submitting along with my checkout form: <input id="text_value" type="hidden" value="This is a test Value" name="text_value"></input> I was wondering ...
Iqbal Khan's user avatar
0 votes
0 answers
293 views

catalog_product_collection_load_after causing maximum nesting issue for configurable products

i have written modules that changes price of all products on product details page, including related showing on bottom . what modules does here i am passing some product id in get parameter and ...
mdeveloper's user avatar
0 votes
1 answer
100 views

Problem with Mage_Sales_Model_Quote::addProduct() and Bundled Products

So I'm trying to add a bundled product to a quote programmatically in a module. When I add an item to the cart directly from the front-end, it works just fine. However, when I do it programmatically,...
AlexMax's user avatar
  • 165
1 vote
1 answer
30 views

Where do you place code that effects ALL Products or Customers in the backend?

Hey everyone I know the title is vague so I will clarify here. I have code that updates Customer attributes and Product attributes. Unfortunately you guys are all going to frown upon me because I run ...
CodingMageSheen's user avatar
12 votes
7 answers
49k views

Magento2 : How to get product id to my custom module

I am new to magento2 and currently I'm building a custom module and i want to get the product ID/SKU from the catalog. I'm trying to call using a function located in the Block folder. please advise!
ming's user avatar
  • 125
0 votes
1 answer
36 views

View Date-based Products

I run a food delivery business where we make fresh food, package it, and delivery it locally each day. Each day we offer a different set of options. For example, on Monday there might be Entree A, ...
Michelle's user avatar