2
You can create and Custom Module or can use your custom theme to implement your requirement.
I assume your using a custom module and I also assume your Custom Module Name is Company_CheckoutCustomtext
You can follow the steps as described below.
step 1)
Create checkout_index_index.xml under YOUR-MAGENTO-ROOT/app/code/Company/CheckoutCustomtext/view/...
2
You should do that.
<!-- ko if: totals()['subtotal'] < 29.95 -->
<span class="shipping-cost"><!-- ko i18n: '$ 5,95' --><!-- /ko --></span>
<!-- /ko -->
<!-- ko if: totals()['subtotal'] > 29.95 -->
<span class="shipping-free"><!-- ko i18n: 'Free' --><!-- /...
2
You can use this line to remove email tooltip text.
unset($jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['customer-email']['tooltip']);
Instead of using this..
unset($jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['...
1
Download module from GitHub and make changes as per requirements.
Magento2 Checkout Custom Form
1
When you add any custom field in Checkout Page need to add data in mainly two tables.
quote
sales_order
For more understanding download module from GitHub and make changes as per requirements.
Magento2 Checkout Custom Form
1
Depends entirely on the setup of your extension
See here for example
https://github.com/DominicWatts/OrderComment
I add an attribute but also I add a column to the sales order grid and the value set at checkout is transferred
This process is quite involved. Try to understand as much as you can from my extension. See setup and observer event.
Once the ...
1
As you have using phtml and want to get checkout page, then below code
location.href='<?= $block->escapeJs($block->getUrl("checkout"));?>'
Instead of
location.href='https:/'+'/'+location.hostname+'/checkout/#shipping'
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
checkout × 3115magento2 × 1370
magento-1.9 × 452
onepage-checkout × 347
cart × 313
magento-2.1 × 193
payment-methods × 158
knockoutjs × 145
shipping × 138
shipping-methods × 127
shipping-address × 115
magento-1.7 × 107
orders × 105
payment × 104
javascript × 103
magento2.2 × 80
customer × 77
billing-address × 74
paypal × 73
event-observer × 72
magento2.3 × 69
onestepcheckout × 69
php × 65
layout × 64
magento-1.8 × 59