I want to prevent customers from changing their first and last name once they’re registered but I want to allow them to change the password in customer account. I added disabled = "disabled" to first and last name input field: app/design/frontend/Vendor/ctr/Magento_Customer/templates/widget/name.phtml <div class="field field-name-firstname required"> <label class="label" for="<?= $block->escapeHtmlAttr($block->getFieldId('firstname')) ?>"><span><?= […]
Blog
How could I zip all my Magento files excluding non-required to a local setup? I usually run this command below to get all the files but it takes too long and the files are too heavy. zip -r magento2.zip ./* Do you have any suggestions to improve it?
I’m having problems with Paypal, when making a purchase using a coupon, the discount is applied normally and everything works fine, but when choosing the payment (Paypal) I’m redirected to the Paypal page, so far so good, arriving at the page Paypal the total amount is not considering the discount […]
Let me start by saying I’m completely new to Magento. I also hate Magento with the burning passion of 1000 suns. So if I’ve misunderstood something, please bear with me. I’m using Magento 2’s “REST” API (against my will). I can create products, attributes, attribute sets, etc. just fine…but when […]
Given a matrix mat[][] of dimensions N*M and an array target[] of M integers, the task is to check whether any row of the matrix… Read More The post Check if any row of the matrix can be converted to the elements present in the target row appeared first on […]
I have created a custom payment module, and when I click the Place Order button, I need it to run a set of custom javascript functions. To do this, how do I include a custom function from another javascript file into the /view/frontend/web/js/view/payment/ javascript file? Submit Button: <button data-role="review-save" type="submit" […]
Given a ternary string S of length N containing only ‘0’, ‘1’ and ‘2’ characters and Q queries containing a range of indices [L, R],… Read More The post Minimum characters to be replaced in Ternary string to remove all palindromic substrings for Q queries appeared first on GeeksforGeeks.
Given numeric string S of size N and a positive integer K, the task is to find the minimum number of adjacent swaps required in… Read More The post Minimum adjacent swaps required to get Kth smallest number greater than given number appeared first on GeeksforGeeks.
Given an array arr[] of N integers and a positive integer K, the task is to find the minimum number of operations required to reduce… Read More The post Reduce the Array to 0 by decreasing elements by 1 or replacing at most K elements by 0 appeared first on […]