Questions tagged [frontend]

Denotes questions related to frontend development, configuration and management

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

How To Add Pop Form For Submit Review In Magento2 Product Detail Page?

How Can I Add Button For Submit Reviews On Click On This Button Submit Reviews Pop up form Open And User Can Easily Submit The Reviews .
0
votes
0answers
20 views

How to apply Filters on custom Product Collection. Magento 2

I've created a custom phtml file where I'm showing specific Products.. Now I want to apply filters on that so for that in my Layout I've applied <?xml version="1.0" encoding="UTF-8&...
0
votes
2answers
31 views

After making ajax query controller redirects back to product page

I’m making an ajax query from a product page (code below). If I run it directly in browser, it works but if I run it inside a code (javascript) it redirects me back to the product page with a status ...
0
votes
1answer
10 views

How to Add Product Specification Section Under Product Info in Magento 2?

How to Add Product Specification Section Under Product Info in Magento 2
0
votes
1answer
26 views

Magento 2 - Filter through non anchor categories throws “The bucket doesn't exist.” exception

I am facing this issue on M2.3.5-p2 when filter through non anchored subcategory on the main category(anchored) page. Steps to reproduce From the admin set parent category anchor to Yes. For one of ...
0
votes
1answer
19 views

How to get custom admin field value of specific Storeview in magento 2.3.2

I want to add a custom text area for contact info for a particular store view from configuration and get that custom field value and display it on the contact us page in Magento 2.3.2. so can anyone ...
1
vote
0answers
8 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.
1
vote
0answers
16 views

After Create Luma Child Theme The Customer Login Register Not Working Also No Any Error Display in Magento 2.3.5

I Created Luma Chield Theam In That I over ride the Only Magent_Theme in that customer login register not working And Also Add To Cart Throw Me 404 like That
0
votes
3answers
34 views

css file : failed to open stream: No such file or directory

in my case i have added a less file to compile a css file in my Base Module , but after I run this command "bin/magento setup:static-content:deploy -f" an error was occured like belllwo [...
0
votes
2answers
24 views

I want to show a button on frontend that is only visible to admins and NOT customers. Is there some way?

I want to show a button on frontend that is only visible to admins and NOT customers. Is there some way? I've tried getting adminId on frontend but seems like it's not possible as backend and frontend ...
0
votes
0answers
13 views

Frontend Customer Login - Invalid Form Key. Please refresh the page

We are having an issue with the frontend customer login, where the users can't login as this error pops up: I have checked online for this issue and have found mostly back-office login errors, in the ...
0
votes
0answers
25 views

how to apply last filters saved in custom bookmark in frontend UI Component listing?

I created listing using UI Component in frontend. I also created custom bookmark for saving the state of the UI Component because I want store it as a customer, because the default bookmark only save ...
0
votes
0answers
12 views

frontend button only accessible to admin

{ $dateTime = $this->_objectManager->create('Magento\Framework\Stdlib\DateTime\DateTime'); $adminConfig = $this->_objectManager->create('Magento\Security\Model\...
0
votes
0answers
19 views

How can I add new block in the footer and place it like this?

I'd like to add a new block in the footer and place it like this in Luma theme: At the moment, the main footer container is using: display: flex and it shows all 3 blocks side by side.
0
votes
0answers
5 views

Magento 2.2.4 - checkout/cart get shipping rates via AJAX

Version 2.2.4 seems to have a buggy form post on checkout/cart to update shipping rates. I have other stores using 2.3.* that work fine. I am trying to run defaultProcessor.getRates() on a JavaScript ...
0
votes
0answers
16 views

Magento 2 - Load html of a template from PHP class

I have a php class where I am generating some HTML and returning it. private function _generateNote($expressRule) { if ($expressRule["hasNotAllowedCategories"]) { $note = "...
0
votes
0answers
6 views

When adding simple product in cart getting the customer-data.js

Error: {"message":"The product that was requested doesn&#039;t exist. Verify the product and try again."} When adding the product to the cart getting this what is the purpose ...
2
votes
1answer
26 views

how to change area in magento 2

I have tried this but this haven't worked for me { if (isset($this->_areaCode)) { throw new MagentoFrameworkExceptionLocalizedException( new MagentoFrameworkPhrase('Area ...
0
votes
1answer
14 views

How I can make Magento 2 product-info-main sticky like cart sidebar when scroll to down?

I want to make an upper bar as in https://www.atma.com.ar/molinillo-electrico-atma-mc8141n.html that contains the product info and the "add-to-cart" button, and that appears only when I ...
1
vote
2answers
28 views

Product images not showing

I'm experiencing a strange behaviour: all the product images are present if I edit a product on the backend. But if I visit the product list in the backend or frontend, or the product view in frontend,...
0
votes
0answers
18 views

How to add a Dropdown on My Account in the header? What steps should follow

Here is the screenshot what i am exact want.
0
votes
0answers
22 views

How to pass data as parameter with block function in <script type=“text/x-magento-template”>?

How to pass data as parameter with block function in below script: <div class="col-sm-7 col-md-8 col-xs-9 col-lg-9 tag-content"> <h4><a target="_blank&...
0
votes
0answers
12 views

Product showing Out of Stock in Magento 2?

I have created a product but on checking on front end it goes to out of stock. This is my product which have quantity and in stock also. I have run also indexer:reindex and cache clean but still it ...
0
votes
1answer
27 views

How to append block to addto container

I have a relatively straightforward module in Magento 2 for adding some extra functionality to the addto area on the product view page. I wanted to append my own custom block after the product.info....
0
votes
1answer
23 views

Magento2: How to display product attribute in frontend

I use this code to display one attribute in frontend: <?php $optionText = ''; $attr = $_product->getResource()->getAttribute('newbrand_name'); if ($attr->usesSource()) { ...
3
votes
3answers
477 views

Magento 2.x Elasticsearch Category Products Not Showing

I tried to upgrade my Magento 2.3.5 install to Magento 2.4.0, but am unable to get category pages to display products. Everything is in Docker, so I am using Elasticsearch 7.6 and have specified ...
0
votes
0answers
11 views

How to create map Pick up Location input in Frontend. Magento2

I want to create a pick up input type in frontend where the user will select the location in map n then I'll get Latitude and Amplitude. Like you can see from the image. How can I create this? thanks
0
votes
0answers
132 views

Manageable approach to critical CSS in Magento 2

I'm working on using the critical CSS feature now available in M2 currently, but a little uncomfortable with the implementations I've seen, and wondering if anyone has developed a reliable approach ...
1
vote
2answers
33 views

Adding Custom Option For Multiple Products at once . Magento 2

I have an category of Watches and in this category there is more then 2500 Products now I want to add Custom Option on each Product for that I was following This link so when I write script for it. it ...
0
votes
1answer
35 views

Why the extensions are visible on frontend after disabling from admin panel

I am building the website called cravestore.in. I have disabled the pin code extension from admin panel but still it is visible on front page. I have installed this extension manually through ...
0
votes
0answers
15 views

custom product option drop down get image in magento 2.3

I am trying to add a product custom option drop down in product details page get image in magento 2.3 please check our snapshot product details page.
0
votes
0answers
5 views

M2.3.5-p2: Configurable product options disappear

When I pull any master branch updates from my dev website into my production website I lose my configurable product options on the frontend. I have only seen this happen once before and the only thing ...
1
vote
2answers
32 views

Magento 2 How to redirect to a custom block from a Controller

I have added a front phtml file followed by a Block, I need to redirect to that block from a controller. this is the Block path, it's working fine. http://mywebsite.co/schools/schoolzone_search/index/...
0
votes
0answers
24 views

Magento 2 : Is there a event which fires before every controller begins execution?

The best event I could get was the good old controller_action_predispatch but it fires after the controller is done execution and before layout generation. Any other event that works in frontend area ...
0
votes
0answers
34 views

<head> Page Configuration on a Custom Page Layout XML in Magento 2

I've created a Custom page_layout through my own Theme for an About Us page. Through the tutorial of the Magento DevDocs, it was quite clear on how to declare the Custom CMS layout by a handle in ...
0
votes
0answers
10 views

How to change the number of items per row in products grid Magento 2.3.5

How to modify magento 2 to show 3 items per row in product grid instead of the default 4? I tried to play with /var/www/magento2/vendor/magento/theme-frontend-luma/Magento_Catalog/web/css/source/...
0
votes
2answers
59 views

Magento 2: How to exclude/hide products from Search?

I still want to be able to access to some products through the URL but exclude them from the Search bar I am using elasticsearch7 Thank you in advance EDIT: Ideally, to do it programmatically
0
votes
1answer
29 views

Could not unserialize data of sales_flat_quote_item_option.value with record id 78558 Magento 2.3.5 Data Migration issue

[2020-08-11 14:35:47][WARNING]: Could not unserialize data of sales_flat_quote_item_option.value with record id 78558
0
votes
3answers
46 views

How to add logo in cms_index_index.xml in magento 2.3.5

app/design/frontend/vendorname/themename/Magento_cms/layout/cms_index_index.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt ...
0
votes
1answer
15 views

Where is the .phtml to modify category page filters?

Good afternoon, I have a question, where is the .phtml to modify category page filters (frontend)? I don´t find the file and I need this to modify the words Filter by. Thank you so much!!
0
votes
1answer
29 views

Magento2: move greet.welcome element at start in to.links section in header

In my Magento site, I want to move Welcome element which shows after login to the start of the top.links. Currently it is showing in the end after login. Without login: With login: Without login ...
0
votes
2answers
29 views

Add class active to the current category Magento 2.3

How I can add a class "active" to the current / selected category? Magento 2.3 <?php // get the list of all categories //echo "Hello"; //echo '<div class="hello"&...
0
votes
1answer
15 views

How to move page mail title after category description in magento 2.3.1

app/design/frontend/vendorname/modulename/Magento_Catalog/layout/catalog_category_view.xml <move element="page.main.title" destination="main.category.col.1" after="category....
1
vote
0answers
13 views

Get cart id using javascript

This question is in relationship with only the frontend. I want to get using javascript Visitor Id : If the customer is not logged in on any page. Customer Details: If the customer is logged in. Cart ...
2
votes
1answer
59 views

How to remove color picker from frontend?

I'm building a theme based on the Blank theme, using the Magento UI library. I notice that Magento comes with a color picker, which loads both spectrum.js (> 80 kB) and tinycolor.js (almost 40 kB). ...
0
votes
1answer
18 views

Missing 'return' statement in frontend Controller execute() method (IDE warning notice)

I recently use PhpStorm to write my code and it finds an error in a controller who get data from a <form> to save them in a custom model. (works fine even without correction). Class ...
1
vote
1answer
29 views

CSS files just stopped loading // MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled

Hello I am new with magento and ran into a issue that has caused a huge headache this morning. I updated a phtml file the same way I have previously but this time I got back this error and now none of ...
1
vote
0answers
26 views

How overwrite product price in plugin but not taking the cached price?

I have a plugin to change the product price, but when the plugin is called again, it's render the cache product price in the frontend. Any way to take the plugin info instead of the cache? This is my ...
0
votes
0answers
13 views

Uncaught HeadlessChromium\Exception\JavascriptException: Error during javascript evaluation: TypeError: Cannot read property 'outerHTML' of undefined

All I'm trying with the try catch block in the code below is to let the script run without having it to stop on a fatal error. Exception handling doesn't seem to work since the fatal error displays on ...
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 ...

1
2 3 4 5
24