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
0answers
15 views

How to create a custom input field in magento 2 checkout page

I have been given a Magento project at work and I am expected to deliver by Friday. My boss wants me to create a custom input field for the Magento checkout page and I have no idea how to. Please, ...
1
vote
0answers
15 views

Magento 1.9.x Custom attribute list in catalog/product list page

I'm definitely not a programmer, I struggle to program a television recording. However I have to see a list of attributes in the short description of the magento 1.9 product list. I created a custom ...
0
votes
1answer
27 views

How to create a separate log file to print the admin details who deletes a customer profile? [duplicate]

I want to create a new log file which will print the admin details who deletes a customer profile from admin panel in magento 2. How can I do that?
0
votes
0answers
16 views

Magento1.9 - Selected option with explode array exception

We're having an issue with getting a selected option from our database. It's a custom made plugin, but it contains a few option values, like these: array( 'value' => 17529, 'label' => ...
0
votes
0answers
16 views

Custom Canonical Tag in Magento 2 Category

I am using Mageworx extension for canonical tags, but want to add a custom canonical tag/url in a category, and remove the canonical url generated by the extension. I am using Magento 2.2.5. I used ...
2
votes
0answers
17 views

Production mode doesnt load any content for custom module

I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is ...
0
votes
0answers
29 views

Magento 2 observer not working

I have added a custom step in checkout which has a form, I need an observer to save that data to the database. I have tried using sales_model_service_quote_submit_before and sales_order_place_before ...
0
votes
0answers
10 views

How to get the payment method used to save in order Magento 2

I've built a custom payment method, everything works. but when I check the order on dashboard the payment method information is not saved. How do I go about this?
0
votes
0answers
12 views

How to set custom tax and custom discount while placing order programmatically magento 2

hi all, we are placing order programmatically at this momemnt we are trying to add custom tax and custom discount. If you guys have any idea please guide me thanks in Advance.
1
vote
1answer
47 views

Instagram pictures on homepage [closed]

I have to create a custom module (or anything else what let me do what i want to), which will display few latest pictures from my instagram on homepage. I do not know how to use Instagram api to do ...
1
vote
3answers
29 views

Magento 2 + custom eav field value store in array

I have a custom eav structure and there is store_id save in array format in the database field. I need to filer collection with addFieldToFilter with store_id. $collection = $this->...
0
votes
0answers
25 views

Magento 2.3.2 Invalid security or form key. Please refresh the page error while accessing custom back end module?

I have created custom admin module in magento 2.3.2. when I try access the module it is showing "Invalid security or form key. Please refresh the page" Can you please help me on this ? as per ...
3
votes
1answer
96 views

Magento2 : Data Not saving in Custom Table

I have created a custom module and trying to save data but not saved data into custom_table. I don't know why? I compared same code with my previous Modules Everything is same. Here is my ...
0
votes
0answers
39 views

Magento 2 How to add custom attribute to Totals Information Interface

I have to add custom attribute to /rest/default/V1/carts/mine/totals-information, so I found TotalsInformationInterface and I tried to add on this, but it is not working. I am doing this because I ...
4
votes
1answer
32 views

Magento 2 How to upload csv in admin and update data in custom admin-grid/table?

I am trying to upload csv that I have exported from existing admin grid. Adding additional data as perticular columnwise in same csv. Howcan I upload/import that new .csv in admin and update data in ...
1
vote
1answer
49 views

Custom modules disappeared after 2.2.9 upgrade

All custom modules have disappeared after upgrade to 2.2.9 from 2.1.9. When I run bin/magento setup:upgrade, last message is "Nothing to import." but the custom modules are not enabled and not added ...
1
vote
2answers
31 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\...
2
votes
2answers
76 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
0answers
29 views

Help please with correct saving multiselect field for Store view edit form

Please help with correct saving adding custom field for Store View edit form. Default Magento Store view edit form: Stores->All Stores->Any Store https://screencast.com/t/WPA3owq3 https://...
2
votes
2answers
18 views

Magento 1.x How to get order Total amount in my custom module page?

How to get order total amount in my custom file ?
0
votes
0answers
22 views

Shipping method restrictions by category programmatically magento 2

I want to add Shipping method restrictions by specific category in custom shipping method
0
votes
0answers
11 views

How to add Layered Navigation On Brand View Page

I'm using free Magento2.3 "Magetop_Brand" Ext. which is working fine but i want to call layered navigation on brand view page...how can i achieve? Ext. URL:- https://www.magetop.com/magento-2-shop-...
2
votes
0answers
18 views

Add Product Selection to Admin Form

I have developed a module for Magento 2 for Promotions. I have a form for this which is working and contains basic information: Title Description Price Start Date End Date I now need to add "...
0
votes
1answer
39 views

Magento 2 : theme

How can we add custom text before welcome massage at panel wrapper? Note: i don't want to display link, I just want to display plain text there.
0
votes
0answers
32 views

How to add extra fields on ccsave payment method?

I need to create two additional fields for the ccsave checkout form. I created in the tables sales_flat_quote_payment and sales_flat_order_payment two fields called cc_parcelas and cc_csc. In html, ...
0
votes
0answers
21 views

How implement form in payment method

I create a payment method for M2 and tried to create a form when the payment method as chosen. The form is working and the input is shown when I choose the payment method But when I click Place Order, ...
0
votes
0answers
39 views

Problem after activating Use Flat Catalog Category and Use Flat Catalog Product

I've activated the following two features for speeding up my site Use Flat Catalog Category Use Flat Catalog Product then re-indexing But then some parts of my site will not show up correctly. for ...
0
votes
1answer
49 views

How to update custom column value in quote_item table magento 2

Actually i created custom column in quote_item and trying to update the value once product added to the cart programmatically magento2 custom module using Model. If Anyone have idea please ...
1
vote
1answer
15 views

Add custom Form to Review and Payments page

There are many examples online about adding a custom form with custom fields to the shipping-step, but I would like to know how to add a custom form with fields to the billing-step page.
2
votes
2answers
27 views

Magento 2 get all customizable options

Is there a way I could retrieve all the custom options and their values? (not from a specific product, but just all of the options)
1
vote
1answer
34 views

Magento 2 : How to create custom Contact form

I am using Magento 2.3 As per my requirement. I have to create multiple form in my website So can anyone provide me appropriate instruction for how can i create custom form like contact form Thanks
2
votes
0answers
19 views

Magento2.3.0 How to do in left side navigation custom category tree structure create it?

I am using Magento2.3.0 I need in left side layer navigation instead replace category section there our custom category tree display on it and its work as on fronted side only.If any one this type ...
0
votes
1answer
19 views

Magento 2 display certain rows from custom table in admin grid

I have a custom table(id,product_id,company_code) that is displayed on the backend as a grid. To create the grid, I followed this link. This displays all the records from the table. I need to show ...
0
votes
1answer
32 views

Magento 2 - Extend onepage.phtml to add custom JS

Magento 2 I have created a custom shipping method module and need to add custom JS to the checkout page where the shipping address and shipping method is set. But it is not working for me. I have ...
2
votes
1answer
27 views

Blank Magento Page without error

After enabling the module created, browsing back to the page gives me blank page instead. Viewing the source of the page gives me basic html tags.
0
votes
3answers
26 views

Custom script leading to 404 in M2

I want to create a custom script for this I have created folder test on root and two files inside folder index.php , test.php My index.php Looks like require DIR . '../../app/bootstrap.php'; ...
1
vote
2answers
88 views

Magento 2: jQuery Datatables Button Extentions Not Working

============================UPDATED 1.1============================ I'm new to Magento 2.3, I'm trying to apply jQuery DataTable(DONE), after than, I want to add it's Button Extension, for that i ...
1
vote
0answers
24 views

Custom css for adminhtml [duplicate]

I want to customize css for magento admin order create form.Can anyone help with the steps to apply my custom CSS.
1
vote
1answer
40 views

Porto - include Mageplaza LayeredNavigation in js file

I'm making a custom theme based on porto. I'd like to include the Mageplaza_LayeredNavigation/js/view/layer in the toolbar.js file of the the Magento_Catalog module, in my custom theme. I tried ...
0
votes
1answer
59 views

How to enable Error Messages $this->_messageManager->addError(__('Error')); in Custom Checkout Module Magento 2?

app\design\frontend\Vendor\theme\Magento_Theme\templates\messages.phtml <div data-bind="scope: 'messages'"> <div data-bind="foreach: { data: cookieMessages, as: 'message' }" class="...
0
votes
0answers
9 views

Repeated rows value in csv

i have created custom php script to get order csv. i am getting order detail with item which is coming fine now but if i have 2 item in 1 order id its create 2 rows with repated detail in remaing ...
1
vote
0answers
21 views

How to add a custom label in shipping address form in Magento2.2.5?

I want to add a only a label - just for informing a user in shipping address form in Magento2.2.5? Any help would be appreciated.
0
votes
1answer
49 views

How use Pagination in Custom Product Page

I display custom products in page. use controller ,block and .phtml files define block and template in xml file. Products are showing correctly i use template module/catalog/view/frontend/template\...
1
vote
2answers
78 views

Unable to override Magento\Catalog\Model\Product\Url, Type Error occurred when creating object

I'm trying to override the Magento\Catalog\Model\Product\Url class so that I can modify the getURL() function, but I'm getting the following error: Error filtering template: Type Error occurred when ...
1
vote
0answers
21 views

Magento2.3 SetTemplate is not working first time ajax

I would like to add additional some field info in sales_order_create_index.xml I used setTemplate: <referenceBlock name="data"> <action method="setTemplate"> <...
0
votes
1answer
23 views

Magneto 2: How to remove duplicate sku with images in each rows of CSV

I am using magento2x. I need to create custom script for removing duplicate sku's with images with multiple entries of sku's in each rows of csv.if anyone know reply me.
3
votes
1answer
34 views

How can i add a custom javascript module to custom module?

Hi this code is working perfect without magento. <script src="flipbook.js"></script> <script src="jquery.js"></script> <script> $('#side').FlipBook({ pdf: '...
0
votes
0answers
8 views

How to expose custom field from sales_order_address table to rest api magento 2

I am able to add a custom field called "subdistrict" to Checkout address of Magento 2. Data is stored nicely in table sales_order_address table now i want to expose this field throught rest API, can ...
0
votes
0answers
18 views

Can't get a column by POST

I've create a module, but i don't know why i can't get the field "qty". Follows code of the grid: protected function _prepareCollection() { $collection = Mage::getModel('catalog/...
0
votes
0answers
23 views

How to get custom tab input value in the product edit page in Magento 2?

I have created custom tab input type but I don't have an idea how to get their value and save value with product. <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...