Category: eCommerce
Add products column to the orders list on the Vendor Dashboard
/** * Add the product column to the order table. * * @param array $columns The columns. * * @return array The modified columns. */ add_filter( ‘wcv_order_table_columns’, ‘wcv_add_product_column_table_columns’ ); /** * Add the product column to the order table. *…Continue reading
Show the products column on the WooCommerce orders list
// legacy – for CPT-based orders add_filter( ‘manage_edit-shop_order_columns’, ‘misha_order_items_column’ ); // for HPOS-based orders add_filter( ‘manage_woocommerce_page_wc-orders_columns’, ‘misha_order_items_column’ ); function misha_order_items_column( $columns ) { // let’s add our column before “Total” $columns = array_slice( $columns, 0, 4, true ) // 4…Continue reading
Untitled Snippet
gamroud js
document.addEventListener(“DOMContentLoaded”, function() { const popup = document.getElementById(“popup”); const iframe = document.getElementById(“gumroadIframe”); const close = document.querySelector(“.close”); const buttons = document.querySelectorAll(“.checkoutButton”); buttons.forEach(function(button) { button.addEventListener(“click”, function() { const gumroadCheckoutUrl = this.getAttribute(“data-url”); iframe.src = gumroadCheckoutUrl; popup.style.display = “block”; }); }); close.addEventListener(“click”, function() { popup.style.display…Continue reading
Google AdSense Verification + Auto Ads
Untitled Snippet
Untitled Snippet
Sale Popup
function custom_sale_popup() { ?> Big Sale Coming Soon! Stay Tuned for Amazing Discounts! Learn moreContinue reading
Sample WordPress theme Software Licensing API implementation
/** * This is just a demonstration of how theme licensing works with * Easy Digital Downloads. * * @package EDD Sample Theme */ /** * Load theme updater functions. * Action is used so that child themes can easily…Continue reading