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
1 answer
236 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=&...
1 vote
1 answer
200 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?
1 vote
2 answers
996 views

Magento 1.9.4.3 Custom Column Filter not working

I have a custom column on my sales order grid showing the ordered items sku's. Done by following the guide here. It worked well in previous versions but no longer does work correctly in 1.9.4.3. When ...
1 vote
1 answer
746 views

```Custom Module - How to Link to/access its Template Path File

I have created and enabled a custom module in my magento store called 'Earnings' to allocate customers loyalty points. I declare the phtml file to use (template/earnings/earnings.phtml) in my earnings....
1 vote
1 answer
675 views

Sales Order On Order Create Custom attribute - Admin Page

On the Sales > Order > Create Order I would like to add a serial number of a product. Anyone any idea how to achieve this?
1 vote
3 answers
300 views

Can I dynamically change Layouts?

On the view.phtml is it possible to write php to change the layout depending on what item is displayed on that page? Using code similar to this: $this->loadLayout() ->...
2 votes
1 answer
380 views

Add Attribute to All Magento Customers, preferably an Object

Before continuing I would like to state that I have been looking for over a week through StackOverFlow, StackExchange, Google, and Alan Storm blogs. Please don't link to another post I've most likely ...
1 vote
1 answer
454 views

Is it possible to load data from the server using a HTTP POST request within a Magento Module js file?

Is it possible to load data from the server using an HTTP POST request within a Magento Module js file? File located in app/code/MyVendor/myCustomModule/view/frontend/web/js/mycustom.js Example ...
1 vote
1 answer
54 views

override theme .phtml file into custom module

How can override theme .phtml file override into custom module. Path theme .phtml file is app\design\frontend\ThemeName_CompanyName\Module_Catalog\templates\product\view\pricedifference.phtml and ...
2 votes
2 answers
2k views

Media images not showing in custom module

I have a problem, I have created a custom module in my Magento site, so in that module I'm calling custom attributes to display some content and images, but when I'm adding media image in this ...
1 vote
3 answers
32 views

I have created a new custom module and it is working fine from back end, but in front data is not displaying

<?php $model = Mage::getModel('custom_homebanner/request')->getCollection() ?> <div class="owl-carousel" id="owl-demo-intro" > <div class="item"> <h2 class="...
0 votes
0 answers
276 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 ...
2 votes
3 answers
60 views

What are the only needed files for custom module?

I've seen a lot of tutorials on how to create a custom module in Magento. But all of them are mostly those helloworld examples. I'm wondering what files do we actually have to create in order to ...
1 vote
2 answers
215 views

luma-theme .phtml file override in Custom Module

i want to override this file magento_dir/vendor/magento/module-theme/view/frontend/templates/html/collapsible.phtml And do not want to make custom theme like app\design\frontend\Magento_Theme\...
1 vote
3 answers
301 views

Where do I specify the file path for phtml? (Clarification please)

Where do I put the phtml file that all of this works with? Current Files and their folder structure: app/code/local/Sean/Customform/controllers/IndexController.php <?php class ...
0 votes
1 answer
920 views

Unable to edit integration

We recently cleaned up our Magento 2.4.2 store so we had no generic users. Since we did this we noticed one of our integrations shows as inactive and we are unable to Activate or edit the integration, ...
1 vote
1 answer
2k views

how insert data into database custom table using custom module in model

I have created custom module and model but could not insert the data into database using the model please help how to do it config.xml <?xml version="1.0"?> <config> <modules> &...
1 vote
3 answers
2k views

Magento - Add 'Customer Account Navigation' to custom module page

I have a custom module in my magento store. It is currently using the default 2 column layout with magento's left nav as the lefthand sidebar. How can i go about having the customer account ...
1 vote
2 answers
2k views

How create Custom Pdf in magento 2 Like invoice , Shipment [duplicate]

I want to create custom pdf with custom text or media can anyone suggestion me any best link or some help Thanks
0 votes
2 answers
1k views

Magento2: How to add custom attributes into CustomerGroups

I've already added some custom attributes into order and customer, now, I'm trying to do the same with CustomerGroups and it's not working. I'm failling on the first step, the setup script: class ...
6 votes
2 answers
5k views

Magento 2.3 : Remove Constraint from db_schema.xml file

I just try to override db_schema.xml file of a core customer module into my custom module , but there is no success. I need to remove a constraint defined in customer db_schema.xml file, how may I do ...
2 votes
2 answers
4k views

Custom Translation of Backend in Magento 2 - path of the translate.csv?

I am familiar with translations in Magento 1 and found out also how translations in M2 work for the frontend. My questions is where to do my translation for my own custom module for the backend. Is ...
4 votes
0 answers
297 views

Bundle Price depending on items in bundle

This is a complex question about determining bundle prices. I have already hired a developer who cannot figure out how to make this work, and have spent days looking at extensions, so am reaching out ...
3 votes
1 answer
2k views

Best way to send email within custom module

I have created a custom form that will post to a controller, where it will then send an email via the following snippet in my post action: $to = "[email protected]"; $subject = "Vish"; $body = "<...
3 votes
2 answers
4k views

How to add files for custom module under system configuration? [duplicate]

I have my own module in System->Configuration and want to add js and css files for it. Now it is so: <layout version="0.1.0"> <default> <reference name="head"> ...
4 votes
2 answers
338 views

magento custom module keep throwing error even after deleting all files

i created a module in magento 1.9 CE to override list.php, and there was some issue, then i removed all the files for that module (the xml under module and all files under app/local/mycompany/), but ...
27 votes
5 answers
10k views

Why does Magento have 3 code pools?

Magento has three code pools: community core local Core: It contains all Magento default modules Community and local: We use these code pools for our custom module development. Now I have doubt ...
2 votes
2 answers
2k views

Custom message based on Total for Free delivery

Is it possible to display a message in a pop-up box or alert on the cart page when a customer is close to the free delivery threshold i.e. "Spend another £5 and you qualify for free delivery&...
6 votes
3 answers
12k views

How to get configurable attribute label and value in magento 2?

To use Object Manager is not a proper way but this code is for testing purpose only. I want to get attribute value which is available in configurable products. I have tried with below code, but I get ...
23 votes
2 answers
125k views

Magento 2 : Get Custom Attribute Value of Product [duplicate]

I'm trying to get custom attribut from my product. I tried various methods like below, but non of them worked. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); /** @...
15 votes
4 answers
24k views

Magento 2: How to add additional block on checkout page?

I would like to override the below file & display my custom block in the li. magento\vendor\magento\module-checkout\view\frontend\web\template\shipping.html <li id="shipping" class=&...
2 votes
0 answers
201 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: { ...
0 votes
1 answer
2k views

Magento 2 : Show custom table data in grid

I have created a form and the data of that form is saving in a custom table. Now I want to create a grid in admin which shows the saved data in that table. Please help
0 votes
1 answer
572 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.
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 ...
7 votes
2 answers
21k views

Magento 2 - Emails -> if statement

I'm currently configuring my transactional emails for Magento 2 and since I am in germany and want to ship some parts to a partner inside the EU i can place those orders without calculating taxes for ...
0 votes
2 answers
4k views

Adding css to a module in Magento 2

I am trying to add custom CSS without creating a theme and these are my steps. Step 1 I create a mycss.css file body{ background-color:green; } and this is the path app/code/vendor/module/view/...
0 votes
1 answer
399 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.
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
4 votes
3 answers
4k views

Magento 2.3 email attachment not working while sending custom email

https://extait.com/blog/how-to-send-email-with-attachment-in-magento-2-3/ I have tried above link, and below is the code: Now I am receiving emails without attachment. Full code as below: Custom\...
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 ...
0 votes
1 answer
390 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 ...
3 votes
4 answers
11k views

How do I add customer attributes in Magento 2 CE?

In Magento 2 CE we have to add new attributes with Coding? It's not provided by default? I have looked in to http://www.extensions.sashas.org/blog/magento-2-make-customer-attribute.html I would like ...
0 votes
2 answers
113 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 ...
0 votes
1 answer
808 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 ...
0 votes
2 answers
472 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 ...
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 ...
0 votes
2 answers
258 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%...
1 vote
1 answer
1k views

Dependable fields in custom widget

I have created a custom widget having Title and dropdown field and image chooser. I wish to add dependable fields.the image uploading field is visible according with drop down menu. widget.xml <?...
0 votes
1 answer
566 views

How to create custom sorting in sales grid custom column in Magento 2?

I have created a custom column named printed which shows the invoice is printed or not and works well. But how to apply sorting in in it like when i click on printed firstly it shows all data with ...

1 2
3
4 5
24