Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [frontend]

Denotes questions related to frontend development, configuration and management

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Total cart Weight how to show order summary in magento 2.4.6

How can We achieve this? We get total weight of products of cart in Magento 2 by \Magento\Checkout\Model\Cart class With objectManager $objectManager = \Magento\Framework\App\ObjectManager::...
Ravindrasinh Zala's user avatar
0 votes
0 answers
15 views

magento 2.4.6 snippet [$block, 'toHtml'] not working

Can anybody explain this magento 2.4.6 statement from core file ? $alertGrid = $this->_appState->emulateAreaCode( Area::AREA_FRONTEND, [$block, 'toHtml'] ); In the above ...
shankar boss's user avatar
  • 1,453
0 votes
1 answer
25 views

how to change position to sorter.phtml block?

i'm trying to move this UI element vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/sorter.phtml from its original position to the right side of the screen inside another ...
media.queeries's user avatar
0 votes
0 answers
15 views

How to change website's header frontend layout?

we were just given a new UI for our website and we need to make some radical changes to our theme; one of them being changing the header's container from one colum-horizontal to 3 columns-vertical. We ...
media.queeries's user avatar
0 votes
0 answers
12 views

I want to show 1 and partially the next image in the fotorama main gallery of Magento

In the PDP, I want to show the first main image and the partial second image in the product gallery of fotorama for Magento 2.4.6. Is this achievable?
referenceFrontend's user avatar
1 vote
0 answers
41 views

How to remove default entity_id sorting in magento 2?

I need to remove the default entity_id sorting from category product collection and add position sorting. here i try using the below method > $cp = $category->getProductCollection()->...
Jay Parmar's user avatar
0 votes
1 answer
28 views

Can I edit Magento 2 LESS files from the Chrome Dev Tools?

I had a pretty comfortable workflow in Magento 1 where I've added the 'skin' directory to the workplace in Chrome Dev Tools and could edit the CSS files right from the Dev Tools. Is something like ...
Heinlein's user avatar
1 vote
1 answer
83 views

Mage-messages cookie is not getting clear in specific store in magento setup

I am facing a strange issue with cookies in the Magento store. The problem is that the "mage-messages" cookie is not being cleared in the US store. In Magento, we have a setting as shown in ...
Mansi Raja's user avatar
0 votes
0 answers
25 views

Unable to get to step 2 of checkout cart in Magneto 2

I am having a problem with the checkout cart where I cannot get to the second step of the checkout process. When I click on the "Review and Payments" button nothing happens as shown in the ...
Jack's user avatar
  • 3
0 votes
0 answers
21 views

The css file goes 404 on fresh magento installation in centos 7 Magento 2?

I install new fresh magneto on my centos 7 recently the home page run success fully but the all css paths goes 404 in core config i also set the base secure and unsecure url for pub static and pub ...
Jay Parmar's user avatar
0 votes
1 answer
40 views

Exact Path for New phtml File

I am trying to override a core phtml file following the advice in this question How to override .phtml files in Magento 2. I am not able to get it to work and I am wondering in general how the path ...
Jack's user avatar
  • 3
0 votes
1 answer
44 views

How i use product designer for product image for frontend in magento 2

I want use image editor for product image
Inam Niazi's user avatar
0 votes
0 answers
49 views

Grunt task for the tailwind in magento 2 frontend

We are working on the custom theme with the tailwindCSS. Normal Magento flow is taking a long time to reflect the changes on the browser. My question is there any configuration or way to use Grunt to ...
Naveen Raj Kumar's user avatar
2 votes
0 answers
66 views

Magento2: Incorrect CAPTCHA Issue

I am getting incorrect captcha error, I am using by default captcha of magento version 2.4.6-p3. As I removed all the custom modules(even which is not related to captcha) and design theme changes. Not ...
Ankit's user avatar
  • 352
1 vote
1 answer
85 views

How to remove block and block arguments in other XML layout magento 2

<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/...
Keval Chauhan's user avatar
1 vote
4 answers
118 views

How do I disable Two-Factor Authentication properly?

I've just installed Magento and tried to log into it as an admin. However, the Two-Factor Authentication message showed up: After a bit of looking up, I decided to disable the Two-Factor ...
Ngoc's user avatar
  • 33
0 votes
0 answers
22 views

Trouble running Magento on Linux

My friend was trying to run a source code for a store on Magento. His setting up for magento includes PHP 7.4, Docker and Composer. However, this was what he got: I'm new to Magento so I too have no ...
Ngoc's user avatar
  • 33
1 vote
2 answers
57 views

Images are not loading in frontend and admin panel is not loading in backend in freshly installed magento 2.4.7

As my question states, I have installed magento 2.4.7-beta1 on xampp 8.2.12 in windows 11 with composer 2.6.5 and elasticesearch 7.16.3 freshly. However any images on frontend and magento admin panel ...
Azerael's user avatar
  • 11
1 vote
0 answers
70 views

Hyva Theme Magento2: Create multiselect category component in Frontend Using ALPINE JS

How to Create Multi Select UI Field on customer account page Frontend same as Admin in Hyva Theme Magento2 (Frontend Using ALPINE JS).
Savan Patel's user avatar
  • 2,358
0 votes
0 answers
149 views

Added custom field/attribute to magento 2 pageBuilder all content types but the attribute is not displaying on frontend html

I extended magento 2 pageBuilder media content types (image, banner, slide, slider etc..). So if I add any value in that custom field that will be displaying on frontend CMS (home) page correctly but ...
shankar boss's user avatar
  • 1,453
0 votes
1 answer
54 views

Magento 2 after programetically cancel the order stock restored but item showing as out of stock message in reorder process

I am facing a problem with resume order process.when customer click resume order I am cancelling the order programatically and creating new order with the same qty. In this process the stock is ...
shankar boss's user avatar
  • 1,453
4 votes
1 answer
100 views

Critical Error of : file_exists(): open_basedir restriction in effect.in my Magento 2?

Here I explained the issue in detail: : file_exists(): open_basedir restriction in effect. File(/autoload.php) is not within the allowed path(s): (/var/www/:/tmp/) in /var/www/mywebsite.com/...
Jay Parmar's user avatar
1 vote
1 answer
52 views

Duplicate the page.main.title

I wanted to duplicate the "page.main.title" element on the product pages, so I added this block to my catalog_product_view.ml <block class="Magento\Theme\Block\Html\Title" name=&...
ljr95's user avatar
  • 11
0 votes
0 answers
22 views

Magento 2 error: CGI Generic Local File Inclusion

I get an error "CGI Generic Local File Inclusion" in the report. The issue is on the Magento or server side, and how can I solve it? Any suggestions or help to fix the issue? Thanks in ...
Darshit's user avatar
  • 53
2 votes
1 answer
56 views

Remove counter from mini cart if there is no product in the cart

I have a smart wave Porto theme, I want to remove the counter (in red) from the mini cart like this if there is no product in the cart If there is a product in the cart, then this will show like this ...
Mitul Vadalia's user avatar
2 votes
1 answer
67 views

how to make country dropdown with search box in magento 2

How can i add search input on country drop dawn field in magento i need to add the search input like show in below screenshoot
Jay Parmar's user avatar
0 votes
1 answer
92 views

Datetime Range picker on the filters of the created_at column in the sales order grid - magento 2.4.5-p3

I have a problem with changing the default date range picker to the date time range picker widget in the sales order grid. I have done the following: created the necessary registration.php and module....
rensvanw's user avatar
0 votes
1 answer
40 views

Can't seem to clean static files cache manually

i'm very new in magento2 and i'm following the official docs. I'm playing around trying to change some css styles in the homepage but i seem to have issues with clearing the static files cache ...
queercoded's user avatar
0 votes
1 answer
104 views

Products Using Placeholder Image in Category View

A script was run to clear unused product images to free up space on the server, but instead of clearing unused images, it accidentally cleared a portion of images currently in use by products. The ...
Bluestocking's user avatar
0 votes
0 answers
60 views

How to fix Attribute model is not defined error

When we search from the search box on the top of the header of the website at that time displayed error like 1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): The ...
kiran's user avatar
  • 597
0 votes
0 answers
41 views

Magento2: Translate META TAGS (Meta description) in layout XML files

We have created a custom page that is shown on some specific situations. We successfully modified the META tags inside section in various layout files. The question is: How can we make this text ...
TheAgent's user avatar
0 votes
0 answers
12 views

How do I re-write magento frontend product collection so I can filter catalog products by product attribute and by customer group?

I would like to filter the products being displayed in home, catalog and search result pages based on a product attribute and on the customer group of the client. Any ideas?
Matt H.'s user avatar
0 votes
0 answers
55 views

Payment integration with next.js

I am using Magento in the backend with Nextjs in the front, I need to integrate payment using the Magento extension but don't know how Magneto will communicate with Nextjs. Can someone provide me with ...
user112986's user avatar
0 votes
1 answer
33 views

How to use Multiple custom .less files in Magento 2 using Grunt.js

We are developing a custom theme for our Front Store view so we need to use multiple .less files in web/css/source. with the help of Grunt.js, the development makes us faster than manually generating ...
Naveen Raj Kumar's user avatar
0 votes
0 answers
51 views

How to make field in admin panel required

In admin panel on creating order page, i need to set field Middle Name/Initial required, if chosen shipping method is "Free shipping", otherwise, this field doesn`t need to be required. Also,...
MaxLogic's user avatar
2 votes
3 answers
519 views

How to extend catalog_product_view.xml for a specific product type?

I created a new product type, and I want to create a product page in the frontend. How can I customize catalog_product_view.xml without affecting other product types?
Nghia Hoang Trong's user avatar
0 votes
0 answers
13 views

Error on Reorder time create invoice automatically from backend in Magento 2?

I have my custom module in that I generate invoice automatically but when I reorder order from backend side that getting this kind of error "Order saving error: Rolled back transaction has not ...
Jay Parmar's user avatar
0 votes
0 answers
47 views

How to change navigation bar font type

I'm trying to change the font type of the navigation bar in Magento 2.4.1. Is there a possible way?
Mah97's user avatar
  • 11
0 votes
5 answers
3k views

Products are not visible at frontend Magento 2

There's two created product each of them is set: Product Type : Simple Website : Main Websites Status : Enabled Visibility: Catalog, Search Salable Quantity: >50 I use Magento 2.4.4 Open source ...
rt89's user avatar
  • 11
1 vote
3 answers
705 views

something went wrong with your request, please try again late Magento 2.4.5?

I have Magento 2.4.5 and on checkout page I get this error "something went wrong with your request" I use one step check out and in that I got this error how can I resolve this ..
Jay Parmar's user avatar
0 votes
2 answers
1k views

frontend not working after update to 2.4.6

I have a development website that consists in a migration from 2.45 to 2.4.6. I upgraded all modules to latest version and my backend is working perfectly. However, frontend gives blank page and I ...
JG Cabanas's user avatar
0 votes
1 answer
122 views

How to override view/base file in magento 2 like as we can override frontend file in design folder

I want to override view/base If we override view/frontend folder then we follow this pattern app/design/frontend/ here we create registration.php file theme.xml and ...
Arun Suryavanshi's user avatar
0 votes
1 answer
878 views

Inventory management not automatically changing to 'out of stock' (is there Patches List for Magento 2)

I have faced issue after issue with the Magento 2 software that entails me having to do patch after patch. My most recent issue is with the inventory feature. I have turned on inventory management, ...
thinkhjj's user avatar
0 votes
1 answer
163 views

Magento 2.4.4: Attach event handler to Province dropdown to reload the checkout page

We developed a custom shipping module that displays shipping methods and the rates in Firecheckout page. The issue is the Shipping Method block in the firecheckout page doesn't refresh if one changes ...
CodeForGood's user avatar
0 votes
2 answers
699 views

Magento 2: Add block to cms page with / in the url key trough xml

Magento 2: I'm trying to add a block to a cms page with a layout overwrite. The problem is the url key has a / at the end which can not be removed. So the url key is uber-uns/ If i remove the / as a ...
Sanne's user avatar
  • 1,316
-1 votes
1 answer
496 views

What are some best practices for optimizing the front end performance of an Adobe Commerce store, with an emphasis on increasing lighthouse scores?

For someone looking to increase the front end speed and optimize the front end performance of an Adobe Commerce store, with an emphasis on lighthouse scores, what would be some good starting points to ...
Joshua34's user avatar
  • 2,317
0 votes
4 answers
744 views

Magento 2.4.4: How to remove Reviews tab from the product page

Is there any setting in Magento admin to remove the reviews tab from product details page? Here is the contents of catalog_product_view.xml <?xml version="1.0"?> <page layout="...
CodeForGood's user avatar
0 votes
2 answers
74 views

Disable Ecommerce Modules from Magento 2

So I am a lover of Magento Framework itself, but I want to build a normal website, nothing to do with ecommerce, so Taxes, products, categories, checkout, quotes, elastic search and etc its not ...
IndexError's user avatar
0 votes
1 answer
32 views

Change colors and fonts only on main theme, not on childs

I have a problem, and I do not know how to approach it. So, I am running a project in which we have a store divided into 2 store (b2c and b2b). B2C is the default template, and B2B inherits from it. ...
meracle3's user avatar
1 vote
3 answers
756 views

Uncaught TypeError: utils.formatPriceLocale is not a function

I am upgrading to 2.4.5-p1 I can't seem to figure out how to resolve this error. price-box.js:153 Uncaught TypeError: utils.formatPriceLocale is not a function at $.<computed>.<computed>.&...
Marcello Berti's user avatar

1
2 3 4 5
27