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.

0
votes
0answers
18 views

Custom css for adminhtml

I want to customize css for magento admin order create form.Can anyone help with the steps to apply my custom CSS.
13
votes
0answers
441 views

Create new Magento Rest API to get category list in Magento 1.9

I am very confused about what kind of error I am doing to follow these steps provided here at the following link : Create new Magento Rest API to get category list in Magento After doing all ...
1
vote
1answer
31 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
26 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
2answers
1k views

Magento 2: RuntimeException it is being used by another process

When I do clear cache using command line & refresh page on Frontend 1st time it gives below exception. 1 exception(s): Exception #0 (RuntimeException): The path "D:/wamp/www/magento2/var/...
2
votes
1answer
108 views

Magento 2 admin end drop down dependencies?

In Magento 2 at admin end from my custom module I have two options 1) Level and 2) Segment in the drop down. As well I have another multiselect dropdowns like Levels and segments Now if i choose ...
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 ...
2
votes
1answer
51 views

How do I extend css with theme that doesn't call extend?

sorry if this is obvious or has been answered. I tried looking around and didn't see it. Also I'm getting around Magento okay but by no means an expert. I have a Magento 2 theme that it was ...
0
votes
2answers
143 views

magento 2 - custom router throws Front controller reached 100 router match iterations error

I am trying to build a module that has a custom front-end router on magento 2.1.12. I am following magento doc & I am using the inchoo custom router example. The problem is the route (MY-SITE/...
0
votes
2answers
1k views

Magento 2: How to get full Currency Switcher

I want to get the full URL to switch currency to use it as a link, Currency switcher use the widget to change the currency, I don't want to use the widget. For Example: This is how works now: <a ...
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

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.
3
votes
1answer
3k views

Modify checkout step navigation magento 2

I'm customizing the checkout process in magento 2 by adding a custom step between Shipping and Payment steps and by adding a checkbox in Shipping step. The problem When going to checkout page for ...
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
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\...
11
votes
0answers
343 views

How to override a static method in Magento2

Plugin Interceptors and overriding with preference does not work on static methods. Need to override getOptionArray method in Magento\Catalog\Model\Product\Visibility to return a custom visibility ...
6
votes
1answer
13k views

how to create custom layout page in custom theme

I want to create a custom page layout in my custom theme. I have created a custom theme named "ktheme" with a parent theme. I created cutome_home.xml in the layout folder but I am just getting a blank ...
1
vote
1answer
1k views

Checkout page phone number validation

I am trying to give US format phone number validation in onepage checkout page This is the layout checkout_index_index.xml that i created in my custom module. I know how to make i work by editing the ...
3
votes
2answers
2k views

Magento 2 child theme: CSS files not included

I want to add some CSS files. So I created a child theme. In Backend the theme is activated. theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
4
votes
2answers
3k views

Magento 2 custom module not loading and it throws error

I am using windows 7. app\etc\config.php <?php return array ( 'modules' => array ( 'Test_Module1' => 1, ), ); ?> When I add My Test_Module1 in app\etc\config.php admin all ...
11
votes
4answers
4k views

Magento 2 - Render custom product collection via list.phtml

The product grid of a category page (frontend) is rendered via layout in catalog_category_view.xml. Lets say I have a custom product collection (which I got via ProductRepositoryInterface::...
0
votes
2answers
581 views

Uncaught TypeError: $el.ColorPicker is not a function Magento 2

Magento ver. 2.0.18 I created a custom module in backend there is color picker options. for this i used this link color picker answer of @EmizenTech it works perfectly but some time it gives and if ...
0
votes
2answers
1k views

Add to Cart Resulting in: Cannot add the item to shopping cart

I have this observer listening: sales_quote_product_add_after Inside the observer I run this code to change the price of the item when added to the cart. $item = $items[0]; $request = Mage::...
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"> <...
4
votes
1answer
870 views

Magento 2: Advanced Custom Fields for CMS Pages

As in Wordpress, we have https://www.advancedcustomfields.com/. So in Magento 2 we have http://www.advancedcontentmanager.com/download-acm-extension-m2.html It helps Customer/Client to Manage their ...
4
votes
1answer
1k views

Grunt watch doesn't watch _theme.less and custom less file

That's my css/source file structure: https://i.stack.imgur.com/5tNxJ.png I made grunt clean, theme exec, theme less, watch. Watch is responsive to any less file changes accept of _theme.less and ...
2
votes
2answers
1k views

How to add Details field for Custom option in magento admin?

For the custom options of simple prodcusts i have to add one text field for value of color. How to add it.
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.
0
votes
2answers
852 views

Adding css to a module in Magento 2

I am trying to add custom CSS without creating a theme and these are my steps. Step 1 I create a mycss.css file body{ background-color:green; } and this is the path app/code/vendor/module/...
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
4answers
1k views

Magento 2: add js file, but I can't find my file in static folder

I add js file in my module using the requirejs, but the requirejs can't load the file and i get this error: require.js:1895 GET (my_ip)/magento2/pub/static/frontend/Magento/SaturTheme/it_IT/...
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
18 views

Mail from a custom Module after saving data

I am writing a new module (quote request, when user go to the product details page, they can request a quote for the product) I created a form to display in the product details page. When user submit ...
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
31 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
104 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 ...
2
votes
1answer
288 views

Category-Listing on Custom Page

I want to show the category-listing on a custom module-page. For example: [url]/brandstore/index/listing/brand/1/category/10 I tried to copy the content of the catalog_category_view.xml to my custom ...
0
votes
2answers
2k views

Magento Product custom attribute options not showing up in admin

In my Magento ce 1.9.2.1 website, I have created many product custom attributes by setup-upgrade scripts like below: <?php $installer = new Mage_Eav_Model_Entity_Setup('core_setup'); $installer-&...
0
votes
1answer
569 views

Magento 2: How to define Scope For Router.php

I have created Custom Module. As it requires some front-end routing, have to create Router.php Whenever I'm accessing Magento eCommece Frontend other pages, say Category/Product Page. It will call my ...
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 ...
1
vote
1answer
624 views

Magento 2 product image custom resize

I have created custom attribute for featured product and fetched the product collection using object manager. <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ...
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/...
2
votes
1answer
1k views

Dynamically updating the sku on the product page of a configurable product based on selected options

I've successfully got the attributes to update dynamically for the SKU on the product page based on the simple product selected (through help found on the web). I'm now trying to apply this logic to ...
1
vote
1answer
3k views

How to create CUSTOM extension in magento 2.1.6? [duplicate]

I was confusing among extensions and modules. Can anyone guide me about it and i am looking for good tutorial for creating extensions in magento 2.1.6. ?
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?
1
vote
1answer
1k views

Include Toolbar Pager in custom product collection in custom page

I have a custom page where I am listing the custom product collection. I am using the default catalog/product/list.phtml as template to display the page. It's listing fine like the category page. But ...
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 ...