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
1
vote
2answers
130 views

Can't get custom attribute value magento 2

I have created custom attribute to product called thickness and i set visible in catalog product to yes but still getting null of this attribute I am going to store / product and created a new ...
3
votes
5answers
647 views

Magento2: How can I logout customer from controller?

In Magento 2, I want to write a custom controller. Whenever anyone tries to call the controller URL (http://mymagento.com/mycontroller/index/index). It should redirect to this controller an event ...
0
votes
1answer
41 views

Custom Code CMS page header collapsed

Here is my cms page code, <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-...
1
vote
0answers
27 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
46 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
45 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' => ...
3
votes
0answers
56 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
13 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?
1
vote
1answer
139 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
41 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->...
2
votes
4answers
659 views

Magento 2 programatically reindex using custom extention controller file

How to set the re-index process automatically in Magento 2 site. We have one custom extension. We want to set cone in controller files. So when we run this controller URL; re-index function work. ...
3
votes
1answer
598 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 ...
5
votes
1answer
738 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
147 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
81 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\...
4
votes
2answers
2k 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
1answer
67 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
31 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 ?
1
vote
0answers
79 views

Shipping method restrictions by category programmatically magento 2

I want to add Shipping method restrictions by specific category in custom shipping method
1
vote
0answers
29 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-...
3
votes
0answers
80 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
43 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
43 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
831 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
31 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
90 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
85 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
31 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
584 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
641 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
34 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
111 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
309 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
1answer
246 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
512 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="...
1
vote
0answers
37 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
531 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
462 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
36 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
61 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
65 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: '...
1
vote
0answers
75 views

Update Store Summary By Checkout Address Country Change

So Basically I want to update my checkout cart summary when user select country from shipping address ,cart price and currency change according to the country he selected in shipping address.
0
votes
0answers
197 views

Magento 2 : Create and Handle Many to Many Relationship Between Two Table

I have two custom table that is related by many to many relationships. So how to create these two tables: is there a specific syntax? and how to handle this type of relation thanks in advance
1
vote
2answers
807 views

Magento 2 import bulk products with custom attribute

I have created 1 custom attribute (current_user_id) and saving value when product is saved. I have usecatalog_product_save_before event that save value for my custom attribute(current_user_id). code ...
0
votes
1answer
374 views

Magento 2 Session getting reset after placing order

Can anyone help me with this? I want some information from the session after order is placed. I tried customer session and even my own new session but after placing order am bot getting anything in ...
0
votes
2answers
280 views

Integrate js with button on uiComponent xml

I have the following custom form in my admin html and I have tried to insert a javascript function on my custom button click but the page being in a infinity loading loop. view/adminhtml/...
1
vote
2answers
101 views

How to modify the custom module URL?

I have created custom module i.e /stores/index/display. But I want to modify the /stores, How can I do that?
0
votes
1answer
37 views

How array set in email.html file

i make custom mail template. my template variables are $TemplateParameter=[ 'customerName'=>$getOrderParams['customerName'], 'orderItems'=>$getOrderParams['productinfo'] ...
1
vote
1answer
288 views

Magento 2 Custom extension admin grid returning blank

I have a custom module on my Magento 2 installation. The problem is when I access the admin grid, it's returning a blank page, just with the title of the page, like the following picture. I already ...
0
votes
0answers
20 views

Menu Items Showing up Behind Remove Item dropdown Magento 2.2

Getting this issue with our magento e-commerce site, The remove item popup is showin below the menu, as you can see in the picture below the menu text appears over the dropdow menu, and are ...

1
3 4
5
6 7
23