Questions tagged [frontend]

Denotes questions related to frontend development, configuration and management

Filter by
Sorted by
Tagged with
0 votes
1 answer
256 views

Overriding _getHtml function in topmenu.php makes navbar disappear

I'm trying to override the __getHtml function in topmenu.php class Topmenu extends \Magento\Theme\Block\Html\Topmenu { protected function _getHtml( \Magento\Framework\Data\Tree\Node $...
hardy123480's user avatar
0 votes
0 answers
43 views

Not able to extend Luma theme

I needed to add an attribute brand to Luma theme. For this, I will have to create a new theme. I created one by extending Luma theme. I followed all the steps to extend Luma theme as described here ...
Sujatha Upadhyaya's user avatar
1 vote
2 answers
855 views

Magento 2.3.5 admin panel showing blank page

After successful installation when you open admin url, Admin panel showing black and also frontend links not working.
Swapan's user avatar
  • 109
0 votes
2 answers
704 views

In Jquery, How to capture the data within <span>product_price</span> in the event of a change in the product price?

Below is the code written to capture the updated price from within <span class="price">Price</span> as the price changes on one choosing a variant of a product from the drop-down. I find ...
CodeForGood's user avatar
0 votes
1 answer
27 views

Magento 2.3.4: Why doesn't Magento admin configuration take any effect on the `fax` field?

The option for fax under Store->Configuration->Customer->Customer Configuration->Name and Address options was set to NO right from the beginning of the installation of Magento 2. It is ...
CodeForGood's user avatar
0 votes
1 answer
94 views

Magento 2.3: Checkout page displays only `loading image` after checkout_index_index.xml was overridden in the custom theme

The checkout page now display loading image forever after I have overridden the checkout_index_index.xml in the custom theme to remove faxfield from the checkout page. Below is the screenshot showing ...
CodeForGood's user avatar
0 votes
1 answer
191 views

Uncaught SyntaxError: Unexpected token '{'

Everything looks fine with this small piece of code as shown in the screenshot. Yet, I am getting the syntax error around {. Please tell me what might be causing it?
CodeForGood's user avatar
0 votes
0 answers
254 views

Magento2: How to output the contents of an entire JS file into a phtml file?

I defined a function in a block class as below to return the contents of an entire custom JS file, the path of which is stored in $absolute_custom_js_file_path . What is the right PHP function to be ...
CodeForGood's user avatar
0 votes
1 answer
203 views

Magento 2: How to insert a custom JS file in the header of custom theme. This custom JS file is placed in pub/media/pmm-custom directory?

I'm looking for a way to add a custom js file in the header.phtml file. I don't place custom JS file under theme_directory for a obvious reason. Could anyone please tell me how to override header ...
CodeForGood's user avatar
1 vote
1 answer
36 views

Magento 2: Why do I see an extra IMG tag beside the actual IMG intended for logo on the home screen?

as seen in the image below, my Magento site displays an IMG tag before the IMG tag meant for displaying logo on the homepage. Please tell me how to eliminate the first unwanted IMG tag logo-white.svg. ...
CodeForGood's user avatar
0 votes
1 answer
176 views

How to add <h2> tag to the product tabs in Prodcut detail page in magento 2

I have 4 custom tabs on the product detail page. How to add the tag to the tab heading. catalog_product_view.xml <block class="Magento\Catalog\Block\Product\View" name="magneticBallastTable.tab"...
Jaisa's user avatar
  • 2,512
0 votes
1 answer
160 views

How to set color to a Smarty variable?

I got a piece of code as seen in the image below in a Smarty template outputting the payment method. Please help me a find a way to set color "red" only to the value of "{$search_results_list[...
CodeForGood's user avatar
0 votes
1 answer
72 views

How to load an external file to load and execute our custom JS files on the Magento site?

seeking some advises. My Magento-2 project has 2 custom JS files that I would like replicated and loaded externally on the site. This arrangement is for our client to use them to add his own code ...
CodeForGood's user avatar
0 votes
1 answer
137 views

How to trace a JS function appeared out of nowhere in one of the Magento 2 category page?

one of the category page of our Magento site throws an JS error Uncaught ReferenceError: j$ is not defined. Upon investigating, this was found present with <script> j$('h1').hide(); </...
CodeForGood's user avatar
1 vote
0 answers
73 views

Magento 2: Add 2 JS files in that depend on each other in checkout page

I tried to add 2 js files in checkout page using require-config.js from a custom extension like this: app/code/Vendor/Module/view/frontend/requirejs-config.js var config = { "map": { "*":...
jojo's user avatar
  • 119
4 votes
1 answer
1k views

How to add extra pricing data in product_data_storage?

I have added extra price in Advance pricing in Admin. Everything is working well expect the data for the Recently view products which comes from Local Storage > product_data_storage How to add that ...
Aditya Shah's user avatar
  • 7,554
0 votes
2 answers
919 views

Magento 2 - some products not showing in frontend - 404 site not found

I am editing the description of a certain product for hours now and saved alot during this time and it always worked and showed me the updated description in the frontend after reload, but now I ...
Black's user avatar
  • 3,003
0 votes
1 answer
569 views

Magento 2: Properly access an external js variable in the checkout

Pure HTML Example I'm trying to do something as simple as the following html code: <button onclick="MyExtVar.run();">Run</button> <script type="text/javascript"> window....
Raphael at Digital Pianism's user avatar
0 votes
1 answer
106 views

product image thumbnail didn`t work on direction:rtl

I used magento 2.3.2 ,when i used { direction:rtl; } on pub/static/frontend/Magento/luma/ar_SA/css/styles-l.css the product image thumbnail didn`t work any one can help me to make it work ?
dayman saeed's user avatar
0 votes
2 answers
310 views

How to add custom html class to "Sign Out" button in magento 2

How to add custom HTML class to "Sign Out" button in magento2
Jaisa's user avatar
  • 2,512
3 votes
3 answers
5k views

How to Change Product Images with external Image url in all magento 2 frontend and Backend Image display?

I want to change Product Images to external Image URL in Magento 2 Frontend. Product Listing Page. Product Details Page Gallery. Related Products. Upsell Products listing. Cross Sell Listing. All ...
RAKESH ROY's user avatar
0 votes
0 answers
54 views

Advanced JS bundling: Some dependencies already included under certain JS Bundle are loading separately

I am facing an issue with some dependencies that were already included in some bundle are loading separately as seen in the browser console. Could you please share yours insights into this? Please ...
CodeForGood's user avatar
0 votes
2 answers
63 views

Where could I learn to edit page in magento 2?

I'm new in magento 2 and I would like to learn how to edit for example any pages (front.end) in magento 2: Mysite.com/page1 Mysite.com/page2 ecc ecc I'm studing from the doc of magento 2 (front-end) ...
Luca's user avatar
  • 1
1 vote
1 answer
3k views

Magento 2 : Calling a JS function from another JS file?

This Accessing a JS function from another JS file solution not mapped on my problem ,Please give me direction that how can i call getPureValue: function () from tax.js into some where in minicart.js ...
Muhammad Abdullah's user avatar
2 votes
1 answer
641 views

How to get magento 2 default route name list ? (Without third party route)

I am creating custom module which redirect to login if third party module route id find.(frontend) but i have issue how to identify the current route is default or third party route ? how to check ...
Msquare's user avatar
  • 7,407
4 votes
3 answers
4k views

How to create a custom module for crud operations in the step by step in frontend of magento2.3.4?

I am new to magento2. How to implement this task I don't know. Could you please help me?
Dileep Kumar's user avatar
0 votes
1 answer
590 views

Add clear button in frontend calendar button panel

I am trying to add a clear button in the jquery datetimepicker widget using the below code. define([ 'jquery', 'ko', 'Magento_Ui/js/form/element/abstract' ], function ($, ko, ...
Zaheerabbas's user avatar
  • 2,058
0 votes
2 answers
56 views

Error with own module to show frontend views

My aim is to generate a few frontend views with an phtml for each view. I developed a module for that. File: Routes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
Ángel Carlos del Pozo Muela's user avatar
0 votes
0 answers
137 views

Orders Not Showing Under Customer's "My Orders" Tab

Some Customers are able to see their past orders under the "My Orders" Tab and some are not. I was able to narrow it down to just customers who have a custom attribute attached to their account but I ...
user12927991's user avatar
0 votes
2 answers
154 views

How to add Jquery code snippet in the HTML editor for footer_cms_content

When I place this code :- $(".social-icons").after('<span id="siteseal" style="style="cursor: hand;"></span>'); $.getScript("https://seal.godaddy.com/getSeal?sealID=...
CodeForGood's user avatar
0 votes
0 answers
181 views

Issue with Inline Translation

Can anyone help me with translation I have translated few words inline for example below is entry in database +--------+--------------------------------------+----------+------------------------------...
Hitesh Agrawal's user avatar
0 votes
2 answers
70 views

Magento 2 : How to custom contact form

I want to custom my contact form like this: It must send data for user submitted via email How can I do that? Any help? Thank in advance.
MichaelHa's user avatar
  • 661
3 votes
2 answers
1k views

Why is the loading of scripts via RequireJS incredibly slow when they are not cached?

First of all, this is not a question about general Magento 2 performance. I'm already aware of how to speed up Magento 2, in general. My question is specifically about RequireJS and the assets served ...
WackGet's user avatar
  • 1,178
0 votes
2 answers
377 views

How to remove logo from product swatch images in product detail page Magento 2

I am getting one issue on the product detail page. I have created the configurable product and added the color swatches with images. when I visit the product detail page of those products. I can see ...
Jdprasad V's user avatar
0 votes
1 answer
161 views

Shipping method are not showing on shipping page

Shipping method are not showing on shipping page Sorry, no quotes are available for this order at this time Thanks.
Himanshu's user avatar
  • 968
1 vote
1 answer
248 views

How to use .abs- (from abstract) from UI library LESS?

Magento Documentation for UI Library has said to use "Extend class names should have prefix .abs- (from abstract)" There is no other explanation for the usage in the documentation How should we use ...
Haerriz's user avatar
  • 671
0 votes
2 answers
626 views

Pages are not displaying on the front end properly

I don't know what my developers did but a site that was loading fine is now showing users basically I'm assuming how a bot sees it. Only shows menus at the text, no pictures unless you scroll so far ...
Shannen Tanabe Knight's user avatar
0 votes
3 answers
141 views

Custom javascript not running from module

I have a Magento module that currently provides a custom API route. I am wanting to update it to push some Javascript to the /customer/account page. I tried following the answer here but this didn't ...
James's user avatar
  • 117
0 votes
1 answer
75 views

Magento 2 Customer account custom tab not loading properly

I'm trying to add a custom tab to the Customer account page. I followed the Mageplaza guide here, however I'm having two issues. First the menu item is added properly, but it points to routename/...
MSquaredSTL's user avatar
0 votes
1 answer
307 views

How do I send Order Confirmation Email after successfull Payment in Magento 2.3.0

I am struggling with this from past 3 weeks and tried almost all of the solutions suggested but nothing works for me. I want to send an Order Confirmation email after successful payment (Payment ...
Mustafa Taheri's user avatar
0 votes
0 answers
228 views

Magento 2: How to add multiselect dropdown field on my Home Page

I'm new in Magento 2 and I have created a custom module. Now I want to add multi-select dropdown field in my module's front template on my home page. How to add a multi-select dropdown, please?
Salaheddine Radi's user avatar
0 votes
0 answers
28 views

I created a form and that form data is not going to grid

Here is the code doctorsform.phtml <div class="myform" style="top:47px" > <div class="col-md-6 col-xs-12 contact-custom nopadding banner"> <h3>...
vinaysirige's user avatar
0 votes
1 answer
16 views

I created one landing page, when customers fill all the details it should display in the custom module grid in magento admin panel

I created one landing page, when customers fill all the details it should display in the custom module grid in magento admin panel, how can i implement, <form action="">, what to put in ...
vinaysirige's user avatar
4 votes
2 answers
120 views

Is Less File in Magento 2.3.X mandatory?

I have an eCommerce HTML template with simple CSS. I have a few queries before converting HTML into Magento 2.3.3 Question 1: Is a .less file is mandatory? Can we use a simple CSS file in Magento 2? ...
Pankaj Pant's user avatar
1 vote
1 answer
637 views

How to create a frontend custom page module with view template files in magento 2.3

I have doubt as how to create Frontend Module with View template files. I have created Module using this reference Magento Documentation "https://devdocs.magento.com/videos/fundamentals/create-a-new-...
hari's user avatar
  • 11
1 vote
0 answers
912 views

Which File for /lib/web/legacy-build.min.js

I'm trying to change comment display in admin order page, i found this file /lib/web/legacy-build.min.js to edit the submitAndReloadArea function but the legacy-build.min.js looks like a generated ...
tarek fellah's user avatar
0 votes
1 answer
504 views

When to use app/code vs app/design

I saw two topics about that but I'm still not sure. I'm discovering Magento 2, I'm a frontend developer and right now, I just want to make my company website's header and footer (html, css) (so a ...
Clément CREUSAT's user avatar
0 votes
1 answer
51 views

Related products are not showing on frontend

I'running my M1 shop for some years now. But I never used related products before. I use a single column template and like to show related products at bottom of product page. So at a config. ...
Jason Dana's user avatar
1 vote
1 answer
173 views

Magento 2: translate in js?

I'm having an issue with some translations in Magento 2 2.3.0. My store is in french, most of the text works fine. It seems that the problem occurs only with content that come from JS (AJAX and ...
Manish Shah's user avatar
0 votes
1 answer
43 views

I am new to magento I want to know where the frontend routers are reflecting in config.xml file custom module?

I am new to magento, i want know in config.xml file there are two routers are there. one is for frontend router and other is admin router,please explain where the frontend routers will reflects. for ...
vinaysirige's user avatar

1
3 4
5
6 7
27