Questions tagged [html]

Denotes questions related to HTML code in Magento.

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

How to pass text input value to js in magento 2 knockout js?

In my template.html file, I am having only the input field. After I complete entering the text in the input field, I need to pass the value to the js file without any button click. How to achieve this ...
0
votes
0answers
18 views

Magento 2 - Wrap additional HTML around product final price tax (EXC/INC VAT)

I'm wanting to add an additional span around 'EXC VAT' so that it can be styled smaller. So: <span class="price">£99.99 (Exc. VAT: £83.33)</span> Would become: <span class="price">...
2
votes
1answer
50 views

How to call knockout functions from html (Magento 2)

I have functions defined in my knockout js, define([ 'Magento_Ui/js/form/form', 'ko' ], function (Component, ko) { 'use strict'; function viewedProducts() { let rvp = JSON....
0
votes
0answers
11 views

How do I add HTML code inside below script type “x-Magento”?

How do I add HTML code inside below script type <script type="text/x-magento-init"?> for example, if I have a bunch of HTML code like below, are they work as same as javascript? <div>...
1
vote
0answers
14 views

How to Show ONLY Products Created within a Week on Homepage Category Block

<div class="product-tab-carousel">{{widget type="Codazon\ProductFilter\Block\Product\ProductsList" display_type="all_products" products_count="16" order_by="sold_count DESC" show="thumb,name,sku,...
1
vote
0answers
24 views

How to print an HTML Table multiple times inside a custom email template in Magento 2?

In custom email template placed at: Vendor/Module/view/frontend/email/custom_email_template.html I have a table which prints structure of a giftcard in email, For Example like this: and table ...
1
vote
0answers
34 views

Magento 2 : Empty html tag in theme

I am working in the home page on the theme and it generates empty strong tags How can I find and remove it Any helps? Thank in advance.
2
votes
1answer
41 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:...
1
vote
1answer
19 views

Translate test inside div in magento 2?

I have this piece of code inside app\design\frontend\Company_name\porto_base_child\Magento_Checkout\web\template\shipping.html <div id="poboxmessage" style="display: none; color: red;">...
1
vote
1answer
38 views

Can I change the extension from .HTML to .phtml?

I've got a custom payment module. I've .HTML checkout button page in this path. \app\code\vendorName\moduleName\view\frontend\web\template\payment\vendor.html Can i change .phtml instead of .HTML
1
vote
1answer
178 views

Magento 2 - How to print array values in custom html email template by looping?

I want to print multiple coupon/gift codes in the custom email template. I am getting a single code as: $templateVars = array( 'store' => $this->storeManager->getStore(), '...
0
votes
2answers
65 views

Magento 2 - Add Class to ReferenceBlock

I need to add a new class to a referenceBlock, specifically the nav items in the Account Page. <referenceBlock name="customer-account-navigation-account-link"> <arguments> ...
0
votes
1answer
177 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 ...
2
votes
3answers
146 views

Magento2.3: How to upload profile picture and show it on My Account dashboard?

We have customized the My Account dashboard with our own design. Now we wanted to implement the profile picture option while the customer do the registration. After the registration, in My Account ...
0
votes
0answers
34 views

Magento custom form with module Step By step by step

I am new in this field... and I want to learn... Please help me how to create simple form in Magento 2.0.
0
votes
0answers
10 views

How to make the content inside “gift options” be open when entering the cart?

Hi I´m editing this file: vendor/magento/module-gift-message/view/frontend/web/template/gift-message.html Is there a way to make the content inside the div with the class "gift-item-block" opened by ...
0
votes
1answer
38 views

How to remove .html suffix?

I have a running store with around 600 products and wanted to remove the HTML suffix from my URLs. I removed the HTML in the config and reindexed. All HTML pages are being redirected to the non-HTML ...
0
votes
1answer
16 views

Magento Calendar 1.9 show alert display its saturday n day on select date

function setcal(n) { var dated = document.getElementById('inspectiondate' + n).value; Calendar.setup({ inputField: "inspectiondate" + n, ifFormat: "%Y-%m-%e", showsTime:...
0
votes
2answers
46 views

BX-Slider is not working

I have implemented the BX slider to one of my module. After implementing the BX slider, I can see the script and CSS for BX-slider have loaded when i look into the developer tools. However, the Bx ...
0
votes
1answer
45 views

One page checkout html file

In one page checkout i need to find html file for the address block. Please can someone help me with that. I want to put first name and last name together in a div.
1
vote
0answers
32 views

How to use jquery function date time picker in magento 1.9

<script> jQuery(function() { jQuery(document).ready(function() { jQuery(".date").datepicker(); jQuery(".date").datepicker({ onSelect: ...
1
vote
0answers
20 views

Magento 2 how to add date of birth in checkout (date picker)

I want to add the date of birth date picker in checkout only for guest users. I have read a few things which indicate that I have to use knockoutjs. But I wasn’t sure what is the correct way to ...
0
votes
0answers
8 views

How to style given HTML with css to style like the screenshot attached below?

<div data-role="content" class="filter-options-content Size opt_id_3" role="tabpanel" aria-hidden="false" style="display: block;"> <ol class="items"> <li class="item"> ...
0
votes
0answers
26 views

Magento 2: CouldNotSaveException with html parsed

I am using Magento\Framework\Exception\CouldNotSaveException $message = "International Shipping is not available for the following product(s): "; foreach($nonEligibleProducts as $product){ $...
1
vote
1answer
28 views

How can I add custom HTML to an extension config page?

I am trying to add an HTML snippet to my extension's config page. I believe I need to create a block file and then reference this inside my extension's system.xml file using a <frontend_model> ...
0
votes
2answers
29 views

Include Cache in Magento2 module with using block

I have a block where I use as a slider in my home page, but it is not curling and I need it to do. The module I use is the Slider. Would there be a way for me to force caching the module?
0
votes
1answer
61 views

Cannot validate email - MAGENTO api - how

I've been trying without success to validate the email from my website against the MAGENTO customers API and throw a message (exist or not exist) I mean, i have a website where customers are created; ...
0
votes
3answers
369 views

Parse php plain text to html Magento 2

I have a string HTML and have to convert(parse) it to HTML in PHP. $stringHtml How to convert this to HTML so that it all <p>, <br> tag works this is Riskified decline email, and ...
1
vote
1answer
24 views

How to set an anchor tag in Customer/controllers/AccountController.php in Magento 1.9?

I have set anchor tag for that, but anchor tag is not working. How to set an anchor tag? Please suggest. Thank you.
0
votes
0answers
10 views

How to get the price of this JSON products to be exibihited on my html in a dropdown list?

I have this JSON table that I need to add on my HTML as a dropdown list and when the chosen product is selected, it shows its price and shows a button to simulate a shopping procedure (increase items ...
0
votes
1answer
61 views

How to make City optional?

I wanna make City optinal. I was made in JS a Dropdown so i can select the city. I put "city" textbox in display:none in CSS and next, copy onchange the dropbox text into this city textbox so the ...
3
votes
1answer
45 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 ...
0
votes
0answers
45 views

How to modify the content of this DIV?

I need to modify the content of this div. To be exact, I need to change the conntent where it says <?php echo $html ?> However, I don't know where to find the content. The file path is: src/...
0
votes
1answer
50 views

Magento 2 set page title as html

How to set page title to have html on it E.G $this->pageConfig->getTitle()->set(__('Your'.html_entity_decode(' <span>Page</span>'). 'Title')); That's ain't working! Anyone know ...
3
votes
0answers
21 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 ...
0
votes
0answers
18 views

Minify HTML,JS,CSS - Some Resources not minified

After turning on Minification from configuration (Admin side). Changed mode to Production Mode. While checking in page speed insights that some of HTML,JS and CSS showing as not minified. Given below ...
0
votes
0answers
111 views

How to get url parameter in knockout js in checkout/index/index/#payment page

I am trying to replace my custom payment method's button called "submit request" to "place order" button when the status is approved. I send status in URL parameter and now want to get it in knockout ...
0
votes
0answers
39 views

Magento 2 | how to use html_entity_decode

The use of html_entity_decode(); is forbidden What can I use instead of it?
0
votes
0answers
39 views

How do I override an html file located in the admin seccion? [duplicate]

I'm using the new Magento 2.3 pagebuilder and i'm trying to add a "span" tag inside a button of the banner/poster of the pagebuilder. I found out where I can change the pagabuilder view on my ...
1
vote
2answers
41 views

Cache Issue on mobile and desktop

facing the cache issue. Cache Clean issue - HTML/CSS changes are not reflected on normal browsers. It shows in private or Incognito window. We can't tell each customer to open the website in ...
0
votes
0answers
22 views

magento 1.9 product tabs html for mobile

i want to update tabs html for mobile in magento 1.9 but i cant find the html where tabs html in genrated? if any one know please help me $this->getChildHtml($_tab['alias']
0
votes
1answer
38 views

Magento2 production mode error magento2.1

I got below error on my category pages and product pages after setting minify html to yes: Parse error: syntax error, unexpected ‘<‘, expecting end of file” magento2 production mode What should ...
1
vote
2answers
372 views

Overriding shipping.html file in custom module

I am trying to override shipping.html file to my custom module, but it's not working for me. requirejs-config.js var config = { paths: { 'Magento_Checkout/template/shipping': "...
1
vote
1answer
67 views

Unknown UL LI tag broke the layout

I got this annoying issue: that's unwanted spaces thats caused by unknown HTML: My question is how to remove that unwanted annoying html (UL/LI) from home page? Thanks
1
vote
1answer
30 views

Find the block class instantiated into a phtml file

I need to modify a block class called in a phtml file, this is the customer.phtml file: <?php // @codingStandardsIgnoreFile ?> <?php if($block->customerLoggedIn()): ?> <li ...
1
vote
0answers
104 views

How to make new column through foreach loop in html table

I want to make one column with three rows after that second and third column should be made. With this code, only one column is being created. $i = 1; foreach($array as $a => $v) { if(empty($...
0
votes
1answer
10 views

How can I erase the “also please add” text in this website

I'm trying to edit the home page of this website and until now I have been able to find most of the .phtml files but I haven't been able to find the file or menu that has this text at the end of the ...
3
votes
2answers
64 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-...
2
votes
2answers
50 views

find the ul tag inside header

I need to find the template or layout file that contains this ul tag: <ul class="header links"> <li class="greet welcome" data-bind="scope: 'customer'"> <!-- ko if: ...
1
vote
1answer
117 views

Cannot find the register link phtml file

I enabled the path template suggestion and It doesn't show the path for the 'Create an account' link. Reading the html home page source I've saw these tags: <ul class="header links"> <li ...