Questions tagged [frontend]
Denotes questions related to frontend development, configuration and management
485
questions with no upvoted or accepted answers
11
votes
2
answers
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.
...
7
votes
1
answer
5k
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 ...
6
votes
2
answers
3k
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
0
answers
224
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
0
answers
750
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
0
answers
605
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
1
answer
134
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
1
answer
112
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
1
answer
874
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
3
answers
1k
views
Magento 2.4.2 Customer Login Not Working
When a customer tries to login to the front end website, they enter their user name and password and then when they click to login, it appears to be successful but they were not logged in. This is a ...
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 ...
3
votes
0
answers
155
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
1
answer
155
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
0
answers
42
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
0
answers
618
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
0
answers
246
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
1
answer
563
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 ...
3
votes
1
answer
648
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
0
answers
122
views
How to Add discount code form to multi shipping address
I have been working for 2 days for applying multiple coupon on cart I know there are modules which are available for that. But i don't want to use it. I want some custom code so that i can apply more ...
3
votes
1
answer
457
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
0
answers
792
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
1
answer
770
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
1
answer
748
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
1
answer
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
2
answers
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
1
answer
688
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
1
answer
2k
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
0
answers
222
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
2
answers
964
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
0
answers
210
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
2
answers
451
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
0
answers
289
views
Magento 2.4.2: [Report Only] Refused to load the script 'https://googleads.g.doubleclick.net
One of a few content security policy directive issues seen in the console when visiting a product page is what reads on below.
[Report Only] Refused to load the script 'https://googleads.g.doubleclick....
2
votes
0
answers
889
views
Magento 2 - Cannot find field "newsletter_enabled" on type StoreConfig pwa-studio
I have installed pwa-studio by following magento pwa docs. Now when I try to run command "yarn run watch" got below error
$ webpack-dev-server --progress --color --env.mode development
As of ...
2
votes
0
answers
124
views
Magento 2 - Sales order grid on the frontend with export option
I need to show the sales order grid on the frontend under My Orders or else I need to show the custom field under my orders on the frontend so that the customer will filter the orders based on the ...
2
votes
0
answers
49
views
Disable fronend in Magento 2 for a specific module for using only the Admin and the API routes
How to disable the fronend in Magento 2 for a specific module so I can use the Adminpanel and the API routes.
2
votes
0
answers
51
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
0
answers
31
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
0
answers
213
views
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 ...
2
votes
1
answer
637
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 ...
2
votes
0
answers
784
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
0
answers
41
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
0
answers
123
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
1
answer
157
views
Change the display of attributes when the customer changes the product configuration
I will try to be as clear as possible.
On the configurable products pages, when the customer chooses his product configuration, the price display changes according to the price of the configuration.
...
2
votes
0
answers
150
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
1
answer
132
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
0
answers
322
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
0
answers
2k
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
0
answers
117
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
0
answers
40
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
1
answer
708
views
How to create Sales rule (Coupon) in magento 2 programmatically
I created the coupon in function its works perfectly now I want to apply sales rules (apply on specific product) my code is
public function setCoupon()
{
// $this->_state->setAreaCode('...