Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [frontend]

Denotes questions related to frontend development, configuration and management

1
vote
0answers
10 views

Magento 2 add a field to front account information tab

I'm trying to add a custom text field to the edit account information page on frontend customer dashboard, so i tried to create a module like this in VendorName\ModuleName\Setup\InstallData.php ...
0
votes
1answer
19 views

Magento2:Get Cart item last added product after adding product to cart

I am using Magento2 I need get Cart item last added product after adding product to cart.If anyone idea reply me,How to achieve this my requirement.
0
votes
2answers
36 views

Magento 2 when I click on frontend my account cannot open and it shows error

I am facing this issue. My XML file is app/code/Prayag/Module/view/frontend/layout/cms_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
3
votes
1answer
40 views

Magento 2.3.0 How to add review form in custom module?

I would like to add a review form in my custom module front end page. On this page, I have displayed several selected products. I want to display a review form in front of each product each review ...
1
vote
1answer
39 views

Magento 2.3.0 How to get product image from order item collection

I would like to get a product image from order items collection. How can I get a product thumbnail image? Below is my custom order item collection code : public function getEmailLogOrders() { $...
0
votes
1answer
16 views

How to remove items count from Compare products link in header

I don't want to remove the whole link from frontend theme I just want to remove a part of the link. I don't know where the file that I should edit it any help?
0
votes
0answers
24 views

magento 2 : How to set custom template in block?

Good Morning Every Body, I tried to upload a custom template with module, but I think If first create a default.xml and add this template in <referenceContainer> block and put in attribute class ...
0
votes
0answers
13 views

Submit button is not working in grouped.phtml. Magento2

I'm overriding grouped.phtml file I add the custom button (Make an Offer) in grouped.phtml file as you can see so when I click on the button it shows me the pop-up Model as you can see in another ...
1
vote
0answers
21 views

Magento2: Getting Error processing request on frontend side

I get an error on my frontend after migrating my database. When I check the logs, I get the following error {"0":"Notice: Undefined offset: -1 in \/var\/www\/aslive\/lib\/internal\/Magento\/Framework\...
2
votes
0answers
31 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 ...
0
votes
1answer
35 views

Decoupled Frontend Architecture and Magento

Is there anyway we can utilize Decoupled Frontend Architecture in Magento. I would like to know if I can utilize this architecture to create Magento modules or convert my existing extensions? Is it ...
1
vote
2answers
71 views

How to get data-mage-init config in our custom magento jquery widget?

I am currently creating custom jquery widget for owl-carousel just to learn how to do it properly in magento-2. I have configured my own module in requirejs-config.js at theme level. var config = { ...
0
votes
0answers
15 views

How to apply coupon on the specific product. magento 2

How can I apply the coupon on the specific product/products my code is public function setCoupon() { // $this->_state->setAreaCode('adminhtml'); // $this->_state->...
0
votes
0answers
24 views

How to get Quantity selected by customer on Product Page. Magento 2

I want to get the Quantity of the product selected by Customer on the Product page And also wan to get Qty and the product price on the Grouped Product explained in the image
2
votes
0answers
21 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?
1
vote
1answer
32 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('...
0
votes
0answers
16 views

How to show image of the Product 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 ...
2
votes
0answers
24 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 ...
2
votes
0answers
21 views

Popup for different products in Magento 2

I have to make a pop-up window under the products on the sales page. Instead of redirecting to ordering, a feedback form should appear. The problem is that I do not know how to tie a pop-up window ...
1
vote
0answers
17 views

How to send Product Image in Mail. Magento 2

I want to send the Product Image in email I'm getting the ID of the product from my custom table now from that ID how can I get the image of the product and send it in the email public function ...
1
vote
0answers
19 views

Show notification message after ajax call

I have my own controller for a customer address delete, so at the end of the controller, I send a notification message to notify the user. try{ $this->_addressRepository->deleteById($...
1
vote
2answers
32 views

How to call custom slider from backend to frontend dynamically in magento2.2.5?

I have created a custom module in backend for uploading image slider in homepage, but I am not able to call in homepage?(frontend). I don't know where I am making mistake. Here is my code. <?php $...
1
vote
2answers
69 views

Nested cache blocks

I have a parent block that has so many child blocks inside it. The parent block has these cache rules: Header: $this->addData([ 'cache_lifetime' => 86400, 'cache_tags' => ['...
0
votes
0answers
28 views

why admin grid not showing in front end in magento 2

i'm working on overriding admin ui filter in custom module https://belvg.com/blog/ui-grid-component-on-the-front-end-in-magento-2.html with referring this blog but only loading css files not ...
2
votes
1answer
28 views

Magento2 : How can I add filters to frontend so it should work like a backend filter?

i'm working on adding custom filter for this custom module i want to add filters (Q_ID,Q_STATUS,Q_PRICE) it would work like back end filter Magento admin how i add filter and any idea's??
5
votes
0answers
152 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 ...
0
votes
0answers
26 views

How to Override Class without Parent Constructor Magento 2?

How to override a class without creating parent constructor? Actually I'm overriding Widget and it works perfectly for 2.2.X versions but for 2.1.X versions it shows me an error Interceptor::...
1
vote
0answers
39 views

Magento 2 - Event after customer edit Account Information

I need to add some custom logic in my extension after Editing Account Information, It should not trigger at Change Password or Edit Address. Will customer_account_edited work. $this->...
1
vote
0answers
23 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 ...
0
votes
0answers
13 views

Why does Magento LESS compiling re-order my code

I have been trying to create a basic grid for my theme. Here's the code .row { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-...
0
votes
2answers
51 views

Magento 2 : Not sure what the problem is but my frontend isn't working

While migrating my database to a new magento installation, I found this error on my frontend. The backend is working normally. `1 exception(s): Exception #0 (Exception): Item (Magento\Catalog\Model\...
1
vote
1answer
44 views

Magento2: broken layout after installing extension and css is missing

I've just installed a plugin and now magento isn't working anymore. Firstly i thought this was due to the plugin but even after disabling/removing the plugin the problem persists.
0
votes
0answers
22 views

Magento 2 Home page cache_invalidate issue

I am working with the Magento2, but recently i am facing the cache_invalidate issue in dubug.log file, but i got the below error message in my home page. also there is no error log in exception.log ...
2
votes
0answers
46 views

How to use dynamic row ui-component for frontend magento2?

How to use dynamic row ui-component for frontend magento2 ?
0
votes
0answers
12 views

fixed decimal qty on certain sku

I'm looking for a way out for some products that they only have certain qty behavior like 0.25kg/0.5kg/0.75kg, is there any method that could help to show this behavior on frontend or if I can check ...
2
votes
2answers
47 views

Extend tier_price.phtml in child theme of a custom theme Magento 2

From: /vendor/magento/module-configurable-product/view/base/templates/product/price/tier_price.phtml To: /app/design/frontend/Mgs/claue_child/Magento_Catalog/templates/product/tier_price....
1
vote
1answer
43 views

Removing CSS as part of custom page layout

I have a custom page layout defined as lf_cms in layouts.xml file, and am trying to remove the css file as defined in default_head_blocks.xml and load a new CSS file, except the CSS changes are not ...
3
votes
0answers
25 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. ...
1
vote
0answers
29 views

Magento 2.1.8 EE unable to update product attribute iin admin

I have a product attribute full_short_description created from admin panel. For already existing products, I am unable to update the attribute value. But if I create a new product, I can change the ...
0
votes
0answers
14 views

pages elements got wrapped

I've received a storefront and trying to make it responsive and add some images and icons. I've a problem of that is the storefront view has unexpected behavior like some element of profile appear in ...
2
votes
1answer
36 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 ...
2
votes
0answers
29 views

How Service Workers can speed up the store?

It may be useful to introduce service workers to increase loading speed? If yes, which resources are the high priority ones? Link to Service Workers docs : https://developers.google.com/web/...
1
vote
1answer
46 views

How to save custom frontend form to database in Magento2.2.5?

How to save custom frontend form to database in Magento2.2.5? Any help would be appreciated
1
vote
1answer
29 views

How to override List.phtml and Block as well

I'm trying to override the List.phtml and its block using preference I tried this <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
0answers
13 views

Grunt CSS compile has stopped working

I had setup grunt on my application and to get it setup I normally just run: grunt clean grunt exec:lfa grunt less:lfa grunt watch Then i'm ready to go and start working on the theme and it worked ...
0
votes
1answer
19 views

magento 1.9 override core block template

I edited these files but I cannot override the default.phtml file, it doesn't work, what's wrong with that? Config.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules&...
0
votes
2answers
49 views

How to get all the Children Categories IDs of the Specific Category in Magento2

I want to get all categories of the specific category for that I tried public function categoryHide() { $data = $this->arrayData(); $save = array(); $objectManager = \...
1
vote
0answers
24 views

htaccess for brotli does not work

I want to add the following code to my htaccess but it does not work. # ---------------------------------------------------------------------- # | Brotli pre-compressed content ...
1
vote
1answer
16 views

Products Not Showing on Front End

I have had this problem for some time now, I import new products using MAGMI and after re-indexing and cache clearing the products do not display on the front end in the respective category pages. ...
0
votes
1answer
30 views

Magento 2: How to add block inside block html content through XML file

I have created my custom arithmetic captcha. I want add that captcha to my custom form through xml file without defining in phtml file on custom layout. For example: Testimonail submit form: ...