Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [custom]

Denotes questions about Custom code or Custom modules which is used to add/extend/enhance the existing functionality of Core Magento.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Customize tier module traductions

Magento documentation says How the application applies locales When the locale is changed for a store, the application searches and applies translations in the corresponding dictionaries in the ...
Claims's user avatar
  • 1,209
0 votes
1 answer
30 views

error filtering templat: Template file 'header.html' is not found in mail in magento 2.4.6

Send invoice email to custom mail address in magento 2 but create custom email template but face this issue in magento 2.4.6 app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template....
Ravindrasinh Zala's user avatar
0 votes
1 answer
58 views

Magento Custom Module Directory Help

Old user, Noob question! I have a module which is successfully "trying" to overide the sidebar.html block using the below code. var config = { "map": { "*": { ...
UK_Rogue's user avatar
0 votes
0 answers
20 views

Remove Type and Arguments from di.xml

How do you remove a Type and the associated arguments from a di.xml file? Specifically, I would like to remove the "Apple Pay" button from the Shopping cart. I have found the below code, ...
A. Andersen's user avatar
0 votes
0 answers
10 views

Filter Product Grid Column Based on SQL calculation

I have a custom column within the Product Grid that states whether a product is In Stock or Out of Stock, based on whether or not the Salably Quantity is greater than zero. While I have managed to get ...
A. Andersen's user avatar
0 votes
0 answers
28 views

Updating a custom field added in edit customer shipping address

I have a custom field added for my customer address : \Magento\Customer\Setup\CustomerSetupFactory $customerSetupFactory; public function upgrade(ModuleDataSetupInterface $setup, ...
JohnM's user avatar
  • 1
0 votes
1 answer
39 views

Magento2 Order email missing custom variable values for first time & when I send email from admin it shows values

Magento2 Order email missing custom variable values for first time & when I send email from admin it shows values Basically this custom variable values are the order attributes. I have used this ...
Arjun's user avatar
  • 3,586
0 votes
1 answer
42 views

custom widget to retrive price

I am new to this Magento platform. I want to create a custom widget to retrieve the price so that I can use it just by calling the widget on the front page. May anyone help me?
Biju's user avatar
  • 11
0 votes
1 answer
39 views

I want to add custom model pop up for buy a subscription

I want to add custom model pop up with some message. I am creating three category A, B and C when I click on C category a model pop up will show with message please buy a subscription to product under ...
tehwain99's user avatar
1 vote
1 answer
41 views

custom Section data need to update on cart item delete in magento2

I have created custom section data called test and create sections.xml file with below code <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
Rutvee Sojitra's user avatar
0 votes
2 answers
101 views

Can we add extra container to page header in Magento 2?

I need to add a extra container to page header. https://prnt.sc/dq9LDPcioxvJ please check attached screenshot.
kiran's user avatar
  • 597
0 votes
0 answers
73 views

How to add utf-8 on the default export csv

I have used the default export csv of magento 2 in the listing.xml. I have a problem when I have a japanese character in the export.csv file the japanese characters are broken. How can I fix it? <...
jsnewbie21's user avatar
0 votes
0 answers
23 views

Custom Module accessible to other users but not working properly

I have created a custom module named "Service voucher list" I have created the acl.xml file too so that other users can have its access by custom resources too. now the module is accessible ...
Sikander's user avatar
0 votes
0 answers
18 views

Create custom invoice using default pdf with additional option in admin to download

I need to create a custom invoice using the default pdf class having an additional option in admin/orders download as "Invoice with vat" I did create a module using code from the following ...
ahmed's user avatar
  • 101
0 votes
0 answers
25 views

How can I add a custom stylesheet to my custom theme?

I am losing my mind because I am following guidance in documentation but literally nothing works. I added a custom theme that references luma. my directory structure is /app/design/frontend/...
clueless-newbie's user avatar
0 votes
2 answers
469 views

Custom theme not getting generated after upgrade to magento 2.3.2

I have upgraded my site from 2.2.6 to 2.3.2 version. After upgrading through the composer command I run static-content:deploy command. I see that in pub/static my custom theme is not getting generated....
Nicola Smith's user avatar
0 votes
1 answer
34 views

Display and link custom attribute in product page mangento 2

I have installed magneto 2.4.5 and trying to show manufacturer above product title . I have set custom theme using Luma as base , I have found many example of showing custom attribute on the product ...
tonysar's user avatar
  • 51
0 votes
1 answer
569 views

Magento 2: What controls the validation of the shipping form? How can I add a callback to run when the validation is successful?

I have a custom checkout module and as part of the design I need to run some custom JS when the shipping address form is valid. By default the form is validated when all the fields have values. I have ...
Steven Hall's user avatar
1 vote
3 answers
452 views

URL key is already in use by another blog item

Anyone can help me to fix this problem ?
Hirun's user avatar
  • 23
0 votes
1 answer
195 views

How to redirect to the form with entered data if a form content have any error in magento 2 admin custom form?

I have a custom admin form, After click save button i am checking some unique url in my save controller. If the url is not unique, i want to pass an error message and redirected to the form with filed ...
Mujahidh's user avatar
  • 2,793
0 votes
1 answer
301 views

Magento 2.4.5p1 Remove Price From Custom Product Options Drop Down - No Solution Working

Hello and thank you for any assistance with this. I have tried many things to make this work but nothing has worked so far. I have tried every solution on this page: Magento 2.2.3 - Remove price from ...
drewski22785's user avatar
0 votes
2 answers
706 views

How to insert a listing in admin form in magento 2 UI Component method?

I have a Category, and Questions form in my custom module. Questions are added against category. Each question can be belong to a category or multiple category. I need to insert a listing on category ...
Mujahidh's user avatar
  • 2,793
1 vote
2 answers
535 views

Inventory Stock item

I am trying to add a custom field to the MSI source item. Please check the following screenshot- I have overwrite product_form.xml in app/Vendor/Module/view/adminhtml/ui_component/product_form.xml as ...
SANDIP BHOSALE's user avatar
0 votes
2 answers
617 views

How to import product Video programmatically with the use of custom script in magento 2.3.4?

I import all product by custom script. but I'm not able to import the product video programmatically. Basically, I have youtube link of videos. I can put url the using admin panel but I have 3000 ...
Galib's user avatar
  • 37
1 vote
1 answer
56 views

Composer Patch vs. Custom Module for Vendor Directory Modifications

Is there a general consensus on when you should create a custom module to override core vs when you should use a composer patch? At present, I need to add @ to a line of code and feel that a module is ...
A. Andersen's user avatar
1 vote
0 answers
18 views

After new compilation , my custom module's table data was reset in magento 2?

I have a custom module with the custom table, When i am doing compilation in some time the table data was completely removing and only the empty data base table is exist. I created this table using ...
Mujahidh's user avatar
  • 2,793
1 vote
1 answer
417 views

How to save the Store address as shipping address when customer choose store picukup?

My requirement I Have created custom shipping method for allowing customers to choose Stores to pickup the orders. When the customers choose the stores pickup option, I need to update the selected ...
Mujahidh's user avatar
  • 2,793
0 votes
3 answers
329 views

How To create countdown Timers in custom phtml

I have two fields StartDate and EndDate.How to Implement Timerfunctionality with these fields in custom phtml for example for the following format.. $startdate='31-10-22 00:00:00'; $enddate='01-11-22 ...
Alshihab's user avatar
  • 161
1 vote
2 answers
402 views

Custom field in checkout shipping method section giving an error - magento 2.4.4

My requirement I want to show available stores in checkout when customer choose Store pickup( Custom shipping method). I did not use Magento default because inventory is not managing location wise. ...
Mujahidh's user avatar
  • 2,793
0 votes
1 answer
265 views

How to retrieve custom product attributes through product description or short description using phtml templates?

Using: Magento 2.4.5 Community Edition I currently have two custom phtml blocks {short_description.phtml, description.phtml} located in app/code/Vendor/Theme/view/frontend/templates. As an example, ...
AleBalari's user avatar
2 votes
1 answer
150 views

how to copy customer attribute values of phone number attribute to mobile number attribute using CLI Command in magento2

After migration of magento1 to 2 i am getting the issue.The Phone Number Attribute has the values.But I want that values in my new attribute Mobile Number. how to copy customer attribute values of ...
Benit's user avatar
  • 23
4 votes
2 answers
93 views

Injecting code into theme product page

The may well be too broad of a question, but I'm having extreme difficulty finding any answers. I want to know if its possible to add a phtml block/view to a product page when you have a theme ...
Daniel Bowen's user avatar
2 votes
1 answer
112 views

Magento 2.4.3-p2 Custom Module stopped sending emails

My custom module used to send emails until one of the latest Magento Version upgrades. I have no clue why it stopped sending them. sendmail <?php declare(strict_types=1); namespace Schott\...
Th. Schott's user avatar
0 votes
1 answer
252 views

how to copy custom attribute values from quote_address to sales_order_address table

i am using some custom attributes in customer address section.The attribute values are getting in quote_address table but not getting that in sale_order_address table. The file i used to do that field....
Benit's user avatar
  • 23
0 votes
1 answer
242 views

Email template id is not found issue in magento 2 admin custom form Magento 2

I Want to send a url to customer from admin panel custom form. I use below steps to perform the task. 1 - email_templates.xml file content <?xml version="1.0"?> <config xmlns:xsi=&...
Mujahidh's user avatar
  • 2,793
1 vote
1 answer
232 views

Is that possible to customize "files export path"?

System - Data Transfer - Export The files export is in /magento/var/export/. Can we custom this path? And if we can custom. How to?
GGame's user avatar
  • 46
0 votes
0 answers
284 views

how to get custom product attribute value in model file in magento2

I have created a custom product attribute using data patch in my custom module and it is visible in product configuration in admin, also when I save value in it, it get save to ...
Surjan Raghuwanshi's user avatar
2 votes
0 answers
207 views

Magento 2 Add a global js function

i'm trying to extend Magento_Ui/js/lib/core/class, in magento 2.4.3-p1, from a module but my extend js doesn't load in page here is my /view/frontend/web/require-config.js var config = { config: { ...
Weber's user avatar
  • 121
0 votes
1 answer
609 views

How to add yotpo review to custom page: magento2

At website front side in custom page, i'm showing category list with name and image. How can i show yotpo reviews with categories? Thanks.
Jimit Bhavsar's user avatar
0 votes
1 answer
54 views

Where to add custom CSS and Js file in freely available custom theme (Appreal Theme from Hiddentechies)

I am using Hiddentechies Appreal free Theme for my Magento2 project. I want to add a custom CSS file and Js file (for jQuery) so that it will override the classes(CSS file) and add functionality (Js ...
user170106's user avatar
0 votes
1 answer
59 views

Custom Module : "Product is not compatible with Page Builder" get error when upload to marketplace

I'm submitting my custom Maintenance Mode module in the marketplace but they are giving me error as below, Product is not compatible with Page Builder - Version 2.0.0 claims to be compatible with Page ...
Rohit Gohel's user avatar
2 votes
3 answers
5k views

Insert data into custom table in magento 2

I have created a custom table in database of magento 2. I want to insert some data into this custom table. I want to pass this data from controller to the custom table in magento 2.4. Please can any ...
Nicola Smith's user avatar
0 votes
0 answers
47 views

how to make custom tier price in add product feature of magneto 2

I want to make a tier price programmatically for quantity-based shipping prices like the screenshot below, can anybody help me in developing this feature
Syeda's user avatar
  • 13
0 votes
1 answer
413 views

How to add Custom class or ID on Magenot 2 Product Admin Grid Columns

How to add the custom class or ID on Magento 2 Product Admin Grid Columns basically I want to add a class or id on ( qty, price, name, SKU ) on these fields. Any help is appreciated.
Prits's user avatar
  • 625
0 votes
1 answer
82 views

create custom module, get existing module configuration

I would like to create a custom module, I want to get used to the vendor/magento/module-ups/ module, and use the same config in my custom module, such as userID, password, access key. how can I ...
Paul Fan's user avatar
  • 658
0 votes
1 answer
401 views

Use Default Value checkbox and label is showing for All Store Views also in Product Form(Product Edit) Admin Panel

Here I am working on to display newly added Description field on Product Edit form under content Tab and default one has hided using css. An issue is in below code that Use Default Value checkbox and ...
Hitesh Balpande's user avatar
0 votes
2 answers
119 views

Why is this code slow

We have a custom module to show images from sw3 on the product page, so the main image and any gallery images. The code works but going from a list page to the PDP is very slow and when I disable this ...
rodolphesalis's user avatar
0 votes
1 answer
867 views

Sorting custom column in ui component

I've created a custom column in the report using UI components that use DataProvider in report_listing.xml Unfortunately, this new custom column is not able to sort. I made also a class for this ...
kszwed's user avatar
  • 1
0 votes
0 answers
153 views

Create custom form in magento 2.3

i would like to have a custom form which is open as a pop up on click of button. The details entered in this form should be save in database and visible in admin panel. How can i do this? Is there any ...
Nicola Smith's user avatar
0 votes
2 answers
313 views

Magento 2.4 FilterSearch Custom admin grid

I'm trying to modify the admin grid's "filterSearch" field from default query if I type a whole word eg "Iphone", I'm trying to change the type search criteria in SQL to LIKE %ipho%...
GStiven's user avatar
  • 41

1
2 3 4 5
24