Questions tagged [frontend]

Denotes questions related to frontend development, configuration and management

Filter by
Sorted by
Tagged with
1
vote
3answers
34 views

how to get parent category collection dependency injection magento 2.3.1

How can I get a first category level from Magento 2.3, my category setup looks like this now. root_catalog |-First |-Shoes |-T-shirts |-Brands |-Nike |-Womens
0
votes
2answers
51 views

Magento 2 - How Can I Update Product Price from Frontend?

Ajax runs on page load i want to run it on button click. I create one Module and make a custom tab which is display some product with name and price and if the product is enable/disable. I want that ...
1
vote
0answers
23 views

Solved: Checkout cart components loading weird

we have a serious problem with the cart-view in our shop: https://www.murergrej.dk/checkout/cart/ Problem 1: Not all buttons are clickable anymore. Problem 2: The message "Free shipping" is ...
0
votes
2answers
23 views

How to change Description tab title

Hope You All doing good. I am using magento 1.9 with Porto Theme . I want to change tile of 'Description ' to 'Details' in product page . Any one know how to do it ? how can i change description tabs ...
2
votes
0answers
22 views

Logo is deploy in and present but not shown at front end

My Logo is present at the pub media folder and also the Image src is correct but not showing up on the front end. I have tried cache flush. setup upgrade, static content deploy, di compile, and re-...
1
vote
0answers
59 views

Magento 2: How do I create a symlink?

We recently setup CDN for the static assets. As an old discussion on the github indicates, advanced JS bundling and CDN don't go together. What is happening is explained below. require.js is trying to ...
0
votes
0answers
7 views

Localize untranslated strings

new to Magento so if i just ask something silly please be soft with me. I'm trying to create a website using Magento 2.3. I already have translated the strings of the theme located in /app/design/...
0
votes
0answers
15 views

Magento 2.3.4: How to serve images in next generation format?

Web.dev performance metrics suggest "Image formats like JPEG 2000, JPEG XR, and WebP often provide better compression than PNG or JPEG, which means faster downloads and less data consumption"...
0
votes
0answers
11 views

Magento 2.3.4: How to address "Resources are blocking the first paint of your page. Consider delivering critical JS/CSS inline

Google's web.dev is penalizing the site by displaying this error. Can anyone please suggest what can be done to eliminate these render-blocking resources?
0
votes
1answer
18 views

Strip space from frontend search query

my task at my work is that i remove spaces from a frontend sku search (the one at top and the one after hitting enter). All sku's are formatted like AB 100001234, regexe and so on is ready to go. If ...
0
votes
0answers
30 views

Customize links on top header personal area dropdown menu - Smartwave Porto Theme - Magento 2

I'm working on a Magento 2.3.5 website with Smartwave Porto theme installed and I need to customize the top header menù that give access to the personal area. I need to customize the links in the ...
0
votes
0answers
14 views

Magento 2.3.4: How to keep AMP enabled yet allow the homepage to load its images for mobile devices?

How do I ensure mobile devices can load the homepage with all its images with AMP enabled? The homepage for mobile devices is missing all the images present on the homepage unless the AMP is disabled ...
0
votes
0answers
19 views

Magento 2.3.4. Product Description tab is missing

I am using a custom theme by Swissup on my Magento store. The code that used to get all the product related tabs is $block->prepareTabsData() Strangely enough, this is now returning all the tabs ...
0
votes
0answers
16 views

Magento 2.3.4: Buttons do not have an accessible name

web.dev reports an issue that "buttons do not have an accessible name" on the catalog pages. The catalog page appears to only have Add to Wishlist and Add to Cart buttons. How do I fix this ...
0
votes
1answer
19 views

Magento 2.3.4 Advanced JS Bundling: Should a `deps` node entry within a `shim` node be copied into `deps` module in the build.js file?

My store's requirejs-config.js has an entry for shim node as seen in the code snippet below, that includes an entry for deps node as well. I wonder if I should copy this deps node entry to the ...
0
votes
0answers
11 views

How to remove the label for the customer prefix option in frontend

I added the customer prefix option for my frontend, and its working fine. Unfortunately Magento has added a frontend label for this option. How ca I hide/remove this label? Christian
0
votes
0answers
62 views

Magento 2.3.5: The content security policy related notices in the browser console after Magento upgrade to 2.3.5

Upgrading to 2.3.5 has lead to hundreds of notices in the front end as seen in the screenshot below. The devdoc explaining the CSP isn't detailed enough to find a solution to this. Can anyone show ...
0
votes
1answer
39 views

Custom customer attribute not showing on frontend

I've seen this question many times, but all the solutions I've tried didn't work. I've generated a module that creates three custom attributes in customer's information. Since I'm new to Magento (...
0
votes
0answers
16 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 $...
0
votes
0answers
14 views

Magento 2.3.4. This JavaScript error “Uncaught TypeError: Cannot set property 'status' of undefined” appears only on the configurable products

This error originates from the line data[l].status = 1,. Could you please someone point out what is wrong with this line? t(n).on("load", function() { **data[l].status = 1,** ...
0
votes
0answers
17 views

Less file not included on frontend. Magento 2.3.4

I've got a really strange issue, If I choose to minify and merge css (or either or), then my site layout breaks because the less file style-l.css doesn't get included on the front page. This doesn't ...
0
votes
0answers
6 views

Determine what Javascript is being run to implement a specific feature

I am looking to replicate a specific interactive frontend feature which is running on Magento 1, in Mageneto 2. I have no access to the Magento 1 admin to determine what extension is being used. I ...
0
votes
0answers
12 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 ...
0
votes
0answers
16 views

Invalid template file in module ''

I just installed a new theme, and as soon as I go to the front-end I get this exception: 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: '...
0
votes
0answers
10 views

languages switcher redirect random page on mobile

Hi i've a problem on Magento 2. Language switcher only on mobile in production redirect on random page or in 404. In languages.phtml all work fine and urls in browser inspect are correct. In local i ...
1
vote
2answers
69 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.
0
votes
0answers
13 views

No simple products showing on frontend

My product (approx 1000 product) is not showing on frontend. I have tried to clear cache and reindexing but still after that I am not getting my product in frontend. Currently I am using Magento 2.2.2 ...
0
votes
2answers
65 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 ...
0
votes
0answers
19 views

Magento 2: Klarna tagline doesn't appear on the product details page

I'm trying to display the Klarna tagline in the product details page with Klarna already being integrated successfully into the site. The code that Klarna offers to be placed in the product details ...
0
votes
1answer
17 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 ...
0
votes
1answer
32 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 ...
0
votes
0answers
13 views

Magento 2: How to pass date in URL to home page logo?

I need to pass date-stamp in the format 20200513 in URL to homepage logo to ensure browser doesn't cache the logo and gets the latest logo whenever the logo switching recurs following a cron job meant ...
0
votes
1answer
24 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?
0
votes
0answers
21 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 ...
0
votes
1answer
47 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 ...
1
vote
1answer
29 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. ...
0
votes
0answers
6 views

I need to change the side bar in the category page design but ican't find the Phtml page my debug also not working magento 2.3

I need to redesign the category page filter side bar but from which Phtml it is rendering i can't find it. Please any one can share the details hoe the side bar works. Thanks in Advance:)
0
votes
1answer
35 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"...
0
votes
0answers
5 views

I can't add the product attribute in the fillter tab in magento 2.3

I need to add the product attribute in the filter tab but i can't add the attribute i followed the this link https://docs.magento.com/m2/ee/user_guide/catalog/navigation-layered-filterable-attributes....
0
votes
1answer
22 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[...
0
votes
0answers
20 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 ...
0
votes
1answer
29 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(); </...
1
vote
0answers
8 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": { "*":...
4
votes
1answer
116 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 ...
0
votes
0answers
18 views

I need to change the order page title

I need to change the order page title. I don't want to show the Magento order ID I need to show ** External order Id** from Database how to change it.
0
votes
0answers
16 views

Magento 2.3.3 customer reports issue with checkout “address cannot be saved”

This is random and happens irregular, even if not changing address. Customer ordered fine, cam back a few days later to order something else and when trying to check out received the message "address ...
0
votes
2answers
17 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 ...
0
votes
1answer
36 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....
0
votes
1answer
32 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 ?
0
votes
2answers
39 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

1
2 3 4 5
24