-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: created magic-cart-vanilla.js #509
base: magic_integration_latest
Are you sure you want to change the base?
feat: created magic-cart-vanilla.js #509
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -46,5 +46,6 @@ $cartDataCount = count($cartData); | |||
</div> | |||
<link rel="stylesheet" type="text/css" | |||
href="<?php echo $block->getViewFileUrl('Razorpay_Magento::css/magic.css'); ?>"> | |||
|
|||
<script type="text/javascript" src="<?php echo $block->getViewFileUrl('Razorpay_Magento::js/magic-cart-vanilla.js'); ?>"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type="text/javascript"
is redundant,- Use quick echo
- Add missing escaping.
<script type="text/javascript" src="<?php echo $block->getViewFileUrl('Razorpay_Magento::js/magic-cart-vanilla.js'); ?>"> | |
<script src="<?= $escaper->escapeUrl($block->getViewFileUrl('Razorpay_Magento::js/magic-cart-vanilla.js')) ?>"> |
@@ -1,15 +1,23 @@ | |||
#cart-occ-template { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way you introduce CSS changes is incorrect and does not allow proper customization.
Instead, your changes should be located in web/css/_source/_magic.less
then included in the _module.less
, compiled and minified on the go, instead of causing performance overhead of loading additional CSS files.
@@ -0,0 +1,385 @@ | |||
(function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why you don't use UI Components?
Note :- Please follow the below points while attaching test cases document link below:
- If label
Tested
is added then test cases document URL is mandatory.- Link added should be a valid URL and accessible throughout the org.
- If the branch name contains hotfix / revert by default the BVT workflow check will pass.