Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
vote
1answer
28 views

Porto - include Mageplaza LayeredNavigation in js file

I'm making a custom theme based on porto. I'd like to include the Mageplaza_LayeredNavigation/js/view/layer in the toolbar.js file of the the Magento_Catalog module, in my custom theme. I tried ...
0
votes
1answer
23 views

How to enable Error Messages $this->_messageManager->addError(__('Error')); in Custom Checkout Module Magento 2?

app\design\frontend\Vendor\theme\Magento_Theme\templates\messages.phtml <div data-bind="scope: 'messages'"> <div data-bind="foreach: { data: cookieMessages, as: 'message' }" class="...
0
votes
0answers
9 views

Repeated rows value in csv

i have created custom php script to get order csv. i am getting order detail with item which is coming fine now but if i have 2 item in 1 order id its create 2 rows with repated detail in remaing ...
1
vote
0answers
19 views

How to add a custom label in shipping address form in Magento2.2.5?

I want to add a only a label - just for informing a user in shipping address form in Magento2.2.5? Any help would be appreciated.
0
votes
1answer
38 views

How use Pagination in Custom Product Page

I display custom products in page. use controller ,block and .phtml files define block and template in xml file. Products are showing correctly i use template module/catalog/view/frontend/template\...
1
vote
2answers
31 views

Unable to override Magento\Catalog\Model\Product\Url, Type Error occurred when creating object

I'm trying to override the Magento\Catalog\Model\Product\Url class so that I can modify the getURL() function, but I'm getting the following error: Error filtering template: Type Error occurred when ...
1
vote
0answers
19 views

Magento2.3 SetTemplate is not working first time ajax

I would like to add additional some field info in sales_order_create_index.xml I used setTemplate: <referenceBlock name="data"> <action method="setTemplate"> <...
0
votes
1answer
15 views

Magneto 2: How to remove duplicate sku with images in each rows of CSV

I am using magento2x. I need to create custom script for removing duplicate sku's with images with multiple entries of sku's in each rows of csv.if anyone know reply me.
3
votes
1answer
28 views

How can i add a custom javascript module to custom module?

Hi this code is working perfect without magento. <script src="flipbook.js"></script> <script src="jquery.js"></script> <script> $('#side').FlipBook({ pdf: '...
0
votes
0answers
8 views

How to expose custom field from sales_order_address table to rest api magento 2

I am able to add a custom field called "subdistrict" to Checkout address of Magento 2. Data is stored nicely in table sales_order_address table now i want to expose this field throught rest API, can ...
0
votes
0answers
14 views

Can't get a column by POST

I've create a module, but i don't know why i can't get the field "qty". Follows code of the grid: protected function _prepareCollection() { $collection = Mage::getModel('catalog/...
0
votes
0answers
22 views

How to get custom tab input value in the product edit page in Magento 2?

I have created custom tab input type but I don't have an idea how to get their value and save value with product. <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
20 views

Update Store Summary By Checkout Address Country Change

So Basically I want to update my checkout cart summary when user select country from shipping address ,cart price and currency change according to the country he selected in shipping address.
0
votes
0answers
30 views

Magento 2 : Create and Handle Many to Many Relationship Between Two Table

I have two custom table that is related by many to many relationships. So how to create these two tables: is there a specific syntax? and how to handle this type of relation thanks in advance
1
vote
2answers
98 views

Magento 2 import bulk products with custom attribute

I have created 1 custom attribute (current_user_id) and saving value when product is saved. I have usecatalog_product_save_before event that save value for my custom attribute(current_user_id). code ...
0
votes
1answer
44 views

Magento 2 Session getting reset after placing order

Can anyone help me with this? I want some information from the session after order is placed. I tried customer session and even my own new session but after placing order am bot getting anything in ...
0
votes
0answers
14 views

configurable product: display custom attribute value when all options are selected

in configurable products I need to display the value of a custom attribute when all select fields are filled. It seems that only images and price are updated (js). In my case I need to display ...
0
votes
2answers
23 views

Integrate js with button on uiComponent xml

I have the following custom form in my admin html and I have tried to insert a javascript function on my custom button click but the page being in a infinity loading loop. view/adminhtml/...
1
vote
2answers
43 views

How to modify the custom module URL?

I have created custom module i.e /stores/index/display. But I want to modify the /stores, How can I do that?
0
votes
0answers
13 views

How to Add Wishlist Custom Attribute in Magento1?

I want to add customer attribute in magento wishlist in order to save additional field in wishlist table.
0
votes
0answers
15 views

i want to add gift box message(text field) on product page magento 1

I want to add custom gift box message(text field) on the product page so please suggest how we can do this? And this field is shown on the checkout page with a particular product and it is also ...
0
votes
1answer
16 views

How array set in email.html file

i make custom mail template. my template variables are $TemplateParameter=[ 'customerName'=>$getOrderParams['customerName'], 'orderItems'=>$getOrderParams['productinfo'] ...
0
votes
0answers
20 views

I want to Add product chooser in my custom admin module

I want to Add product chooser in my custom admin module. How can I add it?
1
vote
1answer
52 views

Magento 2 Custom extension admin grid returning blank

I have a custom module on my Magento 2 installation. The problem is when I access the admin grid, it's returning a blank page, just with the title of the page, like the following picture. I already ...
0
votes
0answers
18 views

Menu Items Showing up Behind Remove Item dropdown Magento 2.2

Getting this issue with our magento e-commerce site, The remove item popup is showin below the menu, as you can see in the picture below the menu text appears over the dropdow menu, and are ...
0
votes
0answers
23 views

Magento 2 - Custom Registration Form For A Specific Customer Group

I am trying to build a custom registration form that can be shown on the CMS page. Any guest user can register through this form. Customers whoever register through this form will fall under a ...
1
vote
1answer
26 views

Magento 2 : Not set custom attributes value when create product programmatically

When I create product programmatically I want to set custom attributes value. try to below code but it displays Uncaught Error: Call to a member function setCustomAttribute() $objectManager = \...
0
votes
1answer
42 views

How to create custom table programmatically(using code) without using installschema.php magento 2?

Actually I have created a custom grid in back-end for creating custom table there I am providing some fields like- table name, Assigned to Module Name, Number of Input text boxes. Now I want to ...
2
votes
1answer
44 views

Magento 2.3.0 add custom JS in theme, using require js

I want to add a custom js - pricing.js in my theme folder using require js I call the script in defaultheadBlock.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
1answer
86 views

How to save the data for customer custom attribute in magento 2

I created a custom customer attribute using an install script. $customerSetup -> addAttribute(\Magento\Customer\Model\Customer::ENTITY, 'is_mpowersync', [ 'label' => 'Is ...
1
vote
1answer
24 views

How to create readable subfolder in Magento root

So, I am working with Magento 1.9 and I want to create a new subfolder in the Magento root in order to put my scripts. The matter is, in localhost everything is working fine. I can browse /scripts ...
1
vote
0answers
21 views

How to add style(css,js) to custom widget

Hi i can try to add style to widget in the usual way. like here https://webkul.com/blog/magento2-how-to-add-css-and-js-file-in-module/ its not working. How can i add to css file to widget?
0
votes
0answers
20 views

How do I capture custom measurments for products?

I have products(dresses) which dont have any sizes defined. I want users to enter their measurments and buy product. I want a form underneath every product which need to be filled, it captures various ...
0
votes
1answer
34 views

How to get Attribute in phtml file

I would like to add a new product attribute to the file Magento_Catalog/templates/product/price/amount/default.phtml And Magento_Tax/templates/pricing/adjustment.phtml As an additional data ...
1
vote
0answers
20 views

How to add dynamic row in custom module magento 2 [duplicate]

I have created the adding dynamic row entity in config module, here is the snap shot for same, Now i want the same functionality while i am adding or editing the form through admin grid . Please ...
0
votes
1answer
41 views

Magento2 Enterprise: Can we add Special Price From Date and Special Price To Date in Enterprise Edition

i want to add Special Price From Date and Special Price To Date in Enterprise Edition.By default this feature is not available in E.E but available in C.E
2
votes
2answers
61 views

How to set the category ids to a products from category path?

I want to progrmmatically create products from a xml. Ex : I am getting the product categories as like below. Default Category/Beer , Default Category/Beer /CRAFT, Default Category/Beer /CRAFT/...
1
vote
0answers
15 views

How to add category Path when creating product progrmatically in magento 2

I want to create products programatically by reading an xml file. Reading from xml, and creating product part is completed. I have no idea how to assign the products to category. This is my xml node ...
0
votes
0answers
21 views

how to hide international shipping options in checkout

In my Magento store, there are multiple shipping options, some are for international shipping and some are for domestic. I am trying to hide the international options if the country is UK and visa ...
1
vote
1answer
20 views

Magento 2.2.5 - Add wishlist to custom new page

We have a separate new page for listing the products, there we need a "Wishlist" option as like as in product catalog page. Can anyone share the exact idea to implement it?.
1
vote
1answer
33 views

Magento2: How to get simple products Assosiate to configurable products [duplicate]

I want to get simple products Associate to configurable products in custom module using factory method. (not using object manager)
1
vote
0answers
31 views

Issue in pragmatically create orders in magento 2

I want to create orders pragmatically by getting the data from xml. Reading data from xml part is done. when creating order steps i am getting this error. Parse error: syntax error, unexpected '$...
3
votes
1answer
40 views

How to add sales order table custom value to magento 2 report from a custom module

I created a custom module to check the ad code (measure the marketing traffic) value from the url and add to the order. I added a column to the sales order table and save the ad value when user place ...
3
votes
0answers
37 views

How to custom id input on field in form ui component Magento 2?

How to custom id input on field in form ui component Magento 2? Here's my code: <input class="admin__control-text" type="text" data-bind=" event: {change: userChanges}, value: value, ...
1
vote
1answer
37 views

How to add custom information on product Grid/List view page?

I want to add a description on product Grid/List view page as the picture shows (The "Order Online" and "Delivery Available" part). Is there any way I can achieve this? Or any extension can help me ...
1
vote
0answers
115 views

Magento 2 : Custom field data is not saving in product add edit

Custom Field is showing in Product add/edit but data not saving. Here is my full code Vend\Customattrib\etc\adminhtml\di.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="...
0
votes
0answers
45 views

Magento 2.3 Return Custom Shipping Methods

Magento 2.3 I have an external REST API that will return a list of shipping methods based on zip code, how should I set up my custom module return the results in a list of shipping methods to pick ...
2
votes
1answer
60 views

Magento 2 product page include custom phtml file before reviews section

Can anyone help me how to include custom phtml file before reviews section in magento2 please find the screenshot below: When i click on the button it is going to add to cart. Thanks
2
votes
0answers
47 views

I am creating a custom widget “SPONSORED BEST SELLER PRODUCTS” block to show on home page. Bestseller.phtml file not rendering in the front end

This is my registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Relabs_LabAPI', __DIR__ ); This ...
3
votes
1answer
27 views

Create an Attribute Set and create a Product Attribute in Product Details Group for only One Attribute Set

I asked a question here about this just over a week ago, but it took a little while to edit the post to include some code. The original post and code can be seen here I am able to create an ...