Questions tagged [frontend]

Denotes questions related to frontend development, configuration and management

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

Css and js not working after transfered site to new server Magento2

I have moved my magento to new dedicated server ,css and js not working. Also have done static deploy,Can anyone help me to fix this issue
gill's user avatar
  • 329
0 votes
1 answer
116 views

Is it bad to use ObjectManager in list.phtml like in Code Below? What's the best Practice?

Is it bad practice to use ObjectManager in file app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/list.phtml like this below. <?php $objectManager = \Magento\...
Jonathan's user avatar
  • 103
0 votes
1 answer
185 views

How To move Quick View Before Add to Cart in Magento 2?

I used the bss quick view and fist i want to need to remove th hover for quick view button and second one i need to add quick view button before add to cart here see
Jay Parmar's user avatar
0 votes
1 answer
194 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 .
Jay Parmar's user avatar
1 vote
1 answer
264 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 ...
antoniog's user avatar
  • 100
0 votes
1 answer
297 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
Jay Parmar's user avatar
0 votes
1 answer
517 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 ...
Rahul Barot's user avatar
  • 1,072
0 votes
1 answer
203 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 ...
Deep Shah's user avatar
  • 541
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.
Reshad Zazai's user avatar
1 vote
1 answer
43 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
Jay Parmar's user avatar
0 votes
3 answers
1k 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 [...
coding mv's user avatar
  • 119
0 votes
2 answers
171 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 ...
Abdul Samad Abbasi's user avatar
1 vote
0 answers
550 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 ...
Rendy Eko Prastiyo's user avatar
2 votes
1 answer
99 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 ...
aich.khalid's user avatar
0 votes
2 answers
1k 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 ...
Alejandro P's user avatar
1 vote
2 answers
117 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,...
MarDenDev's user avatar
0 votes
1 answer
181 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....
treyBake's user avatar
  • 131
0 votes
1 answer
451 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()) { ...
Sylvester's user avatar
  • 2,156
12 votes
6 answers
17k 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 ...
doublesharp's user avatar
0 votes
0 answers
48 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
Asad Khan's user avatar
  • 1,466
1 vote
2 answers
476 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 ...
Asad Khan's user avatar
  • 1,466
0 votes
1 answer
53 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 ...
Salman Dalal's user avatar
1 vote
2 answers
515 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/...
Praveen Negimani's user avatar
0 votes
0 answers
494 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 ...
Vivek Kumar's user avatar
  • 4,904
0 votes
2 answers
1k 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
Paloma Martinez's user avatar
0 votes
1 answer
175 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
Ravindrasinh Zala's user avatar
0 votes
3 answers
334 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 ...
Ravindrasinh Zala's user avatar
0 votes
1 answer
22 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!!
IvannVerano's user avatar
0 votes
1 answer
250 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 ...
djmzfKnm's user avatar
  • 159
0 votes
2 answers
190 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"&...
Ravindrasinh Zala's user avatar
0 votes
1 answer
24 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....
Ravindrasinh Zala's user avatar
1 vote
0 answers
190 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 ...
Sudhir's user avatar
  • 111
3 votes
3 answers
555 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). ...
m4r73n's user avatar
  • 131
0 votes
1 answer
376 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 ...
cap340's user avatar
  • 691
1 vote
1 answer
429 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 ...
Carter's user avatar
  • 47
1 vote
0 answers
66 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 ...
Erich Hans Merz Diaz's user avatar
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 ...
Sérgio Mordente's user avatar
1 vote
1 answer
41 views

Different locations for search bar depending on width

I have a problem regarding the block moving with XML. I moved the search-bar with <move element="top.search" destination="catalog.topnav" after="-"/> which is ...
Jannis S.'s user avatar
1 vote
3 answers
350 views

how to get parent category collection dependency injection magento 2.3.1

How can I get a first category level from Magento 2.3, my category setup looks like this now. root_catalog |-First |-Shoes |-T-shirts |-Brands |-Demo |-Test Now First ...
Ravindrasinh Zala's user avatar
1 vote
1 answer
531 views

Magento 2 - How Can I Send Success and Error in JSON and from Frontend update product price and enable/'disable?

Ajax runs on page load i want to run it on button click. I create one Module and make a custom tab which is display some product with name and price and if the product is enable/disable. I want that ...
Prits's user avatar
  • 626
1 vote
0 answers
32 views

Solved: Checkout cart components loading weird

we have a serious problem with the cart-view in our shop: https://www.murergrej.dk/checkout/cart/ Problem 1: Not all buttons are clickable anymore. Problem 2: The message "Free shipping" is ...
unic0de's user avatar
  • 11
0 votes
2 answers
137 views

How to change Description tab title

Hope You All doing good. I am using magento 1.9 with Porto Theme . I want to change tile of 'Description ' to 'Details' in product page . Any one know how to do it ? how can i change description tabs ...
Syze Developer's user avatar
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-...
Anonymous Record's user avatar
2 votes
0 answers
219 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 ...
CodeForGood's user avatar
0 votes
1 answer
84 views

Strip space from frontend search query

my task at my work is that i remove spaces from a frontend sku search (the one at top and the one after hitting enter). All sku's are formatted like AB 100001234, regexe and so on is ready to go. If ...
Philipp's user avatar
0 votes
0 answers
40 views

Magento 2.3.4: How to keep AMP enabled yet allow the homepage to load its images for mobile devices?

How do I ensure mobile devices can load the homepage with all its images with AMP enabled? The homepage for mobile devices is missing all the images present on the homepage unless the AMP is disabled ...
CodeForGood's user avatar
0 votes
1 answer
95 views

Magento 2.3.4. Product Description tab is missing

I am using a custom theme by Swissup on my Magento store. The code that used to get all the product related tabs is $block->prepareTabsData() Strangely enough, this is now returning all the tabs ...
CodeForGood's user avatar
0 votes
1 answer
137 views

Magento 2.3.4 Advanced JS Bundling: Should a `deps` node entry within a `shim` node be copied into `deps` module in the build.js file?

My store's requirejs-config.js has an entry for shim node as seen in the code snippet below, that includes an entry for deps node as well. I wonder if I should copy this deps node entry to the ...
CodeForGood's user avatar
0 votes
0 answers
314 views

Magento 2.3.5: The content security policy related notices in the browser console after Magento upgrade to 2.3.5

Upgrading to 2.3.5 has lead to hundreds of notices in the front end as seen in the screenshot below. The devdoc explaining the CSP isn't detailed enough to find a solution to this. Can anyone show ...
CodeForGood's user avatar
0 votes
2 answers
1k views

Custom customer attribute not showing on frontend

I've seen this question many times, but all the solutions I've tried didn't work. I've generated a module that creates three custom attributes in customer's information. Since I'm new to Magento (...
user70508's user avatar

1 2 3
4
5
27