Questions tagged [frontend]

Denotes questions related to frontend development, configuration and management

448 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
2answers
2k views

Frontend form key is being overwritten

I am currently having issues with frontend forms where the form keys are somehow being overwritten and displaying incorrect form keys. I am currently debugging this issue on the customer login form. ...
6
votes
1answer
3k views

How can we create a form at front-end using UI component Magento 2

I am looking to create a form at storefront using UI component. When I create xml file in Ui component folder It throwing an error Fatal error: Call to a member function getRequestFieldName() on ...
5
votes
0answers
187 views

Shopping cart pricing rule condition is not visible on orders total in order page

Shopping Cart Pricing rule logic applied successfully but not visible on orders total in order page, FYI Front end showing the Shopping Cart Pricing rule, How to get Shopping Cart Pricing rule on ...
5
votes
2answers
2k views

Magento 2 Ajax pagination for grid on front end

On custom tab of product detail page on front end i have added a table and used Pager for pagination. Magento\Theme\Block\Html\Pager But this reloads the entire page when pagination is used. I don'...
5
votes
0answers
597 views

Magento 2: Image upload in product review from Frontend

It would be very helpful if someone can guide me, How to achieve functionality of uploading image while product review on frontend. I want to implement the functionality, the users can upload images ...
4
votes
0answers
361 views

Google Chrome is failing in loading require.js files in time

On Magento 2 (ver 2.2.5), with Google Chrome (ver 72.0) I'm getting a wired error I wasn't getting withe previous Google Chrome version (ver 71). When I visit a product page, I get more then one ...
4
votes
1answer
81 views

How to choose right caching technique for Magento2 and how to configure them properly

We are working on a new store and want the site to have cached. I think there are a lot of caching techniques but I would like to which are to be chosen. Ex: Varnish, OPcache, Memcache, Redis. ...
4
votes
1answer
77 views

Magento : Product detail page GIF image not call / working

Here my code use in our local environment it's working but in live site not working When i click image gif image not open it live site.but in localhost it's working properly $baseDir = Mage::...
4
votes
1answer
730 views

Magento 2: Include header and footer in external php

I want to include header and footer layout of Magento 2 to external PHP file, I am using my own code(external PHP) to make a frontend page. how to add header and footer layout theme in Magento 2 to my ...
4
votes
1answer
1k views

RequireJS Error - require.js:166 Uncaught Error: Mismatched anonymous define() module: function (){return Z}

I'm new to RequireJS and trying to figure out why this is happening. I have a custom file stickyNav.js in <vendor>/<theme>/web/js. I've added a requirejs-config.js file in <vendor>/...
3
votes
0answers
112 views

{{media url=“…”}} doesn't work on product attributes

After magento update to version 2.3.2 i noticed that {{media url="..."}} is not working on product attributes like 'description' attribute. In backend the url is resolved correctly and i can see the ...
3
votes
1answer
71 views

ReferenceError: {var} is not defined

I have a problem with the frontend_model of the system.xml This is the system.xml <field id="words" translate="label" sortOrder="92" showInDefault="1" showInWebsite="1" showInStore="1"> ...
3
votes
0answers
26 views

how does frontend js methods call a backend api in magento 2.3

I'm new to PHP and Magento. I am building a payment module. I have saved some encrypted credentials in the core_data table. i am currently able to retrieve these decrypted credentials with my method ...
3
votes
0answers
320 views

How to show image in custom email. Magento 2

I'm getting my custom data from email function and also I'm getting the Product image URL to show it in mail now I tried many ways to show my image in email but its not working for me my custom email ...
3
votes
0answers
93 views

Magento 2 : Filter is not showing in front end in my custom module

i'm creating filter for Frontend in custom module. I'm following this module grid https://belvg.com/blog/ui-grid-component-on-the-front-end-in-magento-2.html But it's not showing in Front end. ...
3
votes
1answer
479 views

Magento 2 - Images randomly not loading on Product Page

I am unsure what is causing this issue, but images are randomly not loading on the front-end of a live website. This issue came about yesterday and there doesn't seem to be an obvious fix. ...
3
votes
1answer
563 views

Magento2: Session messages not removed properly - persist across multiple requests

I have facing in cache issue in my magento 2 store here if i submit any form getting error and success message coming when refresh page.i don't understand why this issue comes again and again .if any ...
3
votes
1answer
229 views

Magento 2 - How to call a custom HTML file like header.html and footer.html (under Magento Email or Custom Module) in any email templates?

Create separate email header and footer for 2 different "frontend area" for Customer for Vendor Area (seller admin panel "not admin area") I want separate email design for both area. right now my ...
3
votes
0answers
537 views

Magento 2: Disable cache for price block

I want to disable the cache of the price block in detail page. However, I cannot find a place to modify it. I try to add cacheable="false" in module-catalog\view\base\layout\catalog_product_prices....
3
votes
1answer
622 views

Product attribute with store labels

Is there any way to add product attribute with different store labels through Magento2 setup script? If we pass 'label' it only assign default label of the attribute. I tried with frontend_label but ...
3
votes
1answer
492 views

Different holding/maintenance/503 pages for different themes - Magento 2

I have a multistore site (6 stores) that use 3 different themes, my question is: How do I set a different maintenance/holding/503 page for different themes? I can't find anything mentioning this so ...
3
votes
1answer
1k views

Magento 1.9: Custom category field for an image not showing on front end

I want to add a picture on top of category name in frontend. I tried creating a custom field for the category and adding a picture that way. I can see the custom field from admin, but I can't see ...
3
votes
1answer
2k views

How to remove lib-font-face from Magento 2

I've created a theme in Magento2 which inherits from the Luma theme. So it has inherited it's lib-font-face, which can be found in the styles-m.css @font-face { font-family: 'luma-icons'; src: ...
3
votes
1answer
612 views

Display specific category, toolbar and filter on home page

I want to have a category page as part of my homepage that also shows the pagination and, most importantly, the filter. I'm using this extension to change the filter to a horizontal one that uses ...
3
votes
1answer
1k views

Magento 2, display gift options in checkout page

In magento 2, when you switch on the gift option from the backend. It gets displayed on the Cart page. I need to display this on cart page and checkout page as well, under cart items. How can i ...
3
votes
0answers
195 views

Magento 2 Yarn instead of NPM

I justed wanted to know if anyone has tried out the new package manager Yarn which claims to be faster and most secure than NPM, in their Magento2 projects. If so is, there any known issues I should ...
3
votes
1answer
857 views

Assets from module not appearing in pub/static folder

Running Magento 2.1 I am building a module with alert.js in the /view/frontend/web/ folder in my module: https://github.com/waynhall/frontend1/tree/master/Pulsestorm/FrontendTutorial1 However, after ...
3
votes
0answers
207 views

Configurable Procucts appear as out of stock in frontend

I´m facing some problem in make my configurable products appear in frontend, no matter what i do (i´d read an tried other posts solutions) it appears as out of stock in my frontedn. Follow configs ...
3
votes
2answers
300 views

Magento 2. how to hide 'Add to cart button' using Plugins

How to Hide 'Add to cart' button using Plugins.I'm stuck in to hide add to cart button.
2
votes
0answers
40 views

How to hide the custom shipping method only on the front end of Magento 2?

I saw several solutions but I couldn't implement them, I think I'm missing something. This method will be visible in the Magento backend and web service, not being an option visible in the cart. I ...
2
votes
0answers
25 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-...
2
votes
2answers
273 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 ...
2
votes
0answers
214 views

Magento 2 : make a multiple step register form

I want to make a multiple-step register form in Magento 2. How can I do it? Any helps? Thank in advance.
2
votes
0answers
28 views

Review starts on Magento2

i have an issue not rating is showing on my plp page there is always show "write a review" but when i open the detail page there review stars showing i have enable all reviews and approved what will ...
2
votes
0answers
28 views

How sales rule condition validation work in Magento 2?

Please let me know, In Magento 2 How Sales rule condition validation works with the quote? Thanks!
2
votes
0answers
64 views

Magento2.3.0 any one use layered navigation with multi select checkbox using category and other attribute filter

I am using Magento2.3.0 community version and I have integrate all free version layer navigation but not working so my requirement is attribute option with checkbox select than not remove in ...
2
votes
1answer
88 views

Magento 2 - Frontend Controller conditional based 404 page

I have custom frontend controller, I added the URL Rewrite for this controller I want to figure out the way, How I send requesting URL to 404 page based on some condition within the controller. I ...
2
votes
0answers
148 views

How to set Drop Down menu on mouse hover in TopMenu. Magento 2

How to set custom item in TopMenu to show DropDown menu on mouse hover I tried this code app/code/StackExchange/Menu/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
2
votes
0answers
1k views

Magento 2 - Override Swatches renderer.phtml

I would like to override file : app/code/Magento/Swatches/view/frontend/templates/product/layered/renderer.phtml In my own theme : app/design/frontend/[VendorName]/[theme]/Magento_Swatches/...
2
votes
0answers
80 views

Magento-2 jquery widget timing issue

I recently started using jquery widgets in magento and come to know that magento extends jquery-ui widgets through the use of widget factory and customises them according to need and then again return ...
2
votes
0answers
36 views

How I Know What Classes Use Magento 2.3 with Bootstrap 3.7?

I learn in a website blog, the magento 2.3 use bootstrap 3.7, but I don't know what classes use this bootstrap edition, Any have a guide for this?
2
votes
0answers
34 views

Popup for different products in Magento 2

I have to make a pop-up window under the products on the sales page. Instead of redirecting to ordering, a feedback form should appear. The problem is that I do not know how to tie a pop-up window ...
2
votes
0answers
380 views

Show notification message after ajax call

I have my own controller for a customer address delete, so at the end of the controller, I send a notification message to notify the user. try{ $this->_addressRepository->deleteById($...
2
votes
1answer
245 views

How to disable frontend for CMS/API-only, headless Magento 2.3

I'm currently working on a web-app that uses Magento 2.3 as a CMS-only. How can I disable the customer-facing frontend and leave only the admin pages accessible? Alternatively, is there a way to set ...
2
votes
0answers
43 views

How Service Workers can speed up the store?

It may be useful to introduce service workers to increase loading speed? If yes, which resources are the high priority ones? Link to Service Workers docs : https://developers.google.com/web/...
2
votes
1answer
125 views

Magento2 Checkout Page web matrix Shipping Method by default selected

In Magento 2 checkout page when ship here button click than shipping method radio button by default selected showing but in my site it's not working. So if anyone knows how to fix this, please reply ...
2
votes
0answers
64 views

“Custom Attribute” is a required field Error Message - Custom customer Attribute on register user

Hello I added an custom customer attribute "kndnumber" to my register page. Attribute is successfully created in DB. My Problem is when I submit the user register request the error Messsage "...
2
votes
0answers
60 views

Magento 2. how to hide price only for specific categories

Actually I hide the price using Plugin but now I want to hide price only for specific categories like I only want to hide the Price for bags. I want to do this thing by using Admin configuration like ...
2
votes
0answers
205 views

Magento 2 - How to show product grid in my custom module?

I created a custom module,in that module I want to display product listing grid based on selection I want to do some different operations for selected product in frontend.Can anyone help me how to ...
2
votes
0answers
28 views

Magento 2.2: How to show a cutomer custom attribute on frontend?

I need to show my custom attribute in the next windows: On the address book: On the checkout page: And in the backend customer edit: It is possible assign the attribute with XML file without ...

1
2 3 4 5
9