API Key Strategy for Authentication

To enable API keys on a collection, set the useAPIKey auth option to true. From there, a new interface will appear in the Admin Panel for each document within the collection that allows you to generate an API key for each user in the Collection. import type { CollectionConfig } from ‘payload’ export const ThirdPartyAccess:… Continue reading API Key Strategy for Authentication

Proposal for RMA-Based Web Application 

The proposed web application will allow customers to easily manage their Return Merchandise Authorization (RMA) claims, track status, and interact with the claims process. Integration with a shopping site and NetSuite RMA flow will streamline the RMA process, making it more efficient for both customers and the administration.  2. Key Features  Customer Authentication:  Login via… Continue reading Proposal for RMA-Based Web Application 

Best and Cost-Effective SMS & OTP Services 

Twilio (SMS & OTP)  Pricing:  Twilio is a leading service provider for SMS and OTP validation.  SMS cost: Typically around $0.0075 per SMS for the US, but rates vary based on country and volume.  OTP: Twilio also offers two-factor authentication (2FA) services for OTPs with competitive pricing.  Pros:  Reliable, easy to use, and has extensive… Continue reading Best and Cost-Effective SMS & OTP Services 

Magento Shipment option Fetch

Fetch Shipment Details Using Magento API After an order is placed and processed, you can fetch the shipment details via the Magento REST API. Endpoint: http Copy code GET /rest/V1/shipment/{shipment_id} Example API Call: bash Copy code curl -X GET “https://yourmagento.com/rest/V1/shipment/25” -H “Authorization: Bearer YOUR_ACCESS_TOKEN” -H “Content-Type: application/json” 2. Fetch Shipments for an Order To fetch… Continue reading Magento Shipment option Fetch

RAM Application Workflow – Web application

Customer Authentication:   Login via SO Number/Contact Number: The customer will be able to log in using their SO number or contact number, synchronised with the shopping site’s/NetSuite database.   New Customer Login can be added with a validation concept.(Purchase Bill or Item Serial Number)  Seamless User Interface: Simple and intuitive design to ensure ease of… Continue reading RAM Application Workflow – Web application

Overriding a WooCommerce Plugin in a Separate Child Theme

Theme Location /wp-content/themes/HighendWP-child/ functions.php <?php function highendwp_child_enqueue_styles() {     wp_enqueue_style(‘parent-style’, get_template_directory_uri() . ‘/style.css’);     wp_enqueue_style(‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘parent-style’)); } add_action(‘wp_enqueue_scripts’, ‘highendwp_child_enqueue_styles’); ?> Steps to Override WooCommerce Templates: Locate the template file inside the plugin Go to: /wp-content/plugins/woocommerce/templates/ Find the template file you want to override. Example: single-product/add-to-cart/simple.php Copy the template file to… Continue reading Overriding a WooCommerce Plugin in a Separate Child Theme

Add Custom Attribute To Recently Viewed Products Widget

here is the solution for overiding the controllers Namespace/Module/etc/di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”MagentoCatalogUiDataProviderProductProductRenderCollectorComposite”> <arguments> <argument name=”productProviders” xsi:type=”array”> <item name=”sku” xsi:type=”object”>NamespaceModuleUiDataProviderProductListingCollectorSku</item> </argument> </arguments> </type> </config> Namespace/Module/etc/extension_attributes.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Api/etc/extension_attributes.xsd”> <extension_attributes for=”MagentoCatalogApiDataProductRenderInterface”> <attribute code=”sku” type=”string”/> </extension_attributes> </config> Namespace/Module/etc/widget.xml <?xml version=”1.0″ encoding=”UTF-8″?> <widgets xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Widget:etc/widget.xsd”> <widget id=”catalog_recently_viewed”> <parameters> <parameter name=”show_attributes” xsi:type=”multiselect” required=”true” visible=”true”>… Continue reading Add Custom Attribute To Recently Viewed Products Widget

Get quantity in stock for items added in cart in JS

In your phtml file : <script type=”text/x-magento-init”> { “#idofyourdiv” : { “yourJSdefinedinRequireJS” : { “data1” : “data1”, “data2” : “data2”, “data3” : “data3”, } } } </script> In your JS : define([ ‘jquery’, ‘mage/translate’, ‘jquery/ui’ ], function ($, $t) { ‘use strict’; $.widget(‘mage.yourjsdefinedinrequirejs’, { options: { data1: data1, data2: data2, data3:data3 }, … …. …… Continue reading Get quantity in stock for items added in cart in JS

Creating a child theme in WordPress

Need to Create an new folder in the themes folder as /themes/ THEMENAME- CHILD here are the two files that be added for creating child theme style.css /*! Theme Name: Highend Child // Theme name Theme URI: https://www.hb-themes.com/themes/highend/ // URI Author: HB-Themes Author URI: https://hb-themes.com Description: Premium Responsive Multi-Purpose Theme Child Theme Version: 1.0.0 Template:… Continue reading Creating a child theme in WordPress