Questions tagged [custom]
Denotes questions about Custom code or Custom modules which is used to add/extend/enhance the existing functionality of Core Magento.
1,183
questions
0
votes
0
answers
9
views
Filter Product Grid Column Based on SQL calculation
I have a custom column within the Product Grid that states whether a product is In Stock or Out of Stock, based on whether or not the Salably Quantity is greater than zero.
While I have managed to get ...
0
votes
0
answers
23
views
Updating a custom field added in edit customer shipping address
I have a custom field added for my customer address :
\Magento\Customer\Setup\CustomerSetupFactory $customerSetupFactory;
public function upgrade(ModuleDataSetupInterface $setup, ...
0
votes
1
answer
31
views
Magento2 Order email missing custom variable values for first time & when I send email from admin it shows values
Magento2 Order email missing custom variable values for first time & when I send email from admin it shows values
Basically this custom variable values are the order attributes.
I have used this ...
0
votes
1
answer
38
views
custom widget to retrive price
I am new to this Magento platform.
I want to create a custom widget to retrieve the price so that I can use it just by calling the widget on the front page.
May anyone help me?
0
votes
1
answer
29
views
I want to add custom model pop up for buy a subscription
I want to add custom model pop up with some message. I am creating three category A, B and C when I click on C category a model pop up will show with message please buy a subscription to product under ...
1
vote
1
answer
38
views
custom Section data need to update on cart item delete in magento2
I have created custom section data called test
and create sections.xml file with below code
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
0
votes
2
answers
77
views
Can we add extra container to page header in Magento 2?
I need to add a extra container to page header.
https://prnt.sc/dq9LDPcioxvJ
please check attached screenshot.
0
votes
0
answers
47
views
How to add utf-8 on the default export csv
I have used the default export csv of magento 2 in the listing.xml.
I have a problem when I have a japanese character in the export.csv file the japanese characters are broken. How can I fix it?
<...
0
votes
0
answers
21
views
Custom Module accessible to other users but not working properly
I have created a custom module named "Service voucher list"
I have created the acl.xml file too so that other users can have its access by custom resources too. now the module is accessible ...
0
votes
0
answers
15
views
Create custom invoice using default pdf with additional option in admin to download
I need to create a custom invoice using the default pdf class having an additional option in admin/orders download as "Invoice with vat"
I did create a module using code from the following ...
0
votes
0
answers
25
views
How can I add a custom stylesheet to my custom theme?
I am losing my mind because I am following guidance in documentation but literally nothing works.
I added a custom theme that references luma. my directory structure is /app/design/frontend/...
1
vote
0
answers
49
views
Error while login customer into the authentication-popup frontend
Actually, I have installed the phone number login extension into Magento 2.4 downloaded it from GitHub, and added some new functionality as per the requirement after doing all functionality I faced an ...
0
votes
0
answers
24
views
Code Sniffer Fails
I am trying to run code sniffing for one of my module and it is giving the below error.
**Class 'ArrayObject' is restricted in /usr/share/eqp/PhpCodeSnifferTool/tmp/work/DataObject.php. Suggested ...
0
votes
2
answers
330
views
Custom theme not getting generated after upgrade to magento 2.3.2
I have upgraded my site from 2.2.6 to 2.3.2 version.
After upgrading through the composer command I run static-content:deploy command.
I see that in pub/static my custom theme is not getting generated....
0
votes
1
answer
31
views
Display and link custom attribute in product page mangento 2
I have installed magneto 2.4.5 and trying to show manufacturer above product title .
I have set custom theme using Luma as base , I have found many example of showing custom attribute on the product ...
0
votes
1
answer
311
views
Magento 2: What controls the validation of the shipping form? How can I add a callback to run when the validation is successful?
I have a custom checkout module and as part of the design I need to run some custom JS when the shipping address form is valid. By default the form is validated when all the fields have values. I have ...
0
votes
2
answers
295
views
URL key is already in use by another blog item
Anyone can help me to fix this problem ?
0
votes
1
answer
145
views
How to redirect to the form with entered data if a form content have any error in magento 2 admin custom form?
I have a custom admin form, After click save button i am checking some unique url in my save controller. If the url is not unique, i want to pass an error message and redirected to the form with filed ...
0
votes
1
answer
151
views
Magento 2.4.5p1 Remove Price From Custom Product Options Drop Down - No Solution Working
Hello and thank you for any assistance with this. I have tried many things to make this work but nothing has worked so far.
I have tried every solution on this page:
Magento 2.2.3 - Remove price from ...
0
votes
0
answers
40
views
Magento 2 Exclude Paypal BuyNow button for certain products
Certain products cannot be paid with Paypal, we have a Custom Attribute with a Yes/No value.
where can I create a simple query or css condition with a display=none?
Thank you!
0
votes
2
answers
513
views
How to insert a listing in admin form in magento 2 UI Component method?
I have a Category, and Questions form in my custom module. Questions are added against category.
Each question can be belong to a category or multiple category.
I need to insert a listing on category ...
1
vote
2
answers
452
views
Inventory Stock item
I am trying to add a custom field to the MSI source item. Please check the following screenshot-
I have overwrite product_form.xml in app/Vendor/Module/view/adminhtml/ui_component/product_form.xml as ...
0
votes
2
answers
451
views
How to import product Video programmatically with the use of custom script in magento 2.3.4?
I import all product by custom script. but I'm not able to import the product video programmatically.
Basically, I have youtube link of videos. I can put url the using admin panel but I have 3000 ...
0
votes
0
answers
28
views
Magento 2 adding a block on top of add to cart and quantity for configurable products
I am trying to add a custom block on top of the quantity and add-to-cart on the product details page for all products by making changes to catalog_product_view.xml.
I am able to achieve this using ...
0
votes
1
answer
39
views
Composer Patch vs. Custom Module for Vendor Directory Modifications
Is there a general consensus on when you should create a custom module to override core vs when you should use a composer patch?
At present, I need to add @ to a line of code and feel that a module is ...
0
votes
0
answers
96
views
How to update dynamic content based on states selection after shipping methods in magento 2?
I need to update some content dynamically after shipping methods on shippingAdditional fields section in Magento 2 based on state selection.
My checkout_index_index.xml file
<item name="...
0
votes
0
answers
17
views
After new compilation , my custom module's table data was reset in magento 2?
I have a custom module with the custom table, When i am doing compilation in some time the table data was completely removing and only the empty data base table is exist.
I created this table using ...
0
votes
1
answer
348
views
How to save the Store address as shipping address when customer choose store picukup?
My requirement
I Have created custom shipping method for allowing customers to choose Stores to pickup the orders. When the customers choose the stores pickup option, I need to update the selected ...
0
votes
3
answers
250
views
How To create countdown Timers in custom phtml
I have two fields StartDate and EndDate.How to Implement Timerfunctionality with these fields in custom phtml
for example for the following format..
$startdate='31-10-22 00:00:00';
$enddate='01-11-22 ...
1
vote
2
answers
334
views
Custom field in checkout shipping method section giving an error - magento 2.4.4
My requirement
I want to show available stores in checkout when customer choose Store pickup( Custom shipping method).
I did not use Magento default because inventory is not managing location wise.
...
0
votes
1
answer
186
views
How to retrieve custom product attributes through product description or short description using phtml templates?
Using: Magento 2.4.5 Community Edition
I currently have two custom phtml blocks {short_description.phtml, description.phtml} located in app/code/Vendor/Theme/view/frontend/templates.
As an example, ...
2
votes
1
answer
132
views
how to copy customer attribute values of phone number attribute to mobile number attribute using CLI Command in magento2
After migration of magento1 to 2 i am getting the issue.The Phone Number Attribute has the values.But I want that values in my new attribute Mobile Number.
how to copy customer attribute values of ...
3
votes
2
answers
77
views
Injecting code into theme product page
The may well be too broad of a question, but I'm having extreme difficulty finding any answers. I want to know if its possible to add a phtml block/view to a product page when you have a theme ...
1
vote
1
answer
107
views
Magento 2.4.3-p2 Custom Module stopped sending emails
My custom module used to send emails until one of the latest Magento Version upgrades.
I have no clue why it stopped sending them.
sendmail
<?php
declare(strict_types=1);
namespace Schott\...
0
votes
1
answer
213
views
how to copy custom attribute values from quote_address to sales_order_address table
i am using some custom attributes in customer address section.The attribute values are getting in quote_address table but not getting that in sale_order_address table.
The file i used to do that field....
0
votes
1
answer
213
views
Email template id is not found issue in magento 2 admin custom form Magento 2
I Want to send a url to customer from admin panel custom form.
I use below steps to perform the task.
1 - email_templates.xml file content
<?xml version="1.0"?>
<config xmlns:xsi=&...
1
vote
1
answer
169
views
Is that possible to customize "files export path"?
System - Data Transfer - Export
The files export is in /magento/var/export/. Can we custom this path?
And if we can custom. How to?
0
votes
0
answers
192
views
how to get custom product attribute value in model file in magento2
I have created a custom product attribute using data patch in my custom module and it is visible in product configuration in admin, also when I save value in it, it get save to ...
1
vote
0
answers
174
views
Magento 2 Add a global js function
i'm trying to extend Magento_Ui/js/lib/core/class, in magento 2.4.3-p1, from a module but my extend js doesn't load in page
here is my /view/frontend/web/require-config.js
var config = {
config: {
...
0
votes
1
answer
532
views
How to add yotpo review to custom page: magento2
At website front side in custom page, i'm showing category list with name and image.
How can i show yotpo reviews with categories?
Thanks.
0
votes
1
answer
50
views
Where to add custom CSS and Js file in freely available custom theme (Appreal Theme from Hiddentechies)
I am using Hiddentechies Appreal free Theme for my Magento2 project. I want to add a custom CSS file and Js file (for jQuery) so that it will override the classes(CSS file) and add functionality (Js ...
0
votes
1
answer
46
views
Custom Module : "Product is not compatible with Page Builder" get error when upload to marketplace
I'm submitting my custom Maintenance Mode module in the marketplace but they are giving me error as below,
Product is not compatible with Page Builder - Version 2.0.0 claims to be compatible with Page ...
2
votes
2
answers
4k
views
Insert data into custom table in magento 2
I have created a custom table in database of magento 2. I want to insert some data into this custom table. I want to pass this data from controller to the custom table in magento 2.4. Please can any ...
0
votes
0
answers
47
views
how to make custom tier price in add product feature of magneto 2
I want to make a tier price programmatically for quantity-based shipping prices
like the screenshot below, can anybody help me in developing this feature
0
votes
1
answer
376
views
How to add Custom class or ID on Magenot 2 Product Admin Grid Columns
How to add the custom class or ID on Magento 2 Product Admin Grid Columns basically I want to add a class or id on ( qty, price, name, SKU ) on these fields.
Any help is appreciated.
0
votes
1
answer
81
views
create custom module, get existing module configuration
I would like to create a custom module, I want to get used to the vendor/magento/module-ups/ module, and use the same config in my custom module, such as userID, password, access key.
how can I ...
0
votes
1
answer
341
views
Use Default Value checkbox and label is showing for All Store Views also in Product Form(Product Edit) Admin Panel
Here I am working on to display newly added Description field on Product Edit form under content Tab and default one has hided using css.
An issue is in below code that Use Default Value checkbox and ...
0
votes
2
answers
109
views
Why is this code slow
We have a custom module to show images from sw3 on the product page, so the main image and any gallery images. The code works but going from a list page to the PDP is very slow and when I disable this ...
0
votes
1
answer
664
views
Sorting custom column in ui component
I've created a custom column in the report using UI components that use DataProvider in report_listing.xml
Unfortunately, this new custom column is not able to sort.
I made also a class for this ...
0
votes
0
answers
153
views
Create custom form in magento 2.3
i would like to have a custom form which is open as a pop up on click of button. The details entered in this form should be save in database and visible in admin panel. How can i do this? Is there any ...