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
12 views

Need to show the value of the product in the value attribute of input element but it is not giving any value. Where is this get product function?

<?php $_product = $block->getProduct(); ?> <?php $buttonTitle = __('Add to Cart'); ?> <?php $buttonTitl = __('Get Quote'); ?> <?php if ($_product->isSaleable()) :?> <...
0
votes
0answers
13 views

/var/www/demo/app/code/Eaglerocket/Customquote/view/frontend/templates/index.phtml How can I see its view?

I have created a pop up modal, how can I see its content on the website to check whether the pop up is opening or not?
0
votes
1answer
18 views

Unable to edit integration

We recently cleaned up our Magento 2.4.2 store so we had no generic users. Since we did this we noticed one of our integrations shows as inactive and we are unable to Activate or edit the integration, ...
0
votes
0answers
18 views

On clicking on the add new post button in the custom module , its saying Invalid form key. Please refresh the page

I followed this module for creating the module now need to click on the add new post to add the data from the buttonhttps://www.mageplaza.com/magento-2-module-development/create-admin-grid-magento-2....
0
votes
1answer
34 views

Changes in the child custom theme are not visible in the front end

<referenceBlock name="footer_links"> <block class="Magento\Framework\View\Element\Html\Link\Current" name="about-us" before="search-term-popular-link&...
0
votes
1answer
13 views

URL key for specified store already exists while importing products through custom script

I have some of the products already added in magento admin. And now i am trying to create same name product with the use of script that time i am facing error "URL key for specified store already ...
0
votes
1answer
5 views

Magento 2: I Want To Make Custom Products Tab On Home Page

I trying to make custom dynamic tab on home page but when do that I get an error Uncaught ReferenceError: tab is not defined at HTMLButtonElement.onclick ((index):1200) Here is my code I don't know ...
0
votes
1answer
9 views

Override product bundle select.phtml file in Magento 2

I'm trying to override the select.phtml used on the bundle product view page I've put it here: app/design/frontend/[vendor]/[theme]/Magento_Bundle/templates/catalog/product/view/type/bundle/option/...
0
votes
0answers
23 views

Translate “custom option” in mini-cart for multistore

I have managed to successfully translate the custom options in the article (see previous question here. But the next step is to reproduce these options also in the "mini-cart". The minicart ...
0
votes
2answers
29 views

Magento 2 Can i call two phtml file into one?

I have two phtml files, I want to use one for just the heading title and content. then the second phtml file I want to use it to call a table with a simple form submission. is this possible, if anyone ...
1
vote
0answers
10 views

Magento 2 custom routing frontend not working (100 router match iterations)

I have used this url to change it but i am keeping getting the same erros https://magento.stackexchange.com/a/209478/96152 i have a custom routes.xml <?xml version="1.0"?> <config ...
0
votes
0answers
10 views

Magento 2 can you call a custom widget inside a custom widget?

I have two module, which both have custom widget. I want to insert the widget to my second one. Whenever I call my second widget I get the following {{widget type="Magento\Catalog\Block\Product\...
0
votes
1answer
29 views

How to call a function from a custom module on checkout page in magento 2

Guys I'm learning how to create modules in magento 2, and I have a doubt, how do I call a function that is in my controller in magento 2 ?. In the controller I defined a function that does one thing, ...
0
votes
2answers
38 views

Currency conversion from 3 character code (USD) to their symbol as output ($) in magento 2?

Does magento 2 is having something inbuilt function for currency symbol getting ? What I want is - Input will be 3 characters currency code as USD, INR, JPY, EUR etc. corresponsing to that output ...
0
votes
0answers
22 views

I want to add qty filter same as price filter in layered Navigation in Magento 2

In this i want to develop functionality in which qty filter is added and in that range is displayed in layered navigation as price filter. qty range as below: 1 - 50, 50 - 100, 100 - 150, ... so can ...
0
votes
0answers
15 views

Magento2: Issue with getPublicName from custom module

I have custom module. app/code/Ced/Marketplace/view/frontend/templates/vendor.phtml Code: <?php $vendorData = $block->getVendorData(); if ($vendorData->getId()) {?> <...
0
votes
1answer
23 views

Magento 2 Change custom option name with mySql

I have this line which I can use to update the price of a custom product option. UPDATE `catalog_product_option_type_title` a JOIN `catalog_product_option_type_price` b ON a.option_type_id = b....
0
votes
0answers
13 views

magento 2 get folter attributes values in custom api

Hi i created custom API in magento 2 in that i need to implement advance search like store brand,model and year search like this i am able to get brand fileds ` public function getAddtocar($attribute)...
0
votes
0answers
7 views

Magento 1.9 How to add custom button to sales_invoice/view in admin?

I want to add a custom button on the invoice view page in admin. anyone has any idea please share here.
-1
votes
1answer
34 views

Added custom customer attribute with patch script but it gives an error

I added a custom attribute to my customer with a data patch script. The attribute is added in the database tables but when I try to register a new customer I get this error: main.CRITICAL: Exception ...
-1
votes
1answer
48 views

Adding custom customer attribute with declarative schema and db_schema

I added a custom attribute in de customer_entity table with db_schema.xml. I can get the value of that attribute with getdata('debtor_id') but I can't set it with setData('debtor_id' ,2). Did I miss a ...
0
votes
1answer
22 views

Theme Luma issues

For my online store I want use Luma theme and in priciple all good, but I need modify little structure, I need below menu add custom links list (which will be displayed on all pages) - I have .phtm ...
0
votes
0answers
16 views

Custom Model to load from Redis Cache

I want to create a custom module, it will have one model called Product and I want to load product details from Redis cache. So how to configure a model which will get loaded up from redis.
1
vote
1answer
66 views

Magento 2: Data printed in Controller but display null in observer

Controller file $collection = $this->investmentFactory->create()->load($id); $collection->getData(); // echo '<pre/>'; // print_r($collection->getData()); ...
0
votes
1answer
25 views

How can we add/register our own custom view mode in addition to default grid and list mode?

I am new to magento and using 2.4.2. I have some prior experience in working with TYPO3 CMS. Ok. Now I want to add custom table mode to the defaults (Stores -> Catalog -> Storefront -> List ...
0
votes
3answers
64 views

Header and Footer in Luma theme

I want some customization theme luma in my magento 2 website, so I need add in header for all pages banner - custom blocki created - (banner-section) below menu and in footer I need add custom block (...
0
votes
1answer
44 views

How to create a custom router with url key

I'm looking to create a custom router so that if I go to www.mysite.com/promotions/cruise-trip it would route to www.mysite/offers/promotions/index/id/5 for example. I'm not really sure how to do this ...
0
votes
0answers
5 views

Mage 1.9 : Display loading message while custom function is processing

I have a custom module that, before renders any layout, does different requests to external APIs, stores data in db, then, when done, redirect to another controller method. The process can take time ...
0
votes
0answers
12 views

In Navigation top menu sort default and custom added links

Kindly read it out carefully because for me it is somehow confusing. 1- I have default links in navigation like (What's New, Women, Collection). I have sorted them by adding category attributes (sort ...
0
votes
0answers
74 views

Magento 2 online refund for custom payment method

I am developing a Magento 2 custom payment module for one of my clients, yet I am now totally blocked in finding a way to process an online refund for any of the created orders. I can't locate the ...
0
votes
0answers
34 views

Magento 2 / ShipHawk multiple warehouses

I need to extend the ShipHawk Magento 2 module so that order line items can be shipped from multiple locations. We are using Magento MSI and I have the functionality built to send the stock inventory ...
0
votes
0answers
13 views

How to create a custom product attribute where i can upload as many PDFs as needed, and upload the thing as a whole?

I need to complete a task which i have been struggling with since last week. If i "Go to Seller Store" and then into editing a product (both a new product or one that is already uploaded), ...
0
votes
1answer
86 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
21 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
12 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
9 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
36 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
48 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
22 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
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
11 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
27 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
46 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
41 views

Magento 2 how to create custom Field in checkout page

How to create custom field on checkout Page in magento2?
0
votes
0answers
29 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
17 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
12 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
7 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!

1
2 3 4 5
23