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

How to create custom sorting in sales grid custom column in Magento 2?

I have created a custom column named printed which shows the invoice is printed or not and works well. But how to apply sorting in in it like when i click on printed firstly it shows all data with ...
Prits's user avatar
  • 625
0 votes
1 answer
159 views

How to send inquiry email to customer on admin reply in magento2.4.3

Hello all magento developers, I want to send inquiry email notification to customer when admin can add reply to customer inquiry in magento 2.4.3. can anyone have idea then please share here, Thank ...
Deep Shah's user avatar
  • 565
0 votes
1 answer
249 views

How do I display a custom text-field attribute on the product grid. CE 2.3.2

Sorry if this is a rehash, but I can't find the exact answer to my problem. I'm looking to display the contents of a custom text field just under the product name on the category page grid. I have ...
Andy's user avatar
  • 57
0 votes
2 answers
655 views

How to filter admin grid column using a different table colum from database?

in my form_list.xml i have something like this <column name="testcolumn" class="Vendor\Module\Model\Block\Source\Testcolumn"> <argument name="data" ...
Md.Rafiuzzaman Khan's user avatar
0 votes
1 answer
302 views

Why is my my custom edit page for my custom admin panel not working?

fellow Magento developers. Ive been working on this new exercise including a whole admin panel and all that. i was working on the edit and ran into an issue that produces these 2 errors in my log ...
Zyzzx's user avatar
  • 81
0 votes
1 answer
485 views

Magento 2: How to get column total in custom admin grid

This is my custom admin grid. The last column shows the total which is a multiplication of cost and qty fields. I want to show total of the column(total) in the last row and last column. The row ...
mechanic's user avatar
  • 440
0 votes
2 answers
483 views

add custom tab in product page

Is it possible to add custom tab in product page remains in custom module(with out changing template of theme). if it's not possible help me in extending template of theme to adding custom tab in ...
Muhammad Zahoor's user avatar
2 votes
2 answers
1k views

Redirect Customers to specific page after Login in Magento 2?

How to redirect customers to a custom page when they go to any other page. I have set Redirect Customer to Account Dashboard after Logging in to the store configuration but it is not working.
Tarang Methaniya's user avatar
1 vote
1 answer
371 views

How do I add Custom Rest API Swagger as per Magento documentation? in Magento 2.3.4

Can anyone please suggest how to add custom Rest API to Swagger documentation in Magento 2.3.4?
Shubhanshu's user avatar
1 vote
0 answers
116 views

How to link a custom button to a controller file in magento form

So I have a custom module where I have custom form and custom product grid section. So I have created some custom button on both pages through UI components. Now I want to link these buttons with a ...
Ashish M's user avatar
1 vote
2 answers
262 views

How can I Add Custom Text Message to Login Page in Magento 2?

How can I add a Custom Text Message to Login Page in my Magento 2 store? can anyone help me with a step-by-step method for it?
Kuldeep Sharma's user avatar
0 votes
1 answer
45 views

Overriding Third Party Component code - preference

I am using an extension that displays a message as the customer approaches a Free Shipping threshold (https://aheadworks.com/free-shipping-bar-extension-for-magento-2), eg, "30 euro left until ...
rodolphesalis's user avatar
0 votes
1 answer
433 views

Magento 2: How to override Catalog Model class in custom extension?

I am trying to extend Magento\Catalog\Model\Product\Image\ParamsBuilder class in the custom extension and I have passed all the parameters of parent constructor but I'm getting this error, Type ...
Bushra's user avatar
  • 62
0 votes
1 answer
838 views

How to override magento/module-checkout/view/frontend/web/template/minicart/item/default.html in custom module

I have custom additional options in quote and want to hide few options in the mini cart. How to skip a specific index in Knockout js array from the following code <dl class="product options ...
Soumyo Deepto's user avatar
0 votes
0 answers
208 views

Magento 2.4.1 Custom sort option best sellers is not working

I have created a custom bestsellers sorting option, the query working fine but setOrder() and order() is not working, i want to sorting the values using qty_ordered <?php namespace Vendor\...
Ali's user avatar
  • 1
0 votes
1 answer
29 views

Add into Top Link - My Downloadable Products

I need to add a link to the top.links block that links to My Downloadable Products and translate it to My Favourite Product, can you tell me if this possible. <referenceBlock name="top.links&...
Lerry's user avatar
  • 69
0 votes
1 answer
340 views

How to add custom user role in the registration form process in magento 2?

I am new to magento platform. I am using magento version 2.4.2 for my project, I want to add the select user type field in registration form. When customer registers. Is it possible to add the custom ...
Prasad D's user avatar
1 vote
2 answers
219 views

How to show/hide custom product tab on product detail page according to product's custom attribute value?

I have custom attribute named "show_tab" in products. I have enable/disable value for this product. I want to show custom product tab according to attribute's value. Custom product tab is ...
Dhwani Kothari's user avatar
0 votes
1 answer
299 views

How can I set custom value in "created_in" when customer data import in Magento 2?

I need to set custom value in this field "created_in" when customer data import using admin side how can I set the custom value in that . I need to set custom value in that can any one ...
Jay Parmar's user avatar
2 votes
1 answer
576 views

Custom CMS page XML identifier when URL key contains a "/"

I need to create an XML file for a custom CMS page but the URL key contains a "/": i.e. my/page-id Is there a way to do the equivalent to cms_page_view_id_my/page-id.xml for this? I've tried ...
rushtoni88's user avatar
0 votes
0 answers
143 views

How to double the items in the cart by updating the quantity in the product cart page?

Double the value in the cart by updating the quantities.
kks's user avatar
  • 19
0 votes
0 answers
20 views

Can anyone resolve this issues? Two buttons (add to cart )are coming with the disabled mode

I need to apply the code for the add to cart button but it is coming in disabled mode hence unable to do the required changes.strong text
kks's user avatar
  • 19
0 votes
2 answers
663 views

How to get the template Id in controller? template Id is returning NULL for the custom template in the custom module

Index.php <?php namespace Eaglerocket\Customquote\Controller\Index; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Context; use Magento\Framework\...
kks's user avatar
  • 19
0 votes
1 answer
396 views

Notice: Undefined property: Eaglerocket\Customquote\Controller\Index\Index\Interceptor::$storeManager in Index.php on line 138

<?php /** * * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Eaglerocket\Customquote\Controller\Index; use Magento\Framework\App\Action\...
kks's user avatar
  • 19
0 votes
1 answer
22 views

This is the error I am facing while sending the mail function

<?php /** * * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Eaglerocket\Customquote\Controller\Index; use Magento\Framework\App\Action\...
kks's user avatar
  • 19
0 votes
2 answers
36 views

Query is not working?

/I need those questions whose status is 1 but its not working/ <?php $i=1; //$coll=$collection->getSelect()->where("`main_table`.`status`= 1"); //$collection->load(true);...
kks's user avatar
  • 19
0 votes
1 answer
32 views

New page in account dashboard

This is my current customer_account.xml file I am able to get the tab to display inside of the account dashboard but I am not able to render the page I need. My current file path is html/app/design/...
Carter's user avatar
  • 47
0 votes
0 answers
201 views

Datepicker in custom widget Magento 2.3.4

Is there any chance to create a field in custom widget with datepicker? I have a field that means end of sale and now I can type there text in spcific format only. I want to have there a datepicker (...
LeTeeL's user avatar
  • 42
-1 votes
2 answers
83 views

I need to display table data in my custom module at the front end of the site. Its saying wrong argument for $collection

/*Showdata.php Controller\Index */ <?php namespace Eaglerocket\Customquote\Controller\Index; use Magento\Framework\App\Action\Context; use Magento\Framework\View\Result\PageFactory; use Magento\...
kks's user avatar
  • 19
0 votes
0 answers
25 views

If trying to get the current product info then pop up model is not opening

/Blockname.php/ <?php namespace Eaglerocket\Customquote\Block; use Magento\Framework\View\Element\Template; class Blockname extends Template { protected $_registry; public function ...
kks's user avatar
  • 19
0 votes
2 answers
162 views

Need to show the value of the product in the value attribute of input element but it is not giving any value. Where is this get product function?

<?php $_product = $block->getProduct(); ?> <?php $buttonTitle = __('Add to Cart'); ?> <?php $buttonTitl = __('Get Quote'); ?> <?php if ($_product->isSaleable()) :?> <...
kks's user avatar
  • 19
0 votes
1 answer
940 views

Unable to edit integration

We recently cleaned up our Magento 2.4.2 store so we had no generic users. Since we did this we noticed one of our integrations shows as inactive and we are unable to Activate or edit the integration, ...
P Walker's user avatar
0 votes
0 answers
26 views

On clicking on the add new post button in the custom module , its saying Invalid form key. Please refresh the page

I followed this module for creating the module now need to click on the add new post to add the data from the buttonhttps://www.mageplaza.com/magento-2-module-development/create-admin-grid-magento-2....
kks's user avatar
  • 19
0 votes
1 answer
41 views

Changes in the child custom theme are not visible in the front end

<referenceBlock name="footer_links"> <block class="Magento\Framework\View\Element\Html\Link\Current" name="about-us" before="search-term-popular-link&...
kks's user avatar
  • 19
0 votes
1 answer
26 views

URL key for specified store already exists while importing products through custom script

I have some of the products already added in magento admin. And now i am trying to create same name product with the use of script that time i am facing error "URL key for specified store already ...
ZealousWeb's user avatar
  • 2,186
0 votes
1 answer
57 views

Magento 2: I Want To Make Custom Products Tab On Home Page

I trying to make custom dynamic tab on home page but when do that I get an error Uncaught ReferenceError: tab is not defined at HTMLButtonElement.onclick ((index):1200) Here is my code I don't know ...
Partab Saifuddin Zakir's user avatar
0 votes
1 answer
355 views

Override product bundle select.phtml file in Magento 2

I'm trying to override the select.phtml used on the bundle product view page I've put it here: app/design/frontend/[vendor]/[theme]/Magento_Bundle/templates/catalog/product/view/type/bundle/option/...
freestate's user avatar
0 votes
2 answers
553 views

Magento 2 Can i call two phtml file into one?

I have two phtml files, I want to use one for just the heading title and content. then the second phtml file I want to use it to call a table with a simple form submission. is this possible, if anyone ...
Tj1997's user avatar
  • 47
1 vote
0 answers
197 views

Magento 2 custom routing frontend not working (100 router match iterations)

I have used this url to change it but i am keeping getting the same erros https://magento.stackexchange.com/a/209478/96152 i have a custom routes.xml <?xml version="1.0"?> <config ...
Tj1997's user avatar
  • 47
0 votes
1 answer
286 views

How to call a function from a custom module on checkout page in magento 2

Guys I'm learning how to create modules in magento 2, and I have a doubt, how do I call a function that is in my controller in magento 2 ?. In the controller I defined a function that does one thing, ...
lucas's user avatar
  • 309
0 votes
2 answers
182 views

Currency conversion from 3 character code (USD) to their symbol as output ($) in magento 2?

Does magento 2 is having something inbuilt function for currency symbol getting ? What I want is - Input will be 3 characters currency code as USD, INR, JPY, EUR etc. corresponsing to that output ...
Vibhore Jain's user avatar
0 votes
0 answers
228 views

I want to add qty filter same as price filter in layered Navigation in Magento 2

In this i want to develop functionality in which qty filter is added and in that range is displayed in layered navigation as price filter. qty range as below: 1 - 50, 50 - 100, 100 - 150, ... so can ...
Deep Shah's user avatar
  • 565
0 votes
1 answer
116 views

Magento 2 Change custom option name with mySql

I have this line which I can use to update the price of a custom product option. UPDATE `catalog_product_option_type_title` a JOIN `catalog_product_option_type_price` b ON a.option_type_id = b....
Carter's user avatar
  • 47
-1 votes
1 answer
641 views

Added custom customer attribute with patch script but it gives an error

I added a custom attribute to my customer with a data patch script. The attribute is added in the database tables but when I try to register a new customer I get this error: main.CRITICAL: Exception ...
amjada's user avatar
  • 11
-1 votes
2 answers
1k views

Adding custom customer attribute with declarative schema and db_schema

I added a custom attribute in de customer_entity table with db_schema.xml. I can get the value of that attribute with getdata('debtor_id') but I can't set it with setData('debtor_id' ,2). Did I miss a ...
amjada's user avatar
  • 11
0 votes
1 answer
48 views

Theme Luma issues

For my online store I want use Luma theme and in priciple all good, but I need modify little structure, I need below menu add custom links list (which will be displayed on all pages) - I have .phtm ...
John Genry's user avatar
1 vote
1 answer
150 views

Magento 2: Data printed in Controller but display null in observer

Controller file $collection = $this->investmentFactory->create()->load($id); $collection->getData(); // echo '<pre/>'; // print_r($collection->getData()); ...
Arun Sharma's user avatar
  • 1,315
0 votes
1 answer
102 views

How can we add/register our own custom view mode in addition to default grid and list mode?

I am new to magento and using 2.4.2. I have some prior experience in working with TYPO3 CMS. Ok. Now I want to add custom table mode to the defaults (Stores -> Catalog -> Storefront -> List ...
Midun Mano M's user avatar
0 votes
3 answers
1k views

Header and Footer in Luma theme

I want some customization theme luma in my magento 2 website, so I need add in header for all pages banner - custom blocki created - (banner-section) below menu and in footer I need add custom block (...
Lerry's user avatar
  • 69
0 votes
1 answer
936 views

How to create a custom router with url key

I'm looking to create a custom router so that if I go to www.mysite.com/promotions/cruise-trip it would route to www.mysite/offers/promotions/index/id/5 for example. I'm not really sure how to do this ...
SNAFU's user avatar
  • 196

1
2
3 4 5
24