Questions tagged [custom]

Denotes questions about Custom code or Custom modules which is used to add/extend/enhance the existing functionality of Core Magento.

350 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
14
votes
0answers
464 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 ...
13
votes
4answers
5k 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::...
6
votes
0answers
914 views

Magento 2: Get Order Information Outside Magento Issue for Date

I have below script, trying to get all Orders. I have issue with Date. That i have solved using https://github.com/magento/magento2/issues/7560 //place this before any script you want to calculate ...
6
votes
0answers
927 views

Magento 2: How to Show Discount Coupon Applied Code Product wise?

In Shopping Cart, I have 2 products. When I am applying the Promo Code it's going to apply on only 1 product as per the Shopping Cart/Promotion Rules. I would like to show discount code on basis of ...
6
votes
0answers
694 views

How to add dynamic custom column in UI component

I have configured UI component columns in admin grid and its working fine. I need to add custom columns dynamically. For example we can add custom column in __prepareColumns function in Block layout ...
5
votes
1answer
391 views

Magento 2 :- How can i add tab in customer group?

I tried to create new tabs as per the customer tab, add in admin side, but I am getting the error so can any one help me. How can i do this thing? I refer this link for that 1) http://www.dckap.com/...
5
votes
0answers
360 views

Case / Package Products in Magento 2

I have this requirement: A product should have each individual price and case / package price. For each product, N items make a case. For example: In product, A 20 items makes a case. In product B 5 ...
4
votes
1answer
56 views

Magento 2 How to upload csv in admin and update data in custom admin-grid/table?

I am trying to upload csv that I have exported from existing admin grid. Adding additional data as perticular columnwise in same csv. Howcan I upload/import that new .csv in admin and update data in ...
4
votes
1answer
838 views

How set order with custom field column magento 2

I want to setOrder with custom field column in get list product. I override toolbar.php but it's not working di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
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 ...
4
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 ...
4
votes
1answer
950 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
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 ...
3
votes
0answers
47 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, ...
3
votes
0answers
315 views

Display custom drop down in registration page using Magento2.1

I tried this code but it's not working app\code\Customer\Attribute\Setup\Installdata.php $customerSetup->addAttribute(Customer::ENTITY, 'customer_type', [ 'type' => '...
3
votes
0answers
66 views

Check if block is called in phtml file

Is it possible to check in default.phtml file (app\design\frontend\MyNAMESpace\MY_THEME\Magento_Catalog\templates\product\price\amount\default.phtml) that catalog.product.related (block ) is loaded or ...
3
votes
0answers
136 views

How to save/select a custom phml form in DB on Magento 2

I have created a custom module, and i have this phtml: <div class="container-club"> <h2>test<h2> <div class="club-img"> </div> <div class="club-...
3
votes
0answers
249 views

Bundle Price depending on items in bundle

This is a complex question about determining bundle prices. I have already hired a developer who cannot figure out how to make this work, and have spent days looking at extensions, so am reaching out ...
3
votes
1answer
768 views

sorting not working magento 2

I created a custom column "product_name" in sales/order grid, When I am sorting this column grid showing error: Item (Magento\Framework\View\Element\UiComponent\DataProvider\Document) with ...
3
votes
0answers
1k views

Magento 2: Fatal error: Uncaught Error: Call to a member function getId()

After adding custom module on Server. It's giving below error Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/magento/vendor/magento/module-backend/Block/...
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="...
3
votes
1answer
535 views

Adding custom fields on checkout and save to database on magento 2.1

I have added custom fields on checkout page. The fields are displayed properly. But I want to save the custom fields to database too. I found some guide to do that but no luck. Can anybody have ...
2
votes
0answers
17 views

Production mode doesnt load any content for custom module

I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is ...
2
votes
0answers
19 views

Add Product Selection to Admin Form

I have developed a module for Magento 2 for Promotions. I have a form for this which is working and contains basic information: Title Description Price Start Date End Date I now need to add "...
2
votes
0answers
20 views

Magento2.3.0 How to do in left side navigation custom category tree structure create it?

I am using Magento2.3.0 I need in left side layer navigation instead replace category section there our custom category tree display on it and its work as on fronted side only.If any one this type ...
2
votes
1answer
27 views

Blank Magento Page without error

After enabling the module created, browsing back to the page gives me blank page instead. Viewing the source of the page gives me basic html tags.
2
votes
2answers
155 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/...
2
votes
0answers
61 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 ...
2
votes
0answers
59 views

Newsletter subscriber custom EDIT route Magento 2.3

I am having custom edit route for core module Magento_Newsletter Subscriber. When I access Edit route loader keeps spinning and doesn't stop. In nginx log I got: 2019/02/11 14:55:33 [error] 15820#...
2
votes
2answers
286 views

M2 - Create own CMS page template

I want to create my own custom template to choose from a CMS page in Magento 2. I've already done the following: Created bktext.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento, ...
2
votes
0answers
31 views

Custom plugin files updated code is not showing in admin panel though cache is cleared

I have created a custom module. Controller files are working fine. I am trying to update my module MySQL version and adding new fields to the module in block folder files but they are not applying in ...
2
votes
1answer
318 views

Magento 2 - Custom module file upload configuration and save in custom module table

File upload in Magento 2 store configuration <section id="custom_section" translate="label" type="text" sortOrder="301" showInDefault="1" showInWebsite="1" showInStore="0"> <label>...
2
votes
0answers
90 views

M2 Add fields to custom payment method [ship to multiple address]

I have created a custom payment method, which is working fine, but when i select ship to different address, than payment method was not appearing. I added "allow_multiple_address" to 1. Now payment ...
2
votes
1answer
71 views

How to get configurable option on custom module

I want to display all configurable options same as details page in my custom module. It should work like product details page(like below image) . any one have any idea ?
2
votes
0answers
39 views

Not able to access custom input in collect method of AbstractTotal on clicking next first time but i can access it on second time

I am learning magento , so I am trying to create a custom vat module that will allow users to validate vat and on success vat validation tax will be 0. I have added field on frontend checkout step to ...
2
votes
0answers
30 views

Modification to core files

A developer modified some of our core magento files... not sure I trust the code... Our profiler is saying "mage::dispatch::routers_match" and "mage::dispatch::controller::action::predispatch" are ...
2
votes
0answers
59 views

The magento custom sorting functionality is not working

I am creating a Magento module to add a sorting option of a bestseller on the category page. For doing so I have to override few classes in the core. In the beginning, I have created config.xml file. ...
2
votes
2answers
64 views

Live Server Custom page block not appearing

I know this question already asked, but still i can't solve my problem. I have creating front-end & back-end custom pages. The code working in local server. But same code not working in Live ...
2
votes
1answer
332 views

Move uploaded images to a folder using custom module

I am trying to move the uploaded image to a folder by a custom module. In /var/www/html/magento16f/app/code/local/Custommodule/ReviewRating/controllers/IndexController.php public function ...
2
votes
1answer
124 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 ...
2
votes
0answers
375 views

How to change custom order status through rest api in magento2

Can any one explain me or give me an example for changing the magento2 order status to customized status using rest API
2
votes
0answers
70 views

How to create Declaration page in admin control panel

Am using magento 1.9 in sales>order am creating a custom url for Declaration, following image will explain you Here am creating a link for Silver Exchange Declaration. This url like this http://...
2
votes
0answers
160 views

magento 2 custom option price don't want to show?

Magento 2 don't want to show the custom option price in the cart page, customer dashboard and admin end. Please suggest me thanks
2
votes
0answers
169 views

Magento Order Export with custom attribute Magento 1.9.2

Currently the order export dump only provides Order # Purchased On Bill to Name Ship to Name G.T. (Base) G.T. (Purchased) Status We need to add to this, Invoice Number, SKU, HSN ...
2
votes
1answer
856 views

How to call a custom template phtml file on home page magento 1.9

How to call blog_slide.phtml on home page or in static block. {{block type="core/template" template="magentothem_blog/blog_slide.phtml"}} i tried this but nothing happens. <?php $enabled_slide = ...
2
votes
1answer
194 views

Magento 2 custom SOAP Api returns error

I am trying to create new custom SOAP API but it returns following error "SoapClient::SoapClient(): $wsdl must be string or null" etc/webapi.xml : <?xml version="1.0" ?> <routes xmlns:xsi="...
2
votes
0answers
98 views

Unable to Create Roles by Roles Resources “Custom” option type in Magento 2

We are Unable to access Roles Resources "Custom" option type in Magento 2 to add the custom roles. When we select Custom option type, nothing is getting displayed. And also no issue is getting logged ...
2
votes
0answers
207 views

add custom text field as configurable attribute for Magento 1.9.x

We are preparing a tourism agency website and we have packages to sell online. These packages are inclusive of transfers, tours and hotel stays (eg. 3* - 4* - 5*), accomodation types (eg. sngl - dbl - ...
2
votes
0answers
2k views

Magento 2: Duplicate key-sequence unique identity-constraint 'uniqueVirtualType' fatal error while di:compile

When i run php bin/magento setup:di:compile it gives me below error [Magento\Framework\Exception\LocalizedException] Invalid Document Element 'virtualType': Duplicate key-sequence ['Custom\...
2
votes
1answer
920 views

Magento 2: How to define scope in di.xml & Router.php

I'm using Magento 2 CE Version 2.1.0. app\code\Custom\Module\etc\frontend\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...