Skip to main content

Questions tagged [html]

Denotes questions related to HTML code in Magento.

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

Magento change Position from delivery with price

Need change position from class="product attribute delivery_time" under class="product-info-price" I'm using the Proto Theme, can anyone help? What do I need to change here, ...
user116249's user avatar
0 votes
1 answer
20 views

Add a div class to all the fields in shipping form in magento2

I want to customize my shipping and billing form in magento one page checkout process and for that I have to add a custom CSS class/div class to shipping and billing form.If anyone have any leads, ...
Tisha Jhanwar's user avatar
0 votes
1 answer
36 views

Magento2 PageBuilder does not support Enter as new Line

I had these type of text in my pagebuilder's HTML element : https://prnt.sc/dqb1EYcPIqgK but in frontend it is showing like this : https://prnt.sc/EGisDha1RV0k can anyone help me?
Mark Philips's user avatar
0 votes
0 answers
11 views

I have a website running on Magento where my account feature does not work on the mobile version of the website

I have a website running on Magento where my account feature does not work on the mobile version of the website. I want it to look like the second picture when I click on the account button. enter ...
Agent zebra's user avatar
0 votes
1 answer
42 views

Exact Path for New phtml File

I am trying to override a core phtml file following the advice in this question How to override .phtml files in Magento 2. I am not able to get it to work and I am wondering in general how the path ...
Jack's user avatar
  • 5
0 votes
0 answers
89 views

How to get CMS page content in JS in Magento 2?

I am using page builder to create cms pages. I require to have a preview button on the cms page. after clicking preview, we store the cms page form data in a separate table. I added one template file ...
Devidas's user avatar
  • 3,358
0 votes
0 answers
24 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 ...
Jack's user avatar
  • 5
0 votes
2 answers
543 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,390
0 votes
1 answer
399 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
  • 493
1 vote
2 answers
49 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
  • 23
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
1 answer
332 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
125 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
  • 341
1 vote
1 answer
166 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
1 vote
1 answer
696 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
95 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
  • 187
1 vote
1 answer
767 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
  • 502
0 votes
0 answers
22 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
184 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
238 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
  • 440
0 votes
1 answer
1k 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
169 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
1 answer
163 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
58 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
111 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
867 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
34 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
49 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
188 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
1k 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
  • 625
0 votes
1 answer
24 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
443 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,586
0 votes
1 answer
829 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
143 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,390
0 votes
1 answer
256 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
304 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
  • 625
0 votes
1 answer
483 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,155
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
1 vote
2 answers
864 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
  • 4,033
0 votes
0 answers
446 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
207 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
1k 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
  • 309
1 vote
1 answer
111 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
894 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
582 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
811 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
90 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/...
Jay Parmar's user avatar

1
2 3 4 5
9