Dark

Light

Dark

Light

Scroll to top
Amitpal Singh
Posted by Amitpal Singh
October 26, 2020

Remove variable product from cart with ajax in woocommerce

Create the link on cart using the $cart_item_key instead of the $product_id. Then, on server...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 23, 2020

WooCommerce: Get Order Info (total, items, etc) From $order Object

// Get $order object from order ID $order = wc_get_order( $order_id );...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 22, 2020

Custom Elementor Popup

// Add Shortcode function elementor_poup( $atts ) { // Attributes $atts =...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 22, 2020

Woocommerce - Getting the order item price and quantity

## For WooCommerce 3+ ## // Getting an instance of the WC_Order...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 19, 2020

How to add cordova in app browser plugin code inndex.html?

<script type="text/javascript" charset="utf-8"> document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { var ref =...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 19, 2020

Cordova 2020 Quick Checklist

Here is a complete checklist for cordova based application to start. It...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 15, 2020

How to use shortcode with ob_start and ob_end_clean() ?

Now use [shortcodename] like this anywhere in the page or in between...

Read More
Amitpal Singh
Posted by Amitpal Singh
October 14, 2020

Localization of script in wordpress

Now you can use ajax url in js file with variable myajax.ajaxurl

Read More
Amitpal Singh
Posted by Amitpal Singh
October 14, 2020

How to Set Cookie and OTP in php?

You can set otp as cookie and then retrieve to match during...

Read More
Amitpal Singh
Posted by Amitpal Singh
September 8, 2020

How to index html table rows or how to Auto-number table rows?

CSS: Method 1 table {    counter-reset: rowNumber;}table tr { counter-increment: rowNumber;}table tr...

Read More
Amitpal Singh
Posted by Amitpal Singh
August 27, 2020

How to require minimum image upload dimensions condition for Woocommerce Products?

Add this code to your theme’s functions.php file, and it will limit minimum image...

Read More