I am trying to generate oauth 1 oauth/token/request for magento 2, I am using the below code $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; $nonce = ''; $maxRand = strlen($characters) - 1; $length = 32; for ($i = 0; $i < $length; ++$i) { $nonce .= $characters[mt_rand(0, $maxRand)]; } $dateTime = new DateTime(); $oauthConsumerKey […]
Magento
I am trying to provide video transcripts for each product video in a magento 2 site. I want to pull the transcript from the “video description” field in the admin area, and I have been somewhat successful, but only for a single video. Here is my code: Transcript.php <?php namespace […]
The reset password is not working, I’m receiving the email, and reset link is working. After entering the new password and submit, it says that the password reset link has expired. I’m using Porto theme. Please find screenshot. Thanks
There are 2 columns on the Index Management page: Status and Schedule status. Could you please provide detailed explanation what does each combination of values mean? For example: Status Schedule status Meaning Ready Idle (0 in backlog) It means: Indexer is ready. 0 not-processed items in changelog. Processing Suspended (0 […]
How could I implement in Magento 2 a http 307 redirect. I would like if possible use Magento methods/framework not phps. Thank you.
Currently, We have 5k Products on our store and we will upload more products on our store. I have just upgraded to 8g Ram 80g SSD 4 vCPUs from 4g ram and others same. Elasticsearch was getting killed after sometimes. now its much more stable after upgrading but it’s still […]
i m struggling with an issue on Magento 2.4.5 creating a custom module on admin. I have created a 2 column ui with a form and listing, which renders a grid on the admin, however, no matter what i have tried, i m not able to pass the initial url […]
<input name="mobile_number" id="mobilenumber" type="number" class="input-text" title="<?= $block->escapeHtml(__('Mobile Number')) ?>" placeholder="<?= $block->escapeHtml(__('Mobile Number')) ?>" data-validate="{required:true,mobile_ksa:true,maxlength:7}"> $.validator.addMethod( 'mobile_ksa', function (phone_number, element) { return this.optional(element) || phone_number.length > 9 && phone_number.match(/^(05)(5|0|3|6|4|9|1|8|7)([0-9]{7})$/); }, $.mage.__('wrong phone number. example: 05xxxxxxxx')); }); the above code i am using for validation it working when i click on button […]
I want to display coupon codes in the sales order grid and the order detail page. Any idea how to do this?