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
10 views

How to get delivery date module into store-selector / instore-pickup in checkout?

So I got this module to pick a delivery-date,- time and comment. It is visible on /checkout/#shipping at the bottom of the form for every shipping method but I want it to only show for "In-store ...
0
votes
0answers
7 views

Display stock qty on custom options magento 2.4.2

I bought the advanced product options suite from Mageworx but after installation on Magento 2.4.2 I realised that backorder for stock is not working the way I want it (out of stock can only be ...
0
votes
0answers
11 views

How to add pagination to front end list?

<?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $resource = $objectManager->get('Magento\Framework\App\ResourceConnection'); $connection = $resource->...
-1
votes
0answers
27 views

sales_model_service_quote_submit_before in custom module

I am using sales_model_service_quote_submit_before in my custom module for adding quote additional_options to order item options its working fine but vendor/magento/module-quote/Model/QuoteManagement....
0
votes
1answer
27 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 ...
0
votes
0answers
21 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\...
0
votes
0answers
18 views

Magento2 - How to add custom product attribute of type is Only Year field?

Greeting of the day! As per our requirement wise, I need Custom Product attribute and their type is the only YEAR field, so that how can I create the date year attribute only allow to select the year, ...
0
votes
0answers
15 views

Add a new "Extra information" field to the billing step

I was to add a new input field like "Extra information", or "Comments" for the order at the billing step that should be visible through BE > Sales > Orders among the email ...
0
votes
1answer
20 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&...
0
votes
0answers
7 views

Creating Custom Inventory Report Magento 2

I am new to magento development, I want to create new custom report for inventory report, I have followed the link below, but its showing nothing on reports. I am using magento 2.4.2 version I ma not ...
0
votes
0answers
13 views

How to add custom price on checkout on selecting a dropdown in Magento 2.4?

I want to add custom price on changing the drop-down menu in checkout page. Like Like I want when I selected the drop-down 2nd value I want to add custom fee in checkout and when it will changes to ...
0
votes
1answer
21 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 ...
0
votes
0answers
15 views

Magento 2 custom Product Catalog Export

I want to create a new custom Export entity, that will be almost the same with the default Products export entity, except only a certain set of product attributes will be exported as columns, some of ...
1
vote
2answers
42 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 ...
0
votes
1answer
45 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 ...
1
vote
1answer
17 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 ...
0
votes
0answers
16 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.
0
votes
0answers
16 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
0
votes
2answers
31 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\...
0
votes
1answer
31 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\...
0
votes
0answers
25 views

Warning: Can not use a scalar value as an array in /var/www/demo/vendor/magento/module-email/Model/AbstractTemplate.php on line 472

I have created the custom template for sending the emails. <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr>...
0
votes
1answer
20 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\...
0
votes
0answers
9 views

How to add custom section between shipping address and shipping method on checkout page?

I want to add custom section between shipping address and shipping method on checkout page. This custom section has to one text field. This field needs to save in quote and order table. Can anyone ...
0
votes
2answers
26 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);...
0
votes
1answer
26 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/...
0
votes
0answers
18 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 (...
-1
votes
2answers
45 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\...
0
votes
0answers
22 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 ...
0
votes
2answers
31 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()) :?> <...
0
votes
0answers
20 views

/var/www/demo/app/code/Eaglerocket/Customquote/view/frontend/templates/index.phtml How can I see its view?

I have created a pop up modal, how can I see its content on the website to check whether the pop up is opening or not?
0
votes
1answer
52 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, ...
0
votes
0answers
19 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....
0
votes
1answer
35 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&...
0
votes
1answer
15 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 ...
0
votes
1answer
7 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 ...
0
votes
1answer
17 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/...
0
votes
0answers
28 views

Translate “custom option” in mini-cart for multistore

I have managed to successfully translate the custom options in the article (see previous question here. But the next step is to reproduce these options also in the "mini-cart". The minicart ...
0
votes
2answers
39 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 ...
1
vote
0answers
11 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 ...
0
votes
0answers
11 views

Magento 2 can you call a custom widget inside a custom widget?

I have two module, which both have custom widget. I want to insert the widget to my second one. Whenever I call my second widget I get the following {{widget type="Magento\Catalog\Block\Product\...
0
votes
1answer
39 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, ...
0
votes
2answers
40 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
15 views

Magento2: Issue with getPublicName from custom module

I have custom module. app/code/Ced/Marketplace/view/frontend/templates/vendor.phtml Code: <?php $vendorData = $block->getVendorData(); if ($vendorData->getId()) {?> <...
0
votes
1answer
33 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....
0
votes
0answers
13 views

magento 2 get folter attributes values in custom api

Hi i created custom API in magento 2 in that i need to implement advance search like store brand,model and year search like this i am able to get brand fileds ` public function getAddtocar($attribute)...
0
votes
0answers
9 views

Magento 1.9 How to add custom button to sales_invoice/view in admin?

I want to add a custom button on the invoice view page in admin. anyone has any idea please share here.
-1
votes
1answer
39 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 ...
-1
votes
1answer
67 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 ...
0
votes
1answer
23 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 ...

1
2 3 4 5
24