Questions tagged [html]
Denotes questions related to HTML code in Magento.
446
questions
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
267
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="...
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).
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/...
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
479
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
539
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
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
792
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
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 }...
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
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
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
564
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
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
842
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
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
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
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
298
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
1
answer
397
views
How to disable Mega Menu on Magento2 Porto theme
I have one CMS page and I would like to disable the mega menu on it, but not the other pages?
How can I do this?
and I want to disable the buttons that I mention in the picture attached.
Many Thanks!
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.
&...
0
votes
1
answer
16
views
Shared wishlist just displays html
I'm trying to setup up the share wishlist feature, all of the admin settings are correct but the email just sends through a load of html!
0
votes
2
answers
629
views
Magento 2 : Can Not Add HTML Content in Notice Message From Controller
If I go to: \Magento\Customer\Controller\Account\Login::execute
and add this code:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$request = $objectManager->get(\Magento\...
0
votes
0
answers
414
views
Include HTML content from external url in Magento2
I have HTML file which is hosted on other server.
http://testsite.com/test/index.html
which has the content like this(As a example)
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv=&...
0
votes
1
answer
172
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
2
answers
855
views
How to modify magento 2 checkout page login popup?
I'm trying to customize the checkout page and there is a small link so the user can access the account on the checkout page but I can't customize my changes don't reflect on the front end. I don't ...
1
vote
1
answer
93
views
How do I remove the black box border from my magento website?
Please help me, I can not seem to figure out a way to remove the black border box surrounding all my product images and containers.
My website is tucsons.ng
Here is a sample of what I really want gone
...
0
votes
3
answers
684
views
I want to delete marker from my html, css. Its showing on store view
I have marker showing in my slider on store view how can I remove it, I can't find this code in html.
[
1
vote
0
answers
502
views
Magento 2 - Custom Widget Wysiwyg Editor allow html tags
I try to add a wysiwyg editor to my custom widget.
I added the field to my widget.xml
<parameter name="content" xsi:type="block" required="false" visible=&...
0
votes
1
answer
683
views
Using different background images for desktop/mobile display on blocks - widgets
I created a block and a widget in magento 2.4 page top to display as a banner promotion, but i want a different display for desktops and different for mobile.
what i have tried:
<div style="...
0
votes
1
answer
80
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
1
answer
102
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
1
answer
756
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/...