Questions tagged [html]

Denotes questions related to HTML code in Magento.

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

Magento 2.4.2: Unable to process binding "ifnot: function(){return customer().fullname }" Message: Unable to parse bindings

The following error is found during the process of upgrading Magento from 2.4.2 to 2.4.4 in console. Uncaught SyntaxError: Unable to process binding "ifnot: function(){return customer().fullname }...
1 vote
1 answer
2k views

Uncaught TypeError: Cannot read property 'innerHTML' of null

We have tried to do a checkout on our website but its not working. When looking into the console, it says the below error Uncaught TypeError: Cannot read property 'innerHTML' of null and its ...
0 votes
2 answers
3k views

Modify the product price in minicart

I try to change the price from minicart with a custom product attribute, but in C:\xampp\htdocs\myproject\vendor\magento\module-checkout\view\frontend\web\template\minicart\item\default.html the ...
0 votes
0 answers
19 views

HTML vs XML in Magento 2

I am trying to edit my theme in Magento 2. I am using the Theme "Fastest", and I am trying to do things such as add background images. I am looking for an HTML file for editing the header ...
0 votes
2 answers
2k views

Set select option default value as first one in Magento 2

Today I am working with select controller, I have tried different ways to set the default value as the first one but can't. For this stuff, I tried below code. Array $colorProductId = array('2' =>...
0 votes
3 answers
1k views

Make image link in static block

I have this static block: <div class="interior-block-slide" style="background-image: url({{media url='wysiwyg/typostores/typologancee/images/home07/vertical-blinds-full- frontend.jpg'}});"> <...
1 vote
1 answer
5k views

Magento 1.9 - style email template

I am trying to apply my custom css in email template. I already done these things. Add inline css to my html <table align="center" style="width:600px; background:#FFF; border:1px solid #CCC; ...
1 vote
3 answers
641 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 ...
4 votes
4 answers
18k views

Defer parsing of JavaScript in Magento

i analyzed my website on Gmetrix.com for for optimization and the result was this: 361.0KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page ...
4 votes
1 answer
1k views

Magento 2 URL rewrite appending .html.html

I've migrated my store from version 1.9 to 2.1.1 using a tool. However all the old products are appending html.html at the end of the URL. I basically truncate the url_rewrite table and saved all the ...
0 votes
2 answers
2k views

Where to Paste the Google Adsense Code in Magento?

I just got my code and need to paste the code into the HTML of the website Right after the tag. I couldn't figure out it. Can you please explain to me where to paste it in Magento? I am pretty new ...
1 vote
1 answer
4k 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
1 answer
114 views

How to override .html and .js files in app/design from my custom module in app/code

Is there any way to override .html and js files present in app/design folder from a custom module in app/code ? I was looking to override app/design/frontend/Vendor/ThemeName/Magento_Checkout/web/...
0 votes
2 answers
270 views

Magento 2 - Get location of view model of knockoutjs .html template

For example, how can I find out where the model / view model for this template is located at? vendor/magento/module-checkout/view/frontend/web/template/minicart/item/default.html
0 votes
1 answer
236 views

Magento 2 - Access has been blocked by CORS policy

With my html2canvas code I'm trying to print on a pdf document an image that comes from an external resource. The image is in the tag. The error it brings me is this: Access to image at 'cdn.site2....
0 votes
0 answers
22 views

Custom Invoice in Magento 2 showing a empty Page and double Taxes

im trying to make a custom PDF-Invoice for my Magento Store. So i edited the invoice.phtml File and did some Changes. Somehow it worked pretty fine, but there are still two problems and i dont know ...
0 votes
0 answers
23 views

loading an HTML page extremely slow

With Magento 2.3.4 version, when browsing the page, it is too slow, it takes 4 to 6 minutes to load the page. I have checked the status of the cache and everything is enabled: > php bin/magento c:...
1 vote
2 answers
35 views

How to locate HTML files associated with the mobile view of a theme?

I installed a Magento theme on my server and wanted to make some changes to the menu within the theme.I am able to view the HTML codes related to the desktop view menu in the block section of the ...
0 votes
0 answers
15 views

How do I wrap divs inside of <a> tag?

I have the following code in Magento, <a href="https://www.example.com" class="learn-link" > <div class="card"> <img src='{{mediaurl=&quot;...
0 votes
1 answer
33 views

Need Solution For Solving The Error

When I opening my site, I'm seeing an error. Screenshot of the error is attached. Anybody can help please?
0 votes
0 answers
20 views

Images not displaying in product tabs

The images that are accessed from a subdomain of the site aren't displaying in tabs. If I copy the URL to a new browser tab, they are accessed without any problem. I'm not sure what is causing this. ...
0 votes
1 answer
241 views

The HTML code is not formatted on frontend page

I am not 100% sure if I am using the correct term for my issue. I wondering why it is showing the elements on our website browser (See Image Example).
1 vote
1 answer
109 views

Customize Checkout Html Templates

Im customizing the checkout of Magento and having some issue in html templates. I copy the cart-items.html from the magento-checkout module in my theme but, when i change the template structure the js ...
0 votes
1 answer
480 views

How to remove disable attribute from a button in form-mini

I'm trying to remove disable from a button in form-mini.phtml but couldn't find a way through jquery/javascript. I know it gets enabled after adding a few characters, but by default, it remains ...
0 votes
3 answers
71 views

Bolding or changing the color of "Continue Shopping Url"

I took the code from inside: vendor/magento/module-checkout/view/frontend/templates/cart/noItems.phtml and i'm overiding it here: app/design/frontendvendor/namespace/module/Magento_Checkout/templates/...
1 vote
1 answer
540 views

what is $parent in knockout Js Templates?

I am unable to understand what is $parent in Magento html templates Especially in the context of detail.html <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for ...
0 votes
2 answers
51 views

If product exist in category, then display HTML

I am trying to display a badge on the product card (category page) and single product page, if the product exist in a certain category. So if the product exist in the category "Chairs" or ...
0 votes
0 answers
19 views

How to erase/comment the middlename and lastname in default-address.html file in the module-costumer

Good day people, I have been trying to erase or comment middlename and lastname in default-address.html, this is the original file, you can find it in : vendor/magento/module-customer/view/adminhtml/...
1 vote
2 answers
69 views

how to pass js window varibles from templates to template files in magento? I want to get system config values in the web folder

I want to pass js window variables from view/frontend/templates/form.phtml to view /web/template/shipping-information.html and view/web/js/shipping-information.js How can I do it? it is because I want ...
0 votes
1 answer
211 views

Magento 2: Generate a HTML or PHP file from controller

I want to generate and download a html or a php file when a controller is called. Any help would be appreciated.
0 votes
1 answer
793 views

How to get window.checkoutConfig value in html file using data-bind

I made my custom delivery method programmatically. It also appears in the Magento 2 admin config section. It is a multi-select field with values of days of the week. In my js file below: define( [ ...
0 votes
1 answer
132 views

Uncaught SyntaxError: Unable to process binding "ifnot: function(){return customer().fullname }"

Upon successful Magento upgrade to 2.4.4 from 2.4.2, I noticed the following error in browser console as site loaded. I don't see any references to this error message on the net nor in SO. Could you ...
0 votes
2 answers
126 views

Cannot Load External JS File on HTML file

Decided to use echarts.js for a specific page in my site. Tried to download the package file on my server and then I tried to include it using a script tag. However, when I open the page I get a ...
0 votes
0 answers
103 views

Jquery code doesn't work when deployed but runs fine in the browser console in Magento cart page

We're trying to just display the text in the code below if the page is the cart page so that visitors are aware that they can add a gift message to their order. Code works fine by displaying the text ...
1 vote
2 answers
565 views

Magento 2: How can we prevent HTML from being shown in the text that comes from en_US.csv file?

In en-US.csv file in our custom theme, I got a translation as below. "We'll email you an order confirmation with details and tracking info.","Within 10 minutes we'll send an email to ...
0 votes
1 answer
28 views

Insert content in product page

I need to insert (via my payment module) html element (div) somewhere (for example under Add to cart button) at product page view. Should I use event/observer, or maybe there is something other? ...
0 votes
2 answers
341 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 [email protected], 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 ...
0 votes
1 answer
39 views

its my html form I have used Ajax in it. now I need to clear the data in the form after submitting it by pressing the submit button

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> &...
0 votes
0 answers
157 views

get result from phtml file to html

I have below code (which is at .phtml page) which echo store view selected and i want to take that value which is echo by below code and display it in an html page. please help how to do that. thanks. ...
0 votes
1 answer
843 views

How to add custom HTML in Product Grid Magento 2?

I want to add custom HTML in Magento 2 Product Grid Column. I have added the column using this : <?xml version="1.0" encoding="utf-8"?> <listing xmlns:xsi="http://...
0 votes
1 answer
23 views

Darken the arrows below the magnified image

Here's a screen shot from the bottom of a product page, magnified image, in Shopify. Please zoom in the image. Notice that the < X > is very faint. Sometimes on some pages, they're almost ...
0 votes
3 answers
349 views

Magento2 convert html to either array or json

Magento2 How can I convert html ul li list that I got from CMS block into Json or array format? Can someone please guide me on that?
0 votes
1 answer
77 views

Magento 2 How add to custom attribute placeholder only on create account page?

I cannot figure out how I can add placeholder for some custom attribute on create account page. In this file: view/frontend/templates/customer/form/register.phtml i see some code which output html for ...
0 votes
1 answer
689 views

Jquery on click event

Can anyone give example for both click and on click event in jquery? I tried this example for on click, but the same function is happening for a click event also, <!DOCTYPE html> <html> ...
0 votes
1 answer
2k views

Magento 2 - Use knockoutjs and html instead of phtml

How can I use html and knockoutjs on a custom site which is accessible from a custom controller? For example my controller route is threepartment/vault/index If I go to: www.example.com/threepartment/...
0 votes
1 answer
221 views

Magento 2.4.2: How to add Yotpo reviews carousel code in specific category pages?

We've been able to display Yotpo reviews carousel on the homepage of our Magento store. But I need to display that also on a few specific category pages. I'm not sure where to add the following code ...
0 votes
0 answers
299 views

How to get cart subtotal and subtotal in checkout shipping page?

I want to show cart subtotal and subtotal on Magento 2 shipping page How to do that? I have extended the file in my child theme but how to get these price details can anyone help me. app/design/...
0 votes
2 answers
2k 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
1 answer
174 views

Magento2: Slow Catalog Pages Loadtime

I have a website built on the top of magento 2, the problem is when I go to any of the catalog pages, the html takes significant time to load for the first time, as shown in the following screenshot: ...
0 votes
3 answers
1k views

How to add if condition in html ko file

Validation field with admin Yes/No config value, so that am adding helper file to get config enable value to validate the field. So i want to call this value with if condition in html ko file. &...

1
2 3 4 5
9