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
1answer
1k views

Include Toolbar Pager in custom product collection in custom page

I have a custom page where I am listing the custom product collection. I am using the default catalog/product/list.phtml as template to display the page. It's listing fine like the category page. But ...
0
votes
3answers
700 views

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

I was creating a custom menu in Magento 2 but this was not being shown! file location: Magento2Root/app/code/Cloudways/Adminmenu/registration.php other files:module.xml third file: menu.xml ...
0
votes
1answer
21 views

How to get custom product attributes values using graphQl queries in magento 2.3?

I want to get the values for custom product attribute in product details page. I am using below GrapgQl query to get the values. i am passing the name as the argument. How can i get the products ...
2
votes
1answer
1k views

Dynamically updating the sku on the product page of a configurable product based on selected options

I've successfully got the attributes to update dynamically for the SKU on the product page based on the simple product selected (through help found on the web). I'm now trying to apply this logic to ...
0
votes
1answer
595 views

Magento 2: How to define Scope For Router.php

I have created Custom Module. As it requires some front-end routing, have to create Router.php Whenever I'm accessing Magento eCommece Frontend other pages, say Category/Product Page. It will call my ...
0
votes
1answer
21 views

How to display custom block in product_list_toolbar?

I have a problem with displaing my custom block in toolbar toolbar-products between sorter and toolbar-amount. I tried this code: <referenceBlock name="product_list_toolbar"> <block class="...
0
votes
2answers
2k views

Magento Product custom attribute options not showing up in admin

In my Magento ce 1.9.2.1 website, I have created many product custom attributes by setup-upgrade scripts like below: <?php $installer = new Mage_Eav_Model_Entity_Setup('core_setup'); $installer-&...
4
votes
1answer
7k views

Magento 2 : How to add custom data in order email

I am new to Magento. I want to override new order email template and add custom details in order email. Please help. Steps I have done 1.I have create new email template and assign to new order in ...
0
votes
3answers
31 views

Know if user are logged in with Jquery

I'm doing a custom JS code but i wanna know if user are logged in with Jquery.
0
votes
2answers
484 views

How to get customer group in custom module admin page forms in magento 2?

I am creating a custom module. I want to assign Customer Group/s to one of my custom table. In my Grid.php I did customization like this Path : app\code\Myconpany\BusinessPartner\Block\Adminhtml\...
0
votes
1answer
596 views

Custom csv import to a custom table

I want to make a custom csv import functionality to a custom table. I have added the custom table using another module. But my custom import module doesn't seem to work . I followed this link : ...
0
votes
0answers
32 views

Issue facing with Custom Grid Slider

I am using Codazon Fastest theme and my Magento version is 2.2.6. The issue is looking like a responsive problem. When the site is loading, the grids look like attachment 1. When I make restore and ...
0
votes
2answers
584 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
4answers
332 views

Magento 2.2.5 can't find sitemap while it is generated

I'm struggling with an weird issue. I can't make any custom files / folders in my root of magento. I want to make a custom folder with some images, resulating in 404 errors when trying to reach the ...
1
vote
1answer
40 views

Custom custom options magento 2

Looking for some advices/ideas Magento 2 offer us Custom Options in catalog section. In Backend, we can add custom options like below picture and it appear on frontend like My question is I want ...
0
votes
1answer
582 views

Magento 2 : How To Create Custom Grid in Product View

How to create a grid under custom tab in product View/Edit Page in Magento2?(like Product Review grid) If anyone knows Please explain me .. Thanks.
0
votes
1answer
21 views

How to set Custom shipping Amount to an order programmatically magento 2.3

Hi all, actually i am creating an order programmatically now i trying to set custom shipping amount to order. @all i tried Magento1.X link there they have implemented using $order->...
0
votes
0answers
20 views

Error in graphql schema running in magento 2 : Cannot query field \“wordoftheday\” on type \“Wordoftheday\”."?

I created a custom module with a custom table in magento 2.3.2 including grpahql schema. I want to get the data using graphql by passing an argument. I am getting the following error in Alatair ...
2
votes
2answers
118 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
15 views

Custom option file or image save with extension in magento2

I want to save custom option file save with extension. Actually i make pdf and print image in this way $optionvalue["fullpath"]=/var/www/html/magento2/pub/media/custom_options/quote/1/_/...
1
vote
1answer
41 views

How create Custom Pdf in magento 2 Like invoice , Shipment

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

Add Custom Information in pdf When Print All in sale order grid dropdown in Magento2

I want to add some custom information in pdf When admin click on sale Order Grid dropdown Print All option . Can anyone guide me i will be appreciate . Just i want to add some footer or other text ...
1
vote
2answers
1k views

How to add more information to Order Information page (Admin and Customer)

I'm super noob in Magento module development, but I'm working on a custom payment module that grabs some payment information on checkout into "additional_information", using this Observer: class ...
0
votes
1answer
27 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 ...
1
vote
2answers
56 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 ...
1
vote
5answers
181 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 ...
1
vote
1answer
590 views

How to create a pdf download file in Magento 1 my account custom module?

I have a custom module that allows customer to returns the product. Everything working fine and i want to generate a label pdf to paste in the return box.I tried below approach and i am getting error. ...
0
votes
1answer
32 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-...
2
votes
4answers
149 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. ...
2
votes
2answers
762 views

How to add active class in top links?

I want to add active class in top links? \app\design\frontend\default\default\template\page\template\links.phtml <?php $_links = $this->getLinks(); ?> <?php if (count($_links) > 0): ...
0
votes
0answers
16 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, ...
0
votes
1answer
645 views

Add custom block before main content only on the contact page

i would like to add a static block between the nav menu en the content so i can give it the full width of the page. This block must only be visible for the contact us page. System: magento 2.1 ...
1
vote
0answers
18 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
2answers
651 views

Custom magento 2 theme not showing up up on content/design/configuration

Hello Developer community, I have been trying for two day to figure out how I can customize my magento template. Recently I have become stuck on being able to pull up my new magento theme in the ...
0
votes
0answers
18 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
1answer
766 views

sorting not working magento 2

I created a custom column "product_name" in sales/order grid, When I am sorting this column grid showing error: Item (Magento\Framework\View\Element\UiComponent\DataProvider\Document) with ...
0
votes
1answer
702 views

How do I check If custom options exists for product?

I am inserting custom options programmatically for multiple products from some template where I add options and assign them to products But when I edit those options and assigned it to more products ...
0
votes
1answer
29 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?
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 ...
2
votes
2answers
2k views

How to delete a custom table entry by clicking a delete button in a phtml file in Magento 2?

Fetched details from my custom module and displayed it in a table. There is a delete option give to corresponding row entries. The above table codes written in a phtml page. How to delete the db ...
0
votes
2answers
776 views

Breadcrumb on custom category listing page Magento 1.9

I am working on a theme which is customized by someone else. So in /websitename.com/app/design/frontend/rwd/ysv/template/page/category.phtml is created which is called.When I click on any ...
1
vote
2answers
620 views

How to update product prices and their custom option prices by the same percentage in bulk?

I am quite new to the Magento platform and have been slowly getting the hang of it, but have come to an issue I need help with resolving. A lot of the products on my website have custom options which ...
1
vote
1answer
50 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 ...
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
14 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.
4
votes
1answer
836 views

How set order with custom field column magento 2

I want to setOrder with custom field column in get list product. I override toolbar.php but it's not working di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
3answers
32 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
55 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 ...
4
votes
1answer
54 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 ...
3
votes
1answer
108 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 ...