Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
11 views

Get Custom Attribute value of Child product under grouped products on Magento 2.2

i tried my best but i havent found a solution. I would like to get a custom attribute value of a child product inside a grouped product view. With this code i've been able to get a Text attribute but ...
0
votes
2answers
31 views

low stock notification to admin without any extension in magento 1.9

I want to create the custom module for email sent to admin for notifying when the product is low qty in magento 1.9.x.
1
vote
3answers
47 views

Magento 2: Product Custom Tab with Attribute WYSWYG shows broken image

I am running Magento CE 2.2.2 and I need to create another TAB in the product information page near the details and review tabs. I created a new Attribute, named it "Tab". In the attribute, options ...
0
votes
2answers
41 views

Magento 2 - How to use admin panel email template in my custom module?

I have created the custom module for customer registration request including an email function also. email function is working fine. I have customized the email template using Marketing -> ...
0
votes
0answers
24 views

Magento : Send/Mail custom form data in PDF file

I have create one module for custom form fill by the user while click on submit button the form send two person one for user and second for website owner. This is working fine but i want to send this ...
0
votes
0answers
23 views

How to override Add to cart functionality in Magento 2.2

How to override Add to cart functionality in Magento 2.2 using custom extension?
0
votes
0answers
25 views

How to Create Custom Form in Magento2.1

I want to create a custom form in frontend and Company Name First Name email Phone No. case ID Model So when a customer fills up this form and does submit I want to insert this data in database and ...
1
vote
0answers
30 views

M2 Add fields to custom payment method [ship to multiple address]

I have created a custom payment method, which is working fine, but when i select ship to different address, than payment method was not appearing. I added "allow_multiple_address" to 1. Now payment ...
1
vote
0answers
12 views

Create Custom Shipping Method with Live Rates Magento 2

I have to integrate one shipping method with Magento 2 site. For this I am following below link to create custom shipping method, but it's for static rate. https://magenticians.com/create-magento-2-...
1
vote
0answers
30 views

Magento 2 - How to add custom order item field on order export API

I added a new field on table sales_order_item. I need to display it on REST API order export, in the "items" node. Is it possible to do that ?
2
votes
2answers
37 views

want to add custom module in magento 2 admin panel

Created folders and added code for the custom module but nothing gonna work in my way please help, nothing shown up in the admin panel. Here's my code and folders that I created: public_html/testing2/...
2
votes
1answer
25 views

How to get configurable option on custom module

I want to display all configurable options same as details page in my custom module. It should work like product details page(like below image) . any one have any idea ?
0
votes
1answer
13 views

How to add a custom jquery file for custom shipping additional file in magento 2

I have created a custom shipping method + shipping form like below. I want to add click event for the check box. I tried this code in my phtml file. <script> require( [ 'jquery', ...
1
vote
1answer
32 views

Magento 2 Adding a custom block template to CMS page

I'm struggling including my custom module/block template into a static CMS page. Here's my block code: <block class="Magento\Framework\View\Element\Template" name="custom_slider_block" template="...
0
votes
0answers
12 views

Magento 2 | How to make a custom inquiry form with custom field

I want to make an inquiry page with the form. Please help me how to create the custom from. Name Email Phone Number Select Field City Pincode Message I want to send the form data to the admin email.
3
votes
1answer
41 views

Create POST API to update order custom fields using increment ID

I need to update order custom attributes from increment ID using a custom REST API. I receive this XML : <order> <data> <incrementId>000000007</incrementId> <...
0
votes
1answer
36 views

PHP execute issue in Magento 2

I'm trying to save my custom customer attribute when the corresponding checkbox is checked. But if the customer unchecks the checkbox it should update the attribute to a value of 0. var newProducts =...
0
votes
0answers
17 views

Custom checkbox field in registration page magento 2.1

I've been facing issue with saving data field value. I want some brands on registration page where the customer can select one and all brands but how can I save data in backend and database?
1
vote
1answer
37 views

Add responsive custom footer in Magento 2

I created a custom footer but I want it to be responsive. My code is: <div style="width: 16%; float: left;"> <h3>LOCATION</h3> <a href="" target="_blank">Map</a></div&...
1
vote
1answer
29 views

Magento 2 : Adding logo in a custom extension

I'm creating an extension where I should be able to call the logo which has been uploaded to Magento to show up in the home page. So I upload the logo to: Content -> Design -> Configuration -> ...
3
votes
0answers
151 views

Display custom drop down in registration page using Magento2.1

I tried this code but it's not working app\code\Customer\Attribute\Setup\Installdata.php $customerSetup->addAttribute(Customer::ENTITY, 'customer_type', [ 'type' => '...
0
votes
1answer
48 views

Moving content of custom header Magento 2

I created a custom header and called it in the default.xml this is the code <referenceContainer name="header.container"> <block class="Magento\Framework\View\Element\Template" name="...
0
votes
0answers
11 views

Reordering a Custom Checkout

I am attempting to change the order of the checkout from Shipping Method -> Payment -> Review to Shipping Method -> Review -> Payment. Problem Number 1: We are using the Aitoc Configurable Checkout. ...
0
votes
0answers
10 views

While creating custom grid in magento 2 error showing 404 Error Page not found.Actually i following mageplaza tutorial here

Here I am using mageplaza link ie https://www.mageplaza.com/magento-2-module-development/create-admin-grid-magento-2.html Actually i copied whole content as it is including model as well.but its ...
0
votes
1answer
93 views

How can we display custom drop down in registration page?

I created Custom customer attribute: $customerSetup->addAttribute(Customer::ENTITY, 'customer_type', [ 'type' => 'int', 'label' => 'Corporation Or ...
0
votes
0answers
50 views

Magento 2, how to add color swatches to custom widget template

The custom module lists certain configurable products. I need to display the color swatches, I tried below but it returns nothing! in myTempalte.phtml <?php use Magento\Framework\App\...
1
vote
1answer
24 views

I want to run an Event Observer once after my custom module is installed

Is there a way to run a function (to call an api) once after a module is installed? It could be during admin page load or in the install script. But i wish to run only once. Thanks
1
vote
0answers
26 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 <?...
1
vote
0answers
35 views

Custom module works on localhost but not on server | Magento 2

I have a simple custom module. It works fine on localhost but not on server. Frontend test route get a 404. Backend button action exist but does not works. I have no server log and no magento log. I ...
2
votes
2answers
44 views

Magento 1.9: Creating a page for just 1 product

I am trying to create a view for just 1 product, a gift card. We want some special front-end code to display some variable options for a gift card. We have a gift card product type and it comes to ...
2
votes
1answer
113 views

Magento 2 | Add Admin Configuration Button Action

I need to call a method from an admin configuration button. This is my simple custom module. The button appear on admin but notthing appen on click. No log is write. I cannot understand what I am ...
1
vote
0answers
35 views

Magento 2 : Call a function at the time of module installation

I want to call a function to send some store information through api call at the time of my custom module installation. Is there any event observer for this? How can we do it? Thanks. class ...
0
votes
2answers
42 views

Displaying a message when hover on a readonly attribute!

I'm trying to display message on hover over a readonly select in a product page, ( Magento 2.2.4, Php 7) Here's my attempt: CSS: #select_801[readonly]{ background: #eee; pointer-events: none; ...
1
vote
1answer
58 views

custom select type customer attribute not showing magento2

I am trying to create a custom select type of customer attribute for admin only. When I am running my upgradeData script, Its running fine and attribute created in the database, but not showing in ...
0
votes
0answers
10 views

Add associated identification number to ccertain orders, based on order number

I need to add a unique custom identification number to orders when Bank Transfer is used as payment method. The idetification number should be a MOD10 (modulus 10-algorithm / Luhn-algorithm) checksum ...
0
votes
1answer
28 views

Submit form to same page in custom module

I'm looking to submit my form to the same page, but it just redirects to the admin dashboard. Here's my .phtml file: <?php $action = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ===...
0
votes
0answers
39 views

Magento Stop Caching my Registry Key value

I am currently incorporating Google reCaptcha, it all works well apart from multiple forms on a page. Whereby I get the already rendered issue. To combat this a registry flag is set: public ...
0
votes
0answers
34 views

Magento2.1, How to display simple product custom attribute in grouped product table?

I want to display all custom attribute set in the grouped product
2
votes
0answers
38 views

Add custom info to product list magento 1 [closed]

I want to achieve something (probably) simple. What I need is to add a simple short text (25 characters max) between reviews count and product price. The text is different for every product. I've ...
0
votes
0answers
54 views

What is a good way to implement a custom Checkout that matches the business logic of a company with Magento 2.2.x?

How Magento works In Magento 2.2.x, the default Checkout process basically consists of 2 steps: A view for gathering the Customer's Shipping Details A view for Review and Payments The custom ...
0
votes
2answers
182 views

How to add phtml file at edit tab of Magento 2 custom module in admin?

I have created a custom module. When we click on the admin grid to edit, it opens edit page. In that I am showing tabs. When I click on that tab I need to show template file. If you see the below ...
0
votes
3answers
59 views

How to add a custom block after product info in product view page magento2?

How to add a custom block in product view page after product info. I have created a custom block via admin and its id is category-block-1 I have a custom them and i tried override catalog_product_view....
2
votes
0answers
27 views

Not able to access custom input in collect method of AbstractTotal on clicking next first time but i can access it on second time

I am learning magento , so I am trying to create a custom vat module that will allow users to validate vat and on success vat validation tax will be 0. I have added field on frontend checkout step to ...
0
votes
0answers
24 views

Tweaking tracking pixel to reflect order data on Google tag manager

I got a custom pixel from some advertisers which I need to put in thank you/order confirmation page. Code from advertiser - I've to change orderid with actual order id generated dynamically(and is ...
0
votes
0answers
55 views

Custom dropdown attribute magento 2

How to create a custom attribute for configurable product using setup script. and the drop down list out all the bundle product and the value of drop down displayed in product detail page of a ...
3
votes
1answer
45 views

Magento 1.9 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 = "vish@example.co.uk"; $subject = "Vish"; $body = "<...
1
vote
2answers
169 views

Magento 1.9 Create Custom Form and add Validation

I would like to have a custom form with name, address and email fields. However, I am unsure how to achieve this using the proper magento way. At the moment I have the following raw form in my cms ...
0
votes
0answers
17 views

Bind JS custom form data to payment form in Magento2

I have created a custom payment method and using the default payment form (form.html). This is working fine. But now, I have to use the payment form provided by the payment provider. This is ...
0
votes
0answers
100 views

Select2 / Selectize JS does not start domReady! - RequireJs

I have add my requirejs-config.js app/design/frontend/Altravista/my_theme/requirejs-config.js var config = { deps: [ 'js/custom' ], paths: { 'select2': 'js/select2/...
0
votes
1answer
26 views

Weird issue with Magento 1.9 success page and JS code

I am facing a rather strange issue with Magento 1.9. In the success page I have a piece of code that dynamically creates a tag based on the order just placed. The problem is that the tag is not ...