Some developers suggest to avoid ES6 syntax in JS files to keep the entire codebase unified with a single JS standard. After examined vendor folder I saw some modules use es6 (For example vendor/vertexinc/module-tax/view/base/web/js/form/element/custom-option-flex-field-select.js). So, that’s why I have doubts about the statement about avoiding using es6 syntax.
Magento1
I am new in magento2. I have done some changes in a css file and have change the file https://agoshop.at/pub/static/frontend/smart_media/smart_media1/de_DE/css/themes.css on the ftp server. Here my changes: Code: .cathead a.level-top { background-color: #75dbfa; margin-top: 3px !important; color: #000 !important; font-weight: bold !important; font-size: 13px !important; text-transform: none !important; font-family: "Open […]
<?php $_product = $block->getProduct(); $exPrice=$_product->getData('ex_price'); ?> <?php if ($exPrice == true): ?> <div class="note_1"> <p><b style="color: red;">Note:</b> <span style="color: darkblue;">We don't have prices, because the prices depends on the sizes and the quantities</span></p> </div> <div class="product-quote"> <form class="product-qoute-form" action="quote/crud/save" id="my-form" data-mage-init='{"validation": {}}' method="post"> <div style="margin-bottom:10px;" class="row"> <div class="col-lg-12 col-md-12"> <div […]
RazorPay payment issue in REST API. For Paytm, Rest API is working fine. But for razorpay it is showing error. Showing error “message:Razorpay Error: Razorpay Error: Razorpay paymentId missing for payment verification”;
I have updated my Magento 2.3.0 to 2.4.3, all through putty. All went fine, updated, upgraded, compiled, reindexed, cleared cache and everything. The problem is that on front end and backend is not working, and in the report I get this: {"0":"Warning: Cannot modify header information - headers already sent […]
Working on Magento 2.4.3 I am adding a product programmatically and so far it seems to work. The only thing what I am facing is, that Default Stock under Salable Quantity is not shown. See screenshot: If I open the product and just save it without changing something, “Default Stock: […]
I have to edit the SKU with some other data. When I use this rest API below http://localhost.com/rest/V1/orders/1 I get SKU in two places like below. Place one at the first like below "items": [ { "sku": "Test1-20, "store_id": 9, "tax_amount": 795.94, "tax_invoiced": 795.94, "tax_percent": 9.375, "updated_at": "2021-11-17 19:45:18", "weee_tax_applied": […]
In Magento 2.4, I need to load multiple category data. How to load multiple category data by array of category ids?