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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
1answer
12 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.
0
votes
1answer
25 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
16 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
8 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
0answers
15 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
31 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
18 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
33 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
13 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
113 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
35 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....
1
vote
0answers
8 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
16 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
23 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
36 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
39 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
13 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
40 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
22 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 ...
0
votes
0answers
25 views

Magento 2 custom parameter type in the widget

How can I create a custom parameter type, and use it in my widget? Basically, I want to create a drop-down menu with a different background color for each option. Thank you 😊
2
votes
2answers
85 views

Magento 2 how to get custom attribute value in cart page and mini cart

Please help me out on this Magento 2 how to get custom attribute value in cart page and weight in mini cart Thanks in advance.
2
votes
0answers
24 views

Modification to core files

A developer modified some of our core magento files... not sure I trust the code... Our profiler is saying "mage::dispatch::routers_match" and "mage::dispatch::controller::action::predispatch" are ...
2
votes
1answer
90 views

Magento 2.2.4 Show error message returned by plugin

I'm beginner to Magento2 and I want to validate pincode which exists in custom table or not on Checkout page (www.test.com/checkout/), according to that I want to display error message on same page. ...
1
vote
4answers
60 views

How do I run custom script from magento2 root folder?

Below url throwing Class customScript does not exist error. my test.php and customScript.php are in test folder. Once i run http://127.0.0.1/magento2/test.php, getting "Class customScript does not ...
0
votes
0answers
32 views

How to to add external nusoap library in a custom extension?

I have to include external NUSOAP library in my custom made extension. What steps do I have to take as PHP's require_once() or include() doesn't work in Magento.
0
votes
0answers
13 views

Multiply Price by Custom Attribute. Can it be done?

I would like to have the Price consist of 'Base Cost' and 'Ammount in package' custom attributes. So that if: Base Cost = $2 and Ammount in package = $2 Price displayed in frontend = $2 * $2 = $4 ...
1
vote
1answer
13 views

Custom theme layout not in admin select

I am new to magento 2 and i am trying to figure out what i am doing wrong when trying to make a custome layout for the homepage. I have the following structure let $themPath = app/design/frontend/...
3
votes
2answers
48 views

Magento 2 : Custom Layout for Static Page Empty Into Frontend

I've create a custom layout for static page into Magento 2. app/design/frontend/VENDOR/THEME/Magento_Cms/layouts.xml <page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
0answers
15 views

Magento 2 Custom price option for multiply with base price

I have one special requirement. How to multiply my base price with custom option price? For example: Base price is 17 and custom option price is 3 So if user select custom option at that time ...
0
votes
1answer
30 views

Magento 2 - Is there a way to add a custom help box next to product customizable attributes?

On a product page, you can have customizable options, like: There are probably people out there who don't know what "Finish" means. In this case, I'd like to add a small help box, maybe like this: ...
0
votes
0answers
15 views

Add customer custom field to checkout review step

How can i add my custom field stored in "customer account information" on checkout review step just before place order in magento 1.9.*? this is my custom field setup code $installer = $this; $...
4
votes
1answer
132 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 ...
0
votes
0answers
14 views

Magento2 Custom api with Two methods

I followed below link to create custom api. https://belvg.com/blog/how-to-create-custom-api-in-magento-2.html. Where 2 methods are written in that first method is working but calling rest/V1/test1 ...
0
votes
1answer
43 views

Add to cart custom template

I want to know how to add the link to add the product to the card. I get all my product from magento, but I only display "add to card" but without link. On my template, I display several products, ...
1
vote
1answer
15 views

How To Avoid Using the Save method with custom objects in Magento 2

The save method of AbstractModel is marked to be deprecated, for this reason I try to avoid using it. Normally I do this by using a repository. That's fine for things like orders which Magento ...
0
votes
2answers
94 views

Insert in custom table - magento 1.9

(Sorry if my english is bad, but is not my language) My Magento version is 1.9.3.8 I have a custom module that get data when a costumer make an order. I have no problems to get all the information ...
0
votes
1answer
28 views

How to add my own HTML and Javascript codes to Magento 1

This must be a basic question but I cant find an answer to use. I did some custom functions with Javascript and a design (css/html) and now I want to include them in a Magento 1 project, how can I ...
0
votes
0answers
11 views

How to include external URL (JAVA.inc) file in Magento 2 Custom Module

I am trying to integrate a payment system with Magento 2.2.3. I want to include one java.inc file in my module for calling java function using the object Now I tried to include like this ...
2
votes
1answer
22 views

How to get Checkout page Json data in PaymentInformationManagement.php file?

I have added 1 custom field to the payment step on checkout page. To set this custom field data to quote posted at checkout time I am writing code in the file Plugin/Model/Checkout/...
1
vote
2answers
44 views

Magento 2 : How to Add Custom Header

I am trying to add a custom header in Magento 2. I am creating my custom theme and add custom header page customeheader.phtml but header is not show.
0
votes
3answers
50 views

Magento 2 : my custom menu is not see in admin panel

I was creating a custom menu in Magento 2 but this was not shown file location: Magento2Root/app/code/Cloudways/Adminmenu/registration.php other files:module.xml third file: menu.xml screenshot of ...
0
votes
0answers
18 views

Create a custom product form based on user role in magento 2

I want to hide some field of the product creation form. I know that i can do this with some xml file, but i want to hide them only for specific user role. I found that the event ...
1
vote
0answers
34 views

Custom mega menu by overriding Topmenu.php

I can't find a good mega menu on the web. I want a mega menu which shows thumbnail categories directly in the dropdown menu. But I can't find it, I tried many mega menu but they didn't work. So I ...
0
votes
0answers
10 views

Filter _productCollection of complete website from home page

I am creating a small extension with a basic purpose. Filter products based on custom attribute based on user input in a pop-up. I am able to do this on the product page, ListProduct ( category page ...
1
vote
1answer
56 views

In etc/config.xml This element is not expected. Expected is one of ( default, stores, websites )

Magento version : 2.1.11 I am using a custom module at custom-module/etc/config.xml there is below file. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
2answers
34 views

CSS custom not added

I have this structure : |-app/design/frontend |-Magento |-Theme |-layout |--default.xml |--default_head_blocks.xml |-Magento_Theme |-templates |-web |...
0
votes
1answer
61 views

Magento 2: How to change the position of category

I am working simple Magento site and my task is to change position in a category. In this screenshot, top category and next to custom header, how to change position first see the custom header and ...
0
votes
1answer
84 views

how to add currency switcher dropdown in magento2 custom header

I created custom header using below link. http://oxsoftwares.com/add-custom-header-in-custom-theme-magento2/ I want to add currency switcher inside the custom header, how can we call currency ...
0
votes
1answer
100 views

add custom field in checkout page magento 1.9?

i want to add a custom field in checkout page in magento 1.9 . The custom field should ask where do you hear about us? and should have options as radio button such as fb,google,friend etc. i want to ...
0
votes
1answer
57 views

Add custom attribute customer

I want to add a custom attribute to my customer. For now I have this : (on magento 2.2.4) <?php namespace My\Module\Setup; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\...