Questions tagged [frontend]

Denotes questions related to frontend development, configuration and management

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

Having trouble with Xdebug Stack Tracer on a Magento project

At the moment I'm running a Magento project on the 2.4.3 version and when i try to look at the frontend in any browser several tables from the Stack Tracer of Xdebug show up. Before this problem ...
Andrés Chaves 's user avatar
0 votes
1 answer
62 views

Undefined variable $builderContent in Magento_Theme/templates/root.phtml

After upgrading to the latest Magento Release 2.4.4 using PHP 8.1 the website stops loading returning be 1 exception(s): Exception #0 (Exception): Warning: Undefined variable $builderContent in /home/...
David Buik's user avatar
0 votes
0 answers
101 views

Jquery code doesn't work when deployed but runs fine in the browser console in Magento cart page

We're trying to just display the text in the code below if the page is the cart page so that visitors are aware that they can add a gift message to their order. Code works fine by displaying the text ...
CodeForGood's user avatar
0 votes
1 answer
223 views

How to develop frontend using React js Magento 2.4.4

I am stuck on react js integration and development in Magento 2.4.4 so anyone have idea then please share with me. Thank you.
Deep Shah's user avatar
  • 525
1 vote
2 answers
475 views

Magento 2: How can we prevent HTML from being shown in the text that comes from en_US.csv file?

In en-US.csv file in our custom theme, I got a translation as below. "We'll email you an order confirmation with details and tracking info.","Within 10 minutes we'll send an email to ...
CodeForGood's user avatar
0 votes
1 answer
421 views

Get order data with customer details in custom checkout page magento2

I have create custom checkout Step between shipping and payment step . Now i want to show all the order details and customer fillup details. Below is the files that i have created for the Custom ...
Praful's user avatar
  • 1
1 vote
1 answer
853 views

Magento2 Custom Page Builder, doesn't render widgets on frontend

I have a problem with the page builder on my custom module. In the adminhtml, everything is working fine, and my code propeller is saved to DB, but when I'm trying "echo" my code, the widget ...
dandan's user avatar
  • 11
0 votes
1 answer
81 views

How to get and show the best selling products in customer account page magento 2

I wish to show best selling products in in my customer My account page.Please provide me a solution to get best selling products and display in home page. I have getting account file from this path : ...
Praful's user avatar
  • 1
0 votes
2 answers
694 views

How to use the custom fonts in M2 using LESS

I am new to magento2, so I don't understand the less flow in M2, how it is working, and how to use the custom fonts in my theme which is present in the /fonts dir when I import the fonts using @font-...
Naveen Raj Kumar's user avatar
0 votes
1 answer
151 views

New products not showing in category frontend Magento 2.3.7-p3

Before you dismiss this kindly read the details. I have come across several issues but none provide a solution to my question. My products do not show in the frontend of the store. They are visible ...
thinkhjj's user avatar
1 vote
1 answer
269 views

Magento 2.3.7 developer mode : I need to regenerate my static content all the time

Env : Magento 2.3.7 PHP 7 VM on Linux I'm facing an issue : my instance of Magento 2 is in developer mode. But I need, all the time, to redeploy static content (like JS and CSS ; with -f argument) ...
Thomsath's user avatar
0 votes
2 answers
47 views

magento 2 : how to add excel formate validation in the input?

CSV validation working fine in existing code, so how to add excel formate in that validation phtml code:- <input data-validate="{required:false, 'validate-custom-file-csv':true}" type=&...
Darshit's user avatar
  • 43
2 votes
0 answers
386 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....
CodeForGood's user avatar
1 vote
3 answers
707 views

Is there any way to disable cache for frontend price block

Is there any way for disabling price caching in magento frontend
midhun's user avatar
  • 23
0 votes
1 answer
638 views

Customer success messages disappear too fast in magento 2

Once the customer completed the registration, the success message hide too fast? Kindly guide me to any solution to sort it out?
Jaisa's user avatar
  • 2,522
0 votes
2 answers
629 views

Magento 2 Custom Controller Action Created Using New Module Route Not Working

I am using magento2.3.5-p2 community edition ( open source ) I want to create a custom Controller so that I can post data using ajax to the Controller function created client side will call the ...
Mohd Farhan Bin Ramli's user avatar
0 votes
1 answer
424 views

How to add sort by filters to the custom collections magento2

I would like to display Sort By filter options to the order collection Magento2 at the front-end and display the results. Sort by options are 'processing','cancelled', 'hold' etc. Can anyone advise ...
Nagaraju Kasa's user avatar
0 votes
2 answers
193 views

Category is disbled in admin side but still showing in frontend

Category disabled from backend still showing in frontend. Even if there are no products available in that category and disabled. Enable category and include in menu options are turned off, but still ...
mage's user avatar
  • 15
2 votes
2 answers
1k 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 ...
Nayem323's user avatar
  • 731
0 votes
1 answer
273 views

Apply separate theme to multiple store view in Magento 2

I created multiple store views in the backend like Store 1, Store 2, and Store 3. Now I have three separate themes so want to assign them separately to store views. In the backend System-> ...
Manoj Jarial's user avatar
0 votes
1 answer
383 views

How do I display PageBuilder content in custom product tab?

I have several custom tabs on my product pages that pull data from product variables. The tabs are defined in catalog_product_view.xml and it all seems to work as expected except the data are ...
gnicko's user avatar
  • 380
0 votes
1 answer
23 views

Darken the arrows below the magnified image

Here's a screen shot from the bottom of a product page, magnified image, in Shopify. Please zoom in the image. Notice that the < X > is very faint. Sometimes on some pages, they're almost ...
CodeForGood's user avatar
0 votes
1 answer
393 views

Magento 2: Create Dynamic Category Dropdowns on Frontend

I, once again, have to ask for your help. I need to create a modal that let the customer select their car brand, model and year, and I need to populate the select options depending on the selections ...
Alberto Privado's user avatar
0 votes
1 answer
299 views

HOW TO GET IMAGE PREVIEW IN FRONTEND FORM MAGENTO 2

I have created a module that creates a form at frontend. I'm enable to get the image upload preview out there. can we put preview.html in frontend/templates? If not then how can i achieve it.. Please ...
Smith's user avatar
  • 1
0 votes
1 answer
594 views

Add custom template in listing page - Magento2

[![enter image description here][2]][2] How can I remove the attributes that appear for each product and add a new template which contains different styles and content?
Juan Camilo Perez Rodriguez's user avatar
0 votes
0 answers
32 views

csv didn't work on translate store language label in magento frontend

getStores()) > 1): ?> <?php $id = $block->getIdModifier() ? '-' . $block->getIdModifier() : '' ?> <div class="switcher language switcher-language" data-ui-id="language-...
user97995's user avatar
0 votes
1 answer
181 views

Best way to call JS widget only on specific page

I have created a Javascript widget which does some function based on product add/remove cart action. I would like to include the JS only on product pages viz: Category and Product detail page.I know a ...
Dexter's user avatar
  • 3,593
0 votes
2 answers
79 views

Latest data doesn't show at front end after addding data in my custom module

Latest data does not show at front-end after submitting form in my custom module. when I clear cache then latest data show at front end. Help me! how to fix that problem. when I disable cache my ...
Muhammad Zahoor's user avatar
0 votes
1 answer
603 views

How to Call Controller When hit any URL from website in Magento 2?

I have my custom controller that has my custom code, now I need to run that code when any URL hits from the site. My Controller URL is like common/index/code run can anyone help me how can I archive ...
Joy Poly's user avatar
  • 501
0 votes
1 answer
38 views

Share Wishlist action showing blank page in Magento 2.3.4

When I click on "share wish list" button it is redirecting to "<base_url>/wishlist/index/send/" and showing blank page. I am using Magento 2.3.4 CE. The system log shows the ...
shankar boss's user avatar
  • 1,429
0 votes
1 answer
24 views

Magento2.4: https://search.google.com/test/rich-results tool doesn't validate the breadcrumbs properly

the results of testing the URL https://www.perfectmakeupmirrors.com/aamsco-unico-3-with-double-vertical-bands-of-led-lighting.html with the tool https://search.google.com/test/rich-results don't seem ...
CodeForGood's user avatar
0 votes
1 answer
212 views

Magento 2.4.2: How to add Yotpo reviews carousel code in specific category pages?

We've been able to display Yotpo reviews carousel on the homepage of our Magento store. But I need to display that also on a few specific category pages. I'm not sure where to add the following code ...
CodeForGood's user avatar
1 vote
0 answers
85 views

Magento 2 Frontend interview questions

I would be grateful if you leave a questions about the frontend development on m2. Maybe someone remembers the questions asked at the interview. Which topics do you need to know in the first place, ...
Pavlo Bezuhlij's user avatar
0 votes
1 answer
104 views

Magento 2 Custom fee not updating in checkout page(Quote save)

How can I update the quote when I open the checkout page? Like this $quote->save();
NoOn's user avatar
  • 65
0 votes
1 answer
13 views

Show all products for specific categories

Our client has a specific need where they wish all products to be shown for one particular category, whilst all others show the default number (12 in our case) with pagination. I know Magento doesn't ...
Geat's user avatar
  • 834
0 votes
1 answer
285 views

How to display search terms on front-end in magento 2

I want to display search terms on the front end in magento2.3.4 like the above image
Talha Shahzad's user avatar
1 vote
0 answers
116 views

Magento 2.4: UI component paging with non-collection DataProvider

I have listed UI component with DataProvider that is not a collection. I want to make pagination for it but when I add simply toolbar and pagination nodes in XML it does not work. I can see that I ...
LeTeeL's user avatar
  • 27
0 votes
1 answer
375 views

How to disable Mega Menu on Magento2 Porto theme

I have one CMS page and I would like to disable the mega menu on it, but not the other pages? How can I do this? and I want to disable the buttons that I mention in the picture attached. Many Thanks!
Haider Mohammed's user avatar
0 votes
1 answer
537 views

Frontend magento 2 shows product in a category, but backend they are disabled

Have 1 technical question that you may know about magento 2 I want to have on the frontend the bracelets products disabled under the clothing category. The thing is, in the backend, they are disabled ...
Alain Stout's user avatar
0 votes
1 answer
114 views

no classes are being updated to body tag on page load in magento 2.3

every thing was working fine and suddenly the alignment of whole page changed on inspecting i found that the classes are not being updated in body tag in UAT on home page the body tag is <body data-...
Piyush Khandelwal's user avatar
1 vote
1 answer
140 views

Display company name on /customer/account/ under contact information

getCompany for templates/account/dashboard/info.phtml doesn't work when I use a block at all or otherwise. Anyway I can display the contact's company name where the first and last name are being ...
lostnconfused's user avatar
2 votes
0 answers
139 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 ...
SARAVANA PRASANTH's user avatar
0 votes
2 answers
441 views

How to show all categories under the static text in frontend Menu in MAgento2

How to display all categories under the static text in frontend Menu in Magento2 Example: We have 3 categories created in admin and displaying like below in frontend Menu 1 Menu 2 Menu 3 We need to ...
Sudheer Singamsetti's user avatar
1 vote
1 answer
99 views

Has anyone successfully hosted a magento backend on a different URL than the default frontend?

I've been wondering lately whether having the backend for magento on a completely separated URL would be possible, as magento historically has real problems confusing frontend and backend cookies for ...
Ian Richens's user avatar
0 votes
1 answer
1k views

Magento 2 Insert / Move page.main.title inside my custom block

I have create a custom xml for Category Page and I need to move the Category Title inside my Block. This is my custom.xml code: <?xml version="1.0"?> <page xmlns:xsi="http://...
Robert's user avatar
  • 2,166
0 votes
1 answer
245 views

How can I add PHPExcel_IOFactory in my custom module class in Magento 2?

In this I need to add use PHPExcel; use PHPExcel_IOFactory; This two class in my module model file can any one guide me how can I add this two one in my model class I already added that but got ...
Joy Poly's user avatar
  • 501
0 votes
2 answers
249 views

Disabling cache for a certain block used in the product page

I would like to load a certain message based on a certain hour range on the product page. In the catalog_product_view.xml I have this block: <block class="Vendor\Products\Block\Usp" name=&...
Attila Naghi's user avatar
  • 3,863
0 votes
2 answers
469 views

Magento frontend is breaks and shows correctly magento 2.4.2

After I set up the production mode my store is working correctly, but sometimes at the page load design get's broken and loading correctly how to fix it Magento 2.4.2. I had run the below commands. I ...
Sabareesh's user avatar
  • 328
0 votes
2 answers
112 views

frontend error category products not getting displayed

I am trying to access the product listing on the frontend But I am getting this error. Parse error: syntax error, unexpected 'else' (T_ELSE) in C:\xampp\htdocs\testmastersdirect\mastersdirect.masters-...
user99886's user avatar
-1 votes
2 answers
1k views

How can i override module_backend file in app/design folder in magento 2?

i need to need to change admin copyright content they comes from this vendor/magento/module-backend/view/adminhtml/templates/page/copyright.phtml so how can i override this in my app/design folder ...
Joy Poly's user avatar
  • 501

1
2
3 4 5
27