Trigger FlowMattic Workflow MegaRabatt

// Author: Sumaiya, Clikup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-25275 function trigger_flowmattic_action_on_landing() { // Get the ‘cid’ and ’email’ parameters from the URL $cid = isset($_GET[‘cid’]) ? sanitize_text_field($_GET[‘cid’]) : ”; // Fetch ‘cid’ and sanitize it $email = isset($_GET[’email’]) ? sanitize_email($_GET[’email’]) : ”; //…Continue reading

Magnifier Glass For Images (copy)

(function() { // Configure these for your website. const containerSelector = ‘body’; // Selector for containers with images const zoomLevel = 2; // Magnification zoom level const glassSize = 100; // Size of the magnifier glass in pixels const borderWidth…Continue reading

Magnifier Glass For Images (copy)

(function() { // Configure these for your website. const containerSelector = ‘body’; // Selector for containers with images const zoomLevel = 2; // Magnification zoom level const glassSize = 100; // Size of the magnifier glass in pixels const borderWidth…Continue reading

Make Blog Post Images Square

function ld_blog_crop_image_width($width) { return 9999; } function ld_blog_crop_image_height($height) { return 9999; } add_filter( ‘et_pb_blog_image_width’, ‘ld_blog_crop_image_width’); add_filter( ‘et_pb_blog_image_height’, ‘ld_blog_crop_image_height’ );Continue reading

Bulk add shipping zone methods

function bulk_update_shipping_zones_vayots_dzor() { global $wpdb; // Define the shipping zones and their corresponding state codes $zones = array( ‘Ագարակաձոր’ => [‘code’ => ‘AG1’, ‘price’ => 9600], ‘Ազատեկ’ => [‘code’ => ‘AR2’, ‘price’ => 11600], ‘Ախտա’ => [‘code’ => ‘AI3’, ‘price’…Continue reading

Payment plan Calculator CSS style

.payment-plans { margin-top: 20px; padding: 15px; background-color: #fff; border: 1px solid #ddd; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .payment-plans h3 { font-size: 20px; font-weight: bold; margin-bottom: 10px; color: #333; width: 100%; text-align: center; } .payment-plan…Continue reading

Payment Plan Calculator

// Register a shortcode to display payment plans with minimalistic design add_shortcode(‘pedro_payment_plans’, ‘pedro_display_payment_plans’); function pedro_display_payment_plans() { // Get the global product object global $product; // Ensure $product is valid if (!$product || !is_a($product, ‘WC_Product’)) { return ”; // Return nothing…Continue reading

modify woocommerce states list

function custom_override_woocommerce_states( $states ) { // Override ‘AO’ states Արարատ. $states[‘AO’] = array( ‘AO1’ => __( ‘Ագարակ’, ‘woocommerce’ ), ‘AO2’ => __( ‘Ագարակավան’, ‘woocommerce’ ), ‘AO3’ => __( ‘Ալագյազ’, ‘woocommerce’ ), ‘AO4’ => __( ‘Ակունք’, ‘woocommerce’ ), ‘AO5’ => __(…Continue reading

modify woocommerce countries list

add_filter( ‘woocommerce_countries’, ‘modify_woocommerce_country_names’ ); function modify_woocommerce_country_names( $countries ) { // List of country codes to keep $allowed_countries = array( ‘ER’, ‘AO’, ‘DZ’, ‘AU’, ‘BD’, ‘BG’, ‘BJ’, ‘BO’, ‘BR’, ‘CA’, ‘CH’ ); // Loop through all countries and remove the ones…Continue reading