Questions tagged [html]

Denotes questions related to HTML code in Magento.

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

I created two dynamic fields in admin but one of them not working in Magento 2?

Here I set two dynamic fields in one configuration but second dynamic field does not work My system.xml file <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
12 views

Billing address checkbox replace add button in magento 2

Checkbox hide and button click checkbox check and unchecked in billing address in magento 2.4 app/design/frontend/Vendorname/Themename/Magento_Checkout/web/template/billing-address.html <!-- /** *...
0
votes
1answer
18 views

adding tag to a specific page

hello everyone i have added a specific tag to all page of my website , but I want to add it to just the home page , can i achieve that ? i have added the meta tag like below, but it appears on all ...
0
votes
1answer
28 views

How to override adminhtml html file

I need to overwrite the file vendor/magento/module-customer/view/adminhtml/web/template/default-address.html. I have tried creating a custom module and adding the file in app/code/myvendor/mymodule/...
0
votes
1answer
21 views

Magento 2 - Set the maintenance mode with the custom page

I am about to make a server switch for my site https://www.magento2.com from Apache to Nginx and during for this operation i want set up maintenance mode. The server where I want to set up this mode ...
0
votes
0answers
17 views

Breadcrumbs showing special characters on product page

I have a magento 2 site , when I search with something like this "3227 / 1025496" on category page looks fine while when I open the product page it shows like this any idea? Thanks in ...
0
votes
0answers
27 views

How to make radio button active on load?

I have a few radio buttons on the checkout page, I want one of them to be checked on page load. How can I do that? <input type="radio" name="payment[method]" ...
0
votes
1answer
91 views

How to override model-popup.html magento 2.4.0

How to override modal-popup.html h1 tag replace span tag. vendor/magento/module-ui/view/base/web/templates/modal/modal-popup.html <h1 id="modal-title-<%- data.id %>" class=...
0
votes
1answer
91 views

Global Payments Realex 511 Redirect Issue Magento 2.2.2 HPP

I am using this module for Global Payments / Realex Payments for Magento 2.2.2 store form Magento Marketplace "name" : "realexpayments/hpp", "description" : "A ...
0
votes
0answers
13 views

HTML Map Tag in Category Description Not working

Summary: I have a graphic map on the top of my Categories to show the relative location of some reefs. I am trying to allow the user to select a reef (product) by clicking on the red X on the map. ...
0
votes
1answer
19 views

Website is in HTML

I am getting this error when I am trying to login in to the HTML website. Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'clubma_dbaytxf.customer_entity' ...
2
votes
1answer
23 views

HTML files not being overwritten in app/Design

I'm trying to override html files the same way that I would override a phtml file, but it doesn't seem to be working. Same with Javascript. I'm trying to change some logic in minicart.js. I put my ...
1
vote
0answers
14 views

Magento 2.3: Automatically add HTML tags in a Static Block after save

Automatically adding HTML tags in a Static Block after save When saving static block from admin then after saving static block it is automatically adding HTML tags How can we solve it so that it will ...
0
votes
1answer
17 views

How to wrap .header.content?

I need to wrap .header.content in a . How can I do that using default.xml file? I think using something like that: <referenceBlock name="header-wrapper"> <...
0
votes
0answers
15 views

Maintenance page - display the error

[Magento 2] I have a maintenance page which appears on some order view (eg: xxx/sales/order/view/order_id/123/xxx) on my BO of Magento (but not on all pages). I try to understand what is the issue but ...
0
votes
0answers
17 views

Align left with js

How to write the script that will align the text left if checkmark is set in the form . let section4 = document.getElementsByClassName("rightside")[0]; let task4 = () => {};
1
vote
1answer
171 views

How to open new tab on button click and send post data?

I've been trying to make my button open a new tab, the same way my form is doing but I've discovered that window.open() doesn't work on POST requests. SO, is there any other way I can make my button ...
0
votes
0answers
41 views

Receiving checkbox status as Yes or No on a custom form to an email template

I am new to php and html and trying my hands on the below code where I have a custom form as shown in below SS and once customer submits the form I need to get the checkbox status as 'Yes' if the ...
1
vote
1answer
69 views

M2: Using small PHP script in .html file (or) Changing .html file to .phtml

We are running into an issue where we need to run a little php script within a .html file in Magento 2, namely; /app/design/frontend/CleverSoft/core/Magento_Checkout/web/template/minicart/content.html ...
0
votes
0answers
32 views

How to add show/hide link for fields?

Question from new in Magento. I have configurable product (magento2.4) and I need to add show/hide link or button on product page which hides field 1 (input) and shows field 2 (input) and on next ...
0
votes
1answer
13 views

How to get Html post request value in Controller?

I've been trying to send the SKU of the product from the product page to another page so I can integrate it with an API. Here's my code phtml code: Here's my Controller code: For some reason I can't ...
0
votes
0answers
31 views

How to change HTML of Categoty Page in Magento 2?

how can i change the layout of Category page in Magento 2 Like to change some HTML in category page. i want to show product in full width and want to show price filter just above of product listing ...
1
vote
0answers
24 views

cms blocks removing content after save in magento 2?

cms block break html tags after saving data. it is removing url of image and display like this <div class="col-sm-12 col-xs-12"> <a href="#"> <img class="...
0
votes
1answer
32 views

How to get Base Url in Checkout Html FIle in Magento 2?

I have create a new step in checkout form Magento 2. I want to get base Url in my .html file like http://127.0.0.1/magento How will i get that? Any help is appreciated.
0
votes
0answers
24 views

How to move the Pincode checker extension above Add to cart button on product page

I am developing the website called cravestore.in in Magento 1.9.4. I want to move my Pincode Checker extension above the add to card image like image#2. I was able to do that from inspect element but ...
0
votes
0answers
40 views

Download or save page as HTML on Button click

I want to download or save the page as an HTML when someone clicks on the Download button or link. Please check the below code. <button class='download'>Download</button> <a href='#' ...
0
votes
1answer
29 views

Magento 2.3.4: Is there an alternative tag to “area” to meet AMP requirements for my store home page

Google Search Console identified the tag "area" in the HTML of our Magento store home page. The HTML is as seen below. Is there an alternative to this tag so as to fix the Accelerated Mobile ...
0
votes
1answer
124 views

where may I add google-site-verification?

I have a html file, where and how can I add it to make it work?
0
votes
0answers
8 views

Need to change customer account side tabs layout Vertical Layout to horizontal on top.Magento 2.3

I need to change the My Account section side tabs layout (Vertical to Horizontal) and wanted to add on top before the My Videos Label. Please Help me to change this layout.
0
votes
1answer
29 views

Magento 2.3.5: How to get csv from the WEB directory of Module?

I want to get csv file from web folder of custom module in magento 2 so how can i do this. please help me. Thanks In Advance.
0
votes
1answer
23 views

Use phtml in stead of html for emails in magento 2

Im overwriting the template vendor/theme/Magento_Email/email/header.html I want to add php in this template. Is there a way to include a template in header.phtml? I currently have this which doesn't ...
0
votes
0answers
18 views

Magento 2 Add custom AJAX script in HTML file

I want to add this code inside my html file but it's not working, tried it in phtml file and it works. Can someone tell me how can make it work in html <script> require([ 'jquery', '...
0
votes
0answers
12 views

How can I get values out of html forms on the frontend?

I added a few fields to the signup form, but I needed some additional functionality, so I did it as a uicomponent. I don't know how to get the values into the backend. I have a custom field called &...
0
votes
1answer
41 views

How to show Content Blocks in HTML File in Magento 2

I have created a custom tab in Magento 2 in which the html part is shown by HTML file. Means its extension is (.html). I want to show some blocks in that html file how would i do that.. Infact i have ...
0
votes
0answers
17 views

Need help with a button that is not working. Can anyone help?

So the pin button on our page stopped all of a sudden. Can anyone help? Below is the code with the issue. if (in_array('pinterest',$recipe_sharing_networks)): echo '<div class="...
0
votes
1answer
25 views

Magento 2: How to translate knockout html file for word that contains hyperlink?

I have a text like this: To contact us please email us at joe@mail.com, will be waiting! when the user clicked on the email it will redirect the user to mail link, using phtml i can easily achieve it ...
1
vote
0answers
28 views

Magento 2.3 How add additional links in tag <head>?

How to add information to the tag, please tell me?! I want to add .phtml file I can change the class along this path and add this way, but it seems to me that there is another way Magento\Framework\...
0
votes
0answers
19 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 ...
0
votes
0answers
36 views

Override tax.html

I would like to edit tax.html, the file with the path: vendor\magento\module-tax\view\frontend\web\template\checkout\cart\totals\tax.html Of course, I can't edit the core file, so what is the best ...
0
votes
1answer
73 views

Magento2: How to get country list in custom HTML template

I need to display a country list with dropdown in the custom knockout HTML template. Help would be appreciated.
0
votes
0answers
18 views

Magento 2.3.4: Buttons do not have an accessible name

web.dev reports an issue that "buttons do not have an accessible name" on the catalog pages. The catalog page appears to only have Add to Wishlist and Add to Cart buttons. How do I fix this ...
0
votes
0answers
18 views

Update/overwrite Third party module which is installed in vendor folder

I have two extensions installed via composer and that is in vendor folder. I have done some customisation on those modules ie: updating the files in the vendor/mymodule/ folder. Now after a Magento ...
0
votes
0answers
37 views

Magento 2 - Change format of authentication-popup.html

I overridden authentication popup of Magento 2 in my custom theme. I discovered that the file that is called for the popup is with the extension .html (authentication-popup.html). This way I can't add ...
0
votes
1answer
28 views

How to set color to a Smarty variable?

I got a piece of code as seen in the image below in a Smarty template outputting the payment method. Please help me a find a way to set color "red" only to the value of "{$search_results_list[...
0
votes
1answer
1k views

Magento 2 : Calling a JS function from another JS file?

This Accessing a JS function from another JS file solution not mapped on my problem ,Please give me direction that how can i call getPureValue: function () from tax.js into some where in minicart.js ...
0
votes
2answers
346 views

Magento 2 Product Grid is Rendering Special Characters as HTML Tags

For some reason my product grid in Magento ver. 2.3.4 (Open Source version) is rendering the special characters & and " as HTML tags. For example creating a product with the name Product name &...
0
votes
1answer
153 views

Magento 1.9 - How to add if-else condition on Sales order email template HTML file?

Following is my sales order email template sample, Docroot = app\locale\en_US\template\email\sales\order_new.html <table cellpadding="0" cellspacing="0" border="0"> <tr>...
1
vote
1answer
3k views

Add custom javascript in afterRender in Magento 2 with knockout

I`m trying to load a custom script after a custom-template for minicart items is rendered. I created a javascript file vendor\module\view\frontend\web\js\test.js: define('jquery', function($) { ...
0
votes
1answer
172 views

Magento2 - Translate title property in knockout js html template

I have href html tag that looks like this in my knockout html template <a data-fancybox data-src="#price_policy" href="javascript:void(0);" title="Shipping Cost" data-bind="i18n: 'Shipping will ...
2
votes
1answer
124 views

Homepage 404 page not found after removing .html suffix in Magento 2.3

I have Magento 2.3 installation on Nginx server. I removed .html suffix from configuration by going to System > Config > Catalog -> Catalog -> Search Engine Optimization Now the categories and ...

1
2 3 4 5
9