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

How to add custom font in DOM pdf in magento 2?

I have tried to add font using below code in head tag of html but it is not working. DOM PDF is showing it's default font. But i want to show custom fonts as per my website. So tried below code @font-...
0
votes
0answers
12 views

I want display product price dynamically based on change quantity in Magento 2

I want display product price dynamically based on change quantity in magento2 for product detail page. I want reflect product prices based on quantity increment or decrement when we click on plus or ...
0
votes
0answers
9 views

Land of Coder Reports

In another thread, I had asked about custom reports where I wanted a report that listed all orders in a particular timeframe that included orders including the products purchased by customer name. ...
0
votes
0answers
8 views

Add custom filter in frontent product catalog

I've been looking for a few days to add a filter to the display of products in a category. This filter is a date and should not be visible to users. I managed to do it in version 2.3 but with version ...
0
votes
3answers
30 views

Magento 2 How to combine custom module JS in one JS file?

I have multiple modules installed on my website, all modules have scripts in phtml file. I need to move that all scripts into one JS file so it can reduce the page size and merged them as a JS file. I ...
0
votes
1answer
25 views

Magento 2.4: How to get the Invoice Collection of Logged In Customers?

I have to show the invoice collection of logged-in customers in the frontend. I have referred this link how to get current login customer invoice list and shipments in magento 2? invoice-list-and-...
0
votes
0answers
16 views

How to show custom size option editable in dropdown in customer wishlist page?

I want show custom size option editable in dropdown in customer wishlist page
0
votes
0answers
15 views

how to use a custom block in a custom theme template

I am using Magento 2.3 and I have a problem, I have a custom theme that displays the sale price of a product in the path app/design/frontend/mytheme/theme/Magento_ConfigurableProduct/templates/product/...
0
votes
0answers
19 views

How to add search result page In all page as it 's magento 2

As per our requirement in magneto 2, User can search any item in site and get the result as per search and that's working fine. But that result stays and showing on all pages in magneto 2. If user ...
0
votes
0answers
15 views

Magento 2 - Add checkbox in cart page?

In Magento 2 I have created a custom column for quote and order tables : loyalty_card (simple boolean field) In my shopping cart I need to add a checkbox to allow customer to choose to create loyalty ...
0
votes
0answers
19 views

How to add custom tab in custom module in magento 2.3.1

How to add Fields Tab custom module in magento 2.3.1 ui component. Please check screem short
0
votes
0answers
8 views

Magento custom related product module

How can we create form in admin backend that takes product_id and attributes like color=='red' or price>100 and category selection to which that related product should be added and displayed in ...
0
votes
0answers
25 views

How do I change the code in a Magento 2 extension without editing. I need to import csv file, but it will reflect the two tables in database

How do I change the code in a Magento 2 extension without editing it's files directly. I need to import csv file, it will reflect the two tables in database.
0
votes
1answer
27 views

Override third party module service contract

There is third party custom module. For add entries they used service contract entities. I need to add one more entry. Don't want to touch third party module. How can i extend their interface and ...
0
votes
1answer
32 views

Magento 2 how to create custom Field in checkout page

How to create custom field on checkout Page in magento2?
0
votes
0answers
28 views

Moved the billing address form to the shipping address page in the checkout on Magento 2.3.5, but billing address entry is optional now?

Following this method allowed the billing address form to be added to the shipping address page, but entry of a billing address is optional. What I mean is, if the Next button is pressed on the page ...
0
votes
0answers
12 views

Magento 2: Upload JPEG/PNG Image via API

I'm trying to rework a custom script that upload products to the e-commerce but firstly we implement the base64 encoding via Magento and we took almost 16/17 sec of API call (a lot). We need to get ...
0
votes
0answers
9 views

Failed to load the “General_Checkout/js/view/gift-message” component

Hi all I am newbie Magento developer, I have a task about create gift message to checkout page with custom. I following an article to do that, link bellow. Moving Gift message form block from Cart to ...
0
votes
0answers
6 views

Steps to change the color of a footer in custom theme in Magento 2?

Used an _extend.less file, but it did not work out for me. I used this website, method 2, as a reference: https://belvg.com/blog/magento-2-x-how-to-edit-footer-menu-in-magento-2.html Thank you!
0
votes
0answers
26 views

I want to import csv file into multiple tables in magento 2.4.please advice

I am new to magento. I want to import csv file into multiple tables. I created a import.xml, CustomImport.php, RowValidatorInterface.php. After that i created a module, and registraion.php. Even ...
0
votes
0answers
9 views

Negotiable Quote steps like checkout

Is there any way to make the Negotiable Quote in Enterprise edtion to have steps like that of checkout. Final Step will submit the negotiable quote instead of orders.
0
votes
1answer
18 views

how to setup cronjob in magento 1.9.3

I am trying to set a cronjob for export order to another website in Magento 1.9.3 please, anyone, have an idea then plz share it with me.
0
votes
0answers
14 views

How to add custom shipping address by customer-group wise address in magento 2

How can add the custom address in customer group section on admin-side in customer group wise, store address and fronted checkout page wise default selected this address and also shipping to this ...
0
votes
0answers
12 views

assign only one and leaf category per product in magento 2.3.3

I want that the only category checkbox selectable should be the leaf category that is the category checkbox without children in the current branch and only one category checkbox per product can be ...
3
votes
0answers
36 views

Add search functionality in admin for select

Hi I want to add search functionality in select box in admin form. screenshot: https://nimb.ws/Rj5osS , anyone had any idea? I have this code which creates the field: $baseFieldset->addField( ...
0
votes
0answers
10 views

Why can't product weight be displayed on a category page while other attributes can?

I'm trying to display the product weight inside the category pages next to the price. I can display product name, price, id, url, etc, but not weight! To achieve this I overrode final_price.phtml and ...
0
votes
0answers
10 views

Checkout Custom Input field as required=“required” does not mandate the the value to be entered

I have a custom Magento 2.2.6 module, the custom date picker filed under app/code/Vendor/DeliveryTime/view/frontend/web/template/container does not mandate the value to be entered as I have set the ...
0
votes
1answer
11 views

use custom shipping method to calculate shipping price in another section of the marketplace (rma)

I have a problem, I am creating a custom module of rma, the module must allow to calculate the price of the shipment. Additionally I have a custom shipping module that works correctly in the purchase ...
0
votes
3answers
45 views

How to add custom tab in product details page in magento 2.4.0

how to add a new custom tab in the product detail page in magento2 Magento_Catalog/layout/catalog_product_view.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
0
votes
3answers
22 views

How to disable custom plugin in admin

I have created a custom module to disable free shipping based on some conditions. I have to used Custom/ShippingRule/Plugin/Magento/Shipping/Model/Shipping.php to do the functionality. It is working ...
0
votes
1answer
33 views

How to add span tag in wysiwyg editor magento 2.3.x

I just wanted to see is it possible to do add a custom text format as SPAN tag in Magento wysiwyg editor. The current options we get is paragraph/ heading 1-6 I want to add span there. Could anyone ...
0
votes
0answers
11 views

checkout shipping page add custom field in magento 2.3.5

Now i added custom field checkout shipping page but issue add custom module custom.js and define layout checkout_index_index.xml but it's not working checkout_index_index.xml <page xmlns:xsi=&...
0
votes
0answers
3 views

Loading Product collection based on custom attribute filter in magento 2.3.3

Please help me in achieving my below requirement. I have one category called as Tires. When user goes to that category page. It displayes 3 dropdown on the top of the product listing page https://prnt....
0
votes
2answers
74 views

I want to Display custom Price Under price in mini-cart

I want to display price like show in image.i want display 10% of price in mini cart under price please help me.
0
votes
1answer
36 views

How to add field value while creating a simple product Programmatically in Magento 2?

I have successfully created simple product Programmatically using magento 2. But i have created a filed in back end and add that in product but how to fill that data when creating a product. I have ...
0
votes
0answers
17 views

A clean styles in my custom theme

I have a custom folder with styles to different elements, for example buttons. Custom_theme / web / css / source / uikit / elements / _buttons.less It is loaded by an index.css. That works. Also, I ...
-1
votes
1answer
36 views

Custom Module for sending mail in Magento 2 didn;t send mail?

I have created a custom module in Magento 2 for sending the mail but it doesn't send ant mail in my mailbox. There will be no error shown on page itself please any one help about that. Any help is ...
1
vote
2answers
34 views

Magento2 How to Display Product Custom Attribute Value In List Page

i have created one product custom attribute name -> 'is-buynowbutton-show' and i want to get that attribute value in product list page to show buy now based on product setting. Does anyone suggest ...
0
votes
1answer
13 views

Magento 2 :- Custom module menus are not showing in another user account

I want to show a menu to another user. acl.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
1answer
36 views

Magento 2 How can i create a custom factory class for a class?

I want to initialize some data on factory->create() without passing in the create(["mydata" => 1]). What's the way to create MyFactoryClass with custom create() for MyClass in my ...
0
votes
2answers
86 views

how to add product to cart in magento 2 using custom controller?

I have tried the following controller file to add product to cart in my custom extension. <?php namespace MS\Recommendeditems\Controller\Index; class Index extends \Magento\Framework\App\Action\...
0
votes
1answer
38 views

Magento 2 Admin URL only showing Text after Custom Admin URL

I tried to change the Admin URL from the Backend from Stores>Configurations>Admin>Admin Base URL. I changed Use Custom Admin URL to YES and the text box opened to enter Custom URL where I ...
0
votes
2answers
46 views

How to fetch all products in the cart after place order button in my custom module

Step 1: I want to fetch all products in the cart and Show them with a form individually Currently, I am fetching data using this code <?php namespace Softadroit\Prescription\Block; $objectManager =...
0
votes
0answers
32 views

Magento 2: Calculate discounts based on Base Original Price

I'm looking to add a functionality to my site where all discounts are calculated on the base original price of a product. This is our scenario: A customer adds a set of products in their cart. Upon ...
0
votes
1answer
49 views

Exception Error on Success Page Module

I am currently attempting to modify my version of Magento ver. 2.3.4 by creating a new module to inject a custom attribute into the checkout success page. The code in the files is as follows ...
1
vote
1answer
26 views

How to add success mesage on click of add to cart buttton in custom module in Magento 2

I want to display success message on click of add to cart button in magento 2. I am developing custom module in which i can develop functionality of add to cart and i want to add success and error ...
0
votes
1answer
26 views

Magento 2.3.5: How to get csv from the WEB directory of Module?

I want to get csv file from web folder of custom module in magento 2 so how can i do this. please help me. Thanks In Advance.
0
votes
1answer
29 views

Is there any way to get all Applied Discount (for cart rules and coupons) line items in cart/order in Magento 2?

I need to show all cart/order discounts in the following manner: Subtotal ----------- 100.00 CHRISTMAS10 (Christmas Sale 10 % off) ----------- -10.00 CHDLL1242DK (Coupon ...
0
votes
0answers
32 views

How to implement Google Recaptcha in Custom Form?

In Magento 2.3 we are allowed to implement Google Recaptcha as described in the following link https://docs.magento.com/user-guide/v2.3/stores/security-google-recaptcha.html How can I add the same ...
0
votes
1answer
124 views

Admin order page: add print button

I found almost how the print button is created on the invoice page (invoked from vendor/magento/module-backend/view/adminhtml/templates/widget/button.phtml) with the debug option in Magento2. I would ...

1
2 3 4 5
23