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

Magento Show only tier prices for Level Customer- No promotional prices

<?php /**  * Copyright © Magento, Inc. All rights reserved.  * See COPYING.txt for license details.  */ use MagentoFrameworkPricingAmountAmountFactory; ?> <?php /** @var MagentoCatalogPricingRenderFinalPriceBox $block */ /** ex: MagentoCatalogPricingPriceRegularPrice */ /** @var MagentoFrameworkPricingPricePriceInterface $priceModel */ $priceModel = $block->getPriceType(‘regular_price’); /** ex: MagentoCatalogPricingPriceFinalPrice */ /** @var MagentoFrameworkPricingPricePriceInterface $finalPriceModel */ $finalPriceModel = $block->getPriceType(‘final_price’); $idSuffix = $block->getIdSuffix() ? $block->getIdSuffix()… Continue reading Magento Show only tier prices for Level Customer- No promotional prices

Declaring Collection Types in Payload

import { CollectionConfig } from “payload/types”; export type User = {  id: string;  name: string;  email: string;  role: “admin” | “editor” | “user”; // Enum type for roles  createdAt: string;  updatedAt: string; }; const Users: CollectionConfig = {  slug: “users”,  fields: [   {    name: “name”,    type: “text”,    required: true,   },   {    name: “email”,    type: “email”,… Continue reading Declaring Collection Types in Payload

Dew Diamonds Web Application Workflow

PD Order Creation & Approval A new PD order is created in the system. The Sales Supervisor reviews and approves the order. Once approved, the order moves to the Sketch Phase. 2. Sketch Creation & Approval Employees (Designers) create the Sketches based on the PD order. Once the sketches are completed, they are submitted for… Continue reading Dew Diamonds Web Application Workflow