I have a curl script to send sms. Below is the code. $userId = $this->gupShupConfig->getSenderUsername(); $password = $this->gupShupConfig->getSenderPassword(); $smsApiUrl = $this->gupShupConfig->getSmsApiUrl(); $post_fields = array(); $post_fields["method"] = "sendMessage"; $post_fields["send_to"] = $formattedMobileNumber;//"919820XXXXXX"; $post_fields["msg"] = $smsMessage; $post_fields["msg_type"] = "TEXT"; $post_fields["userid"] = $userId; $post_fields["password"] = $password; $post_fields["auth_scheme"] = "PLAIN"; $post_fields["format"] = "JSON"; $curl = […]
Magento2
Programatically, add a custom field(‘is_vip’) in order. If a customer order value over $150 , the field value will be 1 and in order grid it will show yes.
It shows all products on the search results page even though there’s pagination. But the results are the same for all pages. So the page speed is too slow and sometimes it’s not working. I checked this issue with two databases but it’s working in the old database. I also […]
I have created 2 custom address attributes house name and landmark. From the backend, I can save the values of the attributes and it is shown in the address section. Also I have created fields in the quote_address and sales_order_address tables. But when I use the saved address for the […]
I am using magento 2.4.2-p1. My site is using Salable quantity functionality. I don’t want to use salable quantity and turn this feature off. I only want to use Default quantity. How can i do that. Please help.
I tried to do form validation for a custom form through class and data-validation but no response from both methods. May I know what is the correct way to do it? app/code/MyModule/Knockout/view/frontend/web/js/custom-component.js define(['jquery', 'uiComponent', 'ko', 'mage/validation'], function ($, Component, ko) { 'use strict'; return Component.extend({ defaults: { template: 'MyModule_Knockout/knockout-test' }, […]
On the backend login page and within the backend itself the following files from https://store.example/static/adminhtml/Magento/backend/en_US/ are not being found (404): jquery.min.js, js/theme.min.js, mage/backend/bootstrap.min.js, mage/adminhtml/globals.min.js, Magento_Catalog/catalog/product.min.js, Magento_Translation/js/mage-translation-dictionary.min.js, underscore.min.js, mage/backend/tabs.min.js, and mage/adminhtml/grid.min.js. The .min.js files do indeed not exist within pub/static/adminhtml, but their .js counterparts do. All static files in the frontend […]
is there any way to reload the payment Methods when change Address field. for example if the customer change the Region i want the payment methods to reloaded. as we want to make COD not working in Alaska. “Hide COD when select Alaska”.
I upgraded from Magento 2.3.4 to 2.4.3-p3. But I cannot see products and categories. here is composer.json { "name": "magento/project-community-edition", "description": "eCommerce Platform for Growth (Community Edition)", "type": "project", "license": [ "OSL-3.0", "AFL-3.0" ], "config": { "preferred-install": "dist", "sort-packages": true, "allow-plugins": { "magento/magento-composer-installer": true, "magento/inventory-composer-installer": true, "dealerdirect/phpcodesniffer-composer-installer": true, "laminas/laminas-dependency-plugin": true, […]