Questions tagged [html]

Denotes questions related to HTML code in Magento.

Filter by
Sorted by
Tagged with
0 votes
2 answers
145 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
Black's user avatar
  • 3,100
0 votes
1 answer
177 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....
Jackom's user avatar
  • 421
0 votes
0 answers
20 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 ...
Tom's user avatar
  • 1
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:...
Donaldo Manzano's user avatar
1 vote
2 answers
28 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 ...
Hirun's user avatar
  • 13
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;...
Alexzhang's user avatar
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?
Sufyan Ahmed's user avatar
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. ...
CodeForGood's user avatar
0 votes
1 answer
208 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).
Dahhhhve's user avatar
0 votes
1 answer
110 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/...
Rejith's user avatar
  • 179
1 vote
1 answer
85 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 ...
Lukan Dos Santos Pinto's user avatar
0 votes
1 answer
422 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 ...
Sara Whitmore's user avatar
0 votes
3 answers
65 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/...
Head's user avatar
  • 125
0 votes
1 answer
447 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 ...
Mehran's user avatar
  • 472
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/...
Jesús Iasenzaniro's user avatar
1 vote
2 answers
32 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 ...
Mohmad Ashik M A's user avatar
0 votes
1 answer
205 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.
mechanic's user avatar
  • 350
0 votes
1 answer
703 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( [ ...
Muhammad Muiz Ather's user avatar
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 }...
CodeForGood's user avatar
0 votes
1 answer
117 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 ...
CodeForGood's user avatar
0 votes
2 answers
122 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 ...
Eddysanoli's user avatar
0 votes
2 answers
50 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 ...
Mathias Beck's user avatar
0 votes
0 answers
102 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 ...
CodeForGood's user avatar
1 vote
2 answers
480 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 ...
CodeForGood's user avatar
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? ...
devzby's user avatar
  • 1
0 votes
1 answer
35 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"> &...
fathima umaima's user avatar
0 votes
0 answers
146 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. ...
nkosinathi nxele's user avatar
0 votes
1 answer
767 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://...
Prits's user avatar
  • 626
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 ...
CodeForGood's user avatar
0 votes
3 answers
317 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?
Arjun's user avatar
  • 3,526
0 votes
1 answer
646 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> ...
Sweety's user avatar
  • 1
0 votes
1 answer
63 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 ...
David Young's user avatar
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/...
Black's user avatar
  • 3,100
0 votes
1 answer
212 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 ...
CodeForGood's user avatar
0 votes
0 answers
283 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/...
Prits's user avatar
  • 626
0 votes
1 answer
377 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!
Haider Mohammed's user avatar
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. &...
User0434's user avatar
  • 1,123
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!
totneschap's user avatar
0 votes
2 answers
552 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\...
Attila Naghi's user avatar
  • 3,863
0 votes
0 answers
401 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=&...
Manjunath's user avatar
  • 177
0 votes
1 answer
162 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: ...
Eng7's user avatar
  • 101
0 votes
2 answers
798 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 ...
lucas's user avatar
  • 307
1 vote
1 answer
87 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 ...
Frank Tobi's user avatar
0 votes
3 answers
606 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. [
Haider Mohammed's user avatar
1 vote
0 answers
464 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=&...
Vx0's user avatar
  • 11
0 votes
1 answer
644 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="...
Frank Tobi's user avatar
0 votes
1 answer
75 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/...
Joy Poly's user avatar
  • 501
0 votes
1 answer
98 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 ...
coding ev's user avatar
0 votes
1 answer
701 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/...
Noty's user avatar
  • 66
0 votes
1 answer
584 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 ...
Jackom's user avatar
  • 421

1
2 3 4 5
9