Questions tagged [html]

Denotes questions related to HTML code in Magento.

Filter by
Sorted by
Tagged with
32 votes
4 answers
29k views

How to override a HTML file using a custom module?

I'm developing a custom module for payment method in Magento 2. Currently, I'm using cc-form.html from vendor directory and module working fine. See below path: vendor/magento/module-payment/view/...
Makwana Ketan's user avatar
11 votes
2 answers
22k views

Knockout If-else condition inside html file in Magento 2

I am customizing the shopping cart page, Here I worked knockout js and html code file. I successfully wrote If statement by below code. <!-- ko if: isFreeShipping() --> //My Code goes here &...
Bojjaiah's user avatar
  • 4,028
10 votes
2 answers
3k views

How to hide Magento from CMS detectors?

I have a Magento store and I want to hide it from cms detectors. I mean I don't want anyone to know my website CMS and that my website is built on Magento. There are some websites like http://guess....
Moh3n's user avatar
  • 859
7 votes
2 answers
9k views

Magento 2: Email Templates Template Style is not Working

In Template Content i have put <p class="test">Hi</p> Template Styles i have put .test { font-size: 40px;} Then i have clicked on Preview Template, but it's not applying. I like to ...
Jackson's user avatar
  • 9,849
7 votes
2 answers
2k views

How to add new link on checkout page in Magento 2.2.4?

I have created 1 custom tab on the checkout page and it's working fine I follow below link to add the tab on cart page. Magento 2 - Add step on checkout I want to add a link name as "Create an ...
Kushal Dani's user avatar
  • 2,084
6 votes
4 answers
11k views

Best Way Of Getting Base URL Inside KnockoutJS .html File

How can I get the base URL inside a KnockoutJS HTML file? See file below: app/design/frontend/<Vendor>/<Theme>/Magento_Checkout/web/template/<Filename>.html
Ryan Copeland's user avatar
6 votes
2 answers
570 views

hook into magento's output to the client

I'm quite new to Magento, and i'm looking into the following, wondering if it's possible. at some point magento will need to do some echo'ing to the client, ie. stream it's html data to the client. ...
Marten Sytema's user avatar
6 votes
1 answer
2k views

Allow HTML tags in Bank Tranfer Payment instructions

Default Magento payment method "Bank Tranfer" does not allow using HTML tags in Instructions text. How can I change that?
zekia's user avatar
  • 620
6 votes
1 answer
2k views

What's the difference between element and elementTmpl

In UI components, what's the difference between setting template and elementTmpl in a component's <config/> node? <item name="config" xsi:type="array"> <item name="template" xsi:...
Adarsh M's user avatar
  • 562
6 votes
1 answer
6k views

Magento 2: Overriding Block class – not generating output

I'm trying to override the module-catalog/Block/Product/View/Options/Type/Select.php class with a new version which includes a few other bits of custom php (adding HTML classes and IDs to the ...
MikeMason's user avatar
  • 1,357
6 votes
2 answers
985 views

What is the difference between web/template and web/templates

I've noticed in the core both web/template and web/templates are used: vendor/magento/module-ui/view/frontend/web/templates/group/group.html vendor/magento/module-ui/view/frontend/web/template/...
Ben Crook's user avatar
  • 15.6k
6 votes
2 answers
2k views

Getting HTML of transactional emails

I would like to know if it's possible to get code html of transactional emails before send email to user with template variables etc... I override _sendEmailTemplate and I try to get HTML code in ...
corey's user avatar
  • 191
5 votes
2 answers
3k views

Magento 2: How to change Contact Us Email Type?

magento\vendor\magento\module-contact\etc\email_templates.xml <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ --&...
Jackson's user avatar
  • 9,849
5 votes
4 answers
1k views

How to use $htmlAttributes?

In vendor/magento/module-theme/view/base/templates/root.phtml:11 there is this code: <html <?= /* @escapeNotVerified */ $htmlAttributes ?>> ... </html> It looks like we can use ...
Ben Crook's user avatar
  • 15.6k
5 votes
1 answer
3k views

Adding an ID to the UI-form element

I have the element inside the UI-form: return [ 'arguments' => [ 'data' => [ 'config' => [ 'componentType' => Modal::NAME, '...
Siarhey Uchukhlebau's user avatar
5 votes
2 answers
816 views

Set skin url as unsecure in email template at the backend

Is there a way to set skin url to be unsecure in img tag in email template content at the Magento backend. My tag would be: <img src="{{skin url="images/registration-email/logo.jpg" _area="...
Swetha's user avatar
  • 496
5 votes
1 answer
8k views

Magento Blocks HTML Output cache problem

I have a problem with my Magento website. Because my website was extensively redesigned, notably the home page - I have had the cache disabled on the page for about a month or two. Now I was able to ...
Greg's user avatar
  • 51
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 ...
Moh3n's user avatar
  • 859
4 votes
3 answers
5k views

How to copy a product's attributes value to another attribute?

i want to copy a product's attribute (weight) to another atribute (general_weight). i found this codes, but i don't know what to do with this codes? or where to copy them? $prod=Mage::getModel('...
Moh3n's user avatar
  • 859
4 votes
3 answers
5k views

Change plain text email into HTML email

This is in Magento 1.9.x. I just edited the contents of a transaction email, added some HTML code into it, but the email is still rendering as plain text. How do I make that email into a HTML email? ...
Jimmery's user avatar
  • 1,509
4 votes
2 answers
704 views

How to call rewards block phtml content into minicart section magento 2?

Magento 2 Enterprise, With Magento Reward module, Inside layout file checkout_cart_index.xml file with reward block is defined as below. <block class="Magento\Reward\Block\Tooltip\Checkout" name=...
Rakesh Jesadiya's user avatar
4 votes
2 answers
778 views

How to load a template from a cron?

I have a new cron job collecting data, working with it and so on. Now I want to send a mail with a template from inside that cron job. But first I had to load/render my template file(s). Therefore I ...
Timo.Klement's user avatar
4 votes
1 answer
4k views

Where can I customize the HTML invoice found in the customer's account page?

I know there are extensions to modify the PDF invoices and packing lists. I'm assuming by PDF invoice, they mean the invoices that you can print from the order summary in the admin. However, when a ...
Lucas's user avatar
  • 309
4 votes
3 answers
3k views

ad thumbnail to aw blog posts

im trying to add a thumbnail image to aw blog posts header and into the aw blog sidebar widget next to the each headline i did these: In app/code/community/AW/Blog/Block/Manage/Blog/Edit/Form.php ...
Moh3n's user avatar
  • 859
4 votes
1 answer
2k views

Set minimum order price for a shipping method

I want to set a minimum order amount for a specific shipping method. I want a specific shipping method to get enable when subtotal price of order reaches to the specific price which I had set before ...
Moh3n's user avatar
  • 859
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 ...
roger's user avatar
  • 541
3 votes
1 answer
5k views

How to overwrite lib template file - Magento 2

How can the HTML files from the library be overwritten? I need to overwrite this template: lib/web/mage/gallery/gallery.html I have tried placing the file in my own theme in the below locations, I'...
Ben Crook's user avatar
  • 15.6k
3 votes
1 answer
10k views

how to use cookie-free domains in magento? [closed]

I analyzed my website on Gtmetrix.com for optimization and the result was this: There are 245 components that are not cookie-free: http://mysite.com/media/css/dabf35e7cd79eb387a68eed1d5f3f925.css ...
Moh3n's user avatar
  • 859
3 votes
2 answers
138 views

Custom theme selection

I am new to Magento front end development while creating my custom theme, I have created app\design\frontend\custom\themename and inside that created my theme.xml file. <theme xmlns:xsi="http://...
karthick's user avatar
  • 675
3 votes
2 answers
1k views

How to move Magento 2 Search bar to be centered

Here is my current search bar: And here is my expectation: I still don't understand about how to make centered search bar like that ? here is my html (from inspect element): <header class="page-...
Yusuf Ibrahim's user avatar
3 votes
2 answers
3k views

How to set "Display Product Options In:" to "Product Info Column" by default

How to set Catalog-> Manage Products-> X product-> Design-> Display Product Options In: to Product Info Column by default. i want apply it to all products.
Moh3n's user avatar
  • 859
3 votes
2 answers
5k views

How to add Continue Shopping button in checkout page Magento 2

We are trying to add "Continue Shopping" button after "Next" button in checkout page Magento 2. We found that below file is the .html rendering the content. \vendor\magento\module-checkout\view\...
Krishna ijjada's user avatar
3 votes
2 answers
91 views

Url doesn't work after adding new page [closed]

Today i added a new page on my magento webshop.. nothing special. But after i added that page, everytime i go on another page it adds .html in the Url and it just gives me a empty html page. I didn't ...
jscholten's user avatar
  • 143
3 votes
2 answers
5k views

Get average review star rating score in text

I want to echo the average review star rating of a product in text. Currently it is displayed in width % to display the review stars. But I want to display it like: Reviewscore is 4.7 / 5 How can ...
JGeer's user avatar
  • 1,419
3 votes
2 answers
1k views

Add Google Ads code

I would like to add this Google add code <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- www.duajempol.com --> <ins class="adsbygoogle"...
Renal Yordan's user avatar
3 votes
1 answer
302 views

How to create Account Child... Company, Staff Signup

How do i create and attach a new set of field to a registered account? I need a way to create company accounts and add the company's staff under said account. this way the company can see what each ...
Nxlevel's user avatar
  • 407
3 votes
1 answer
210 views

Strange white-space above header

After implementing among others the Facebook Pixel, there is a strange white-space above the header of our magento website: https://www.oplader.com Does anybody have any idea what this could be? Even ...
Hugo Gerritsen's user avatar
3 votes
1 answer
588 views

Magento Observer And Email Template

I've created a notification email for new order to my supplier directly after the invoice is created. I receive the email but it is empty for information to grab from magento like order id and other. ...
BigBlack's user avatar
  • 133
3 votes
0 answers
33 views

Redirect old page to new html page using .htaccess

We have a static HTML website having MicrosoftDynamics.html page recently we changed to MicrosoftDynamicsNav.html. But when we searched in google the page URL is showing old one, If we clicked the ...
Bojjaiah's user avatar
  • 4,028
3 votes
0 answers
197 views

Magento 2 - setting a container class programatically

How can I retrieve a container from the layout programmatically and then set/update the htmlClass? I would like to be able to do something like the following: $container = $layout->getContainer('...
Sophie Baxter's user avatar
2 votes
3 answers
20k views

How do you change the number of product columns?

I want to change the number of products that are shown. But I don't want to hard code this into the theme. This: <ul class=​"products-grid products-grid--max-4-col first last odd">​…​</ul&...
narzero's user avatar
  • 317
2 votes
2 answers
3k views

HTML tags are not allowed in footer copyright

I just wanted to change my theme config and it gives me this error on Footer Copyright section: HTML tags are not allowed. => Screenshot : But if I make this copyright empty and Save the ...
Mehran Zarei's user avatar
2 votes
2 answers
4k views

I want to change the html of breadcrumb?

I want to change the default HTML and some CSS classes for the breadcrumbs, where is the file for that? I want to know the path where its coming from?
Simmi's user avatar
  • 95
2 votes
1 answer
10k 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($) { ...
Mario's user avatar
  • 453
2 votes
3 answers
5k views

override knockout html template file in theme

I need to add a class to the cart summary table caption. I want to hide the caption by addding the class sr-only (bootstrap): <caption class="table-caption sr-only" data-bind="text: $t('Total')"&...
steros's user avatar
  • 1,622
2 votes
2 answers
4k views

How do I remove the div `col-right sidebar` from the default theme html?

I want to completely remove the div col-right sidebar from the default magento 1.9 theme. I've tried creating a local.xml file containing: <?xml version="1.0"?> <layout version="0.1.0"> ...
narzero's user avatar
  • 317
2 votes
2 answers
2k views

dynamic mail subject not working in Magento 2

I am trying to set the dynamic mail subject, but it is not working. I tried below ways. 1 <!--@subject Product Question : @--> {{ var sku }}<!-- from StoreName @--> <!--@...
Bojjaiah's user avatar
  • 4,028
2 votes
2 answers
858 views

Updating Basket quantity (using ENTER) clears the basket entirely

I have been developing my own site for the last couple of years i am still using Magento 1.8. with a 3rd party theme. I noticed whenever i try to update the quantity of a product in my basket, for ...
Mattee's user avatar
  • 21
2 votes
2 answers
3k views

How to use HTML and CSS on a CMS Page?

I have an e-commerce that runs Magento but we do not have the access to both code and server. We want to create a new page to add some features like countdowns and a form for emails, but even adding ...
magflok's user avatar
  • 23
2 votes
1 answer
3k views

Edit Magento "Product Comparison page" template

I want to customize the product comparison page but i can't seem to find the file that manages this. I'm pretty new to Magento.
Menno's user avatar
  • 93

1
2 3 4 5
9