Forum Replies Created

Viewing 15 replies - 1 through 15 (of 245 total)
  • Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @robinrsa Awesome, thanks for your reply.

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @beautyofcode Thank you for providing CSS solution, Is there any hook based solution where we can remove the button instead of hiding it.

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    Hi Everyone,

    To address the issue of user accounts not being generated automatically when creating manual orders in WooCommerce, we can use the following code snippet. This code should be added to your theme’s functions.php file or a custom plugin:

    // Check if the request is in the WordPress admin area
    if (is_admin()) {
        add_action('woocommerce_new_order', 'auto_create_user_account_for_orders', 10, 1);
    
        function auto_create_user_account_for_orders($order_id) {
            // Check if the current user has the 'manage_woocommerce' capability
            if (current_user_can('manage_woocommerce')) {
                // Get the order object
                $order = wc_get_order($order_id);
    
                // Check if the user is already registered (based on billing email)
                $user_email = $order->get_billing_email();
                $user = get_user_by('email', $user_email);
    
                // If user doesn't exist, create a new user account
                if (!$user) {
                    // Generate a username based on the billing email
                    $username = sanitize_user(current(explode('@', $user_email)), true);
    
                    // Generate a random strong password
                    $password = generate_strong_password();
    
                    // Create the new user
                    $user_id = wp_create_user($username, $password, $user_email);
    
                    // Set the user role to customer (adjust as needed)
                    $new_user = new WP_User($user_id);
                    $new_user->set_role('customer');
    
                    // Update the order with the user ID
                    $order->set_customer_id($user_id);
                    $order->save();
    				
    				$site_name = get_bloginfo('name');
    
                    // Notify the user with custom login credentials
                    //custom_wc_new_user_notification_email(array('password' => $password), $user_id, get_option('blogname'));
    				custom_wc_new_user_notification_email(array('password' => $password), $user_id, $site_name);
                }
            }
        }
    
        // Custom function to generate a strong password
        function generate_strong_password() {
            // Adjust the password length and complexity as needed
            $password = wp_generate_password(12, true);
            return $password;
        }
    
        // Custom function to override WooCommerce new user email content
        function custom_wc_new_user_notification_email($args, $user_id, $site_name) {
            // Check if the user is already registered (based on billing email)
            $user_email = get_userdata($user_id)->user_email;
    
            // Set default values for subject and message
    
    		$subject = __('Welcome to ') . $site_name;
            $message = sprintf(__('Hello %s,'), get_user_by('ID', $user_id)->user_login) . "\r\n\r\n";
            $message .= __('Thank you for creating an account on our site.') . "\r\n\r\n";
            $message .= __('You can log in to your account using the following details:') . "\r\n\r\n";
    		$message .= '<a href="' . home_url('/my-account/') . '">Click here to log in</a>' . "\r\n\r\n";
    		$message .= '<a >Click here to log in</a>';
            $message .= sprintf(__('Username: %s'), get_user_by('ID', $user_id)->user_login) . "\r\n";
            $message .= sprintf(__('Password: %s'), isset($args['password']) ? $args['password'] : 'YourCustomPassword') . "\r\n\r\n"; // Replace 'YourCustomPassword' with the generated password
            $message .= __('For security reasons, we recommend that you change your password after logging in for the first time.') . "\r\n\r\n";
            $message .= __('Thank you for choosing us!') . "\r\n\r\n";
            $message .= __('Best regards,') . "\r\n";
            $message .= $site_name;
    
            // Send the modified email to the customer's registered email
            wp_mail($user_email, $subject, $message);
    
            // Return the modified email message
            return array($subject, $message);
        }
    
    }
    

    Please make sure to test this code on a staging environment before applying it to your live site. Additionally, it’s essential to have a backup of your site before making any changes.

    Thanks,
    Group of Oceninfo

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @rainfallnixfig Thanks for debugging; after regenerating shop thumbnails in WooCommerce > Status > Tools, it worked as expected.

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @margaretwporg Thanks for your response; I’ve deactivated the outdated plugin (woocommerce-email-control) to ensure everything is updated. All the pending actions run once daily, weekly, or monthly as they must be scheduled, for example, wc_facebook_regenerate_feed, affwp_daily_scheduled_events, and pinterest_for_woocommerce_daily_heartbeat, etc.

    No difference so far. It’s picking up the full-size image instead of the thumbnail (200×120).

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    System Status

    ### WordPress Environment ###
    
    WordPress address (URL): https://localhost/wordpress
    Site address (URL): https://localhost/wordpress
    WC Version: 6.8.2
    REST API Version: ? 6.8.2
    WC Blocks Version: ? 8.0.0
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0.2
    WP Multisite: –
    WP Memory Limit: 2 GB
    WP Debug Mode: –
    WP Cron: –
    Language: en_GB
    External object cache: ?
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.25 (Debian)
    PHP Version: 7.4.30
    PHP Post Max Size: 120 MB
    PHP Time Limit: 250
    PHP Max Input Vars: 2500
    cURL Version: 7.52.1
    OpenSSL/1.0.2u
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.20-MariaDB-1:10.4.20+maria~stretch-log
    Max Upload Size: 120 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.8.2
    WC Database Prefix: wp_
    Total Database Size: 1525.24MB
    Database Data Size: 1184.62MB
    Database Index Size: 340.62MB
    wp_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 2.52MB + Index: 0.44MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 20.55MB + Index: 20.55MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 2.02MB + Index: 1.14MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 1.23MB + Index: 1.33MB + Engine InnoDB
    wp_affiliate_wp_affiliatemeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_affiliates: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_campaigns: Data: 0.17MB + Index: 0.11MB + Engine InnoDB
    wp_affiliate_wp_coupons: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_creatives: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_customermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_direct_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_notifications: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_payouts: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_referralmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_affiliate_wp_referrals: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_rest_consumers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_sales: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_affiliate_wp_visits: Data: 7.52MB + Index: 1.52MB + Engine InnoDB
    wp_allowphp_functions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_braapf_product_stock_status_parent: Data: 0.11MB + Index: 0.06MB + Engine InnoDB
    wp_braapf_product_variation_attributes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_braapf_term_taxonomy_hierarchical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_braapf_variable_attributes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_braapf_variation_attributes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 1.44MB + Index: 0.53MB + Engine InnoDB
    wp_comments: Data: 19.55MB + Index: 10.77MB + Engine InnoDB
    wp_ewwwio_images: Data: 122.63MB + Index: 87.48MB + Engine InnoDB
    wp_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_gf_entry: Data: 37.56MB + Index: 4.03MB + Engine InnoDB
    wp_gf_entry_meta: Data: 21.55MB + Index: 19.59MB + Engine InnoDB
    wp_gf_entry_notes: Data: 1.52MB + Index: 0.19MB + Engine InnoDB
    wp_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_gf_form_meta: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
    wp_gf_form_revisions: Data: 0.13MB + Index: 0.03MB + Engine InnoDB
    wp_gf_form_view: Data: 6.52MB + Index: 6.03MB + Engine InnoDB
    wp_gf_rest_api_keys: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_gmap_poi_db: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailchimp_carts: Data: 0.25MB + Index: 0.00MB + Engine InnoDB
    wp_mailchimp_jobs: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_mdf_query_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mdf_stat_buffer: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mdf_stat_tmp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 15.45MB + Index: 5.05MB + Engine InnoDB
    wp_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_pmxe_google_cats: Data: 0.38MB + Index: 0.00MB + Engine InnoDB
    wp_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_postmeta: Data: 487.98MB + Index: 109.16MB + Engine InnoDB
    wp_posts: Data: 188.08MB + Index: 15.95MB + Engine InnoDB
    wp_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_redirection_items: Data: 0.16MB + Index: 0.16MB + Engine InnoDB
    wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_rg_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_rg_form_meta: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_rg_form_view: Data: 3.52MB + Index: 3.03MB + Engine InnoDB
    wp_rg_incomplete_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_rg_lead: Data: 13.52MB + Index: 2.02MB + Engine InnoDB
    wp_rg_lead_detail: Data: 6.52MB + Index: 9.09MB + Engine InnoDB
    wp_rg_lead_detail_long: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    wp_rg_lead_meta: Data: 0.48MB + Index: 0.58MB + Engine InnoDB
    wp_rg_lead_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_rg_mailchimp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_snp_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_snp_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_socialslider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Data: 0.27MB + Index: 0.20MB + Engine InnoDB
    wp_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 2.52MB + Index: 1.52MB + Engine InnoDB
    wp_term_taxonomy: Data: 2.52MB + Index: 0.06MB + Engine InnoDB
    wp_tinvwl_analytics: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
    wp_tinvwl_items: Data: 0.31MB + Index: 0.16MB + Engine InnoDB
    wp_tinvwl_lists: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    wp_tinvwl_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_usermeta: Data: 4.52MB + Index: 3.91MB + Engine InnoDB
    wp_users: Data: 0.19MB + Index: 0.22MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.39MB + Index: 0.39MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 1.52MB + Index: 0.69MB + Engine InnoDB
    wp_wc_order_stats: Data: 1.52MB + Index: 0.89MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_points_rewards_user_points: Data: 0.11MB + Index: 0.13MB + Engine InnoDB
    wp_wc_points_rewards_user_points_log: Data: 0.33MB + Index: 0.25MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 2.48MB + Index: 2.16MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.23MB + Index: 0.48MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 2.30MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 13.55MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 4.02MB + Index: 0.23MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 6.52MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.38MB + Index: 0.14MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_exported_csv_items: Data: 13.52MB + Index: 0.33MB + Engine InnoDB
    wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpml_mails: Data: 71.52MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 75.61MB + Index: 24.03MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.27MB + Index: 0.41MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.17MB + Index: 0.20MB + Engine InnoDB
    wp_yoast_seo_links: Data: 5.52MB + Index: 3.03MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    advanced_fee: 3
    amn_smtp: 1
    attachment: 67918
    br_product_filter: 6
    cookielawinfo: 40
    dhwc_template: 3
    meta_data_filter: 2
    nav_menu_item: 263
    oembed_cache: 149
    page: 410
    portfolio: 38
    post: 805
    product: 2186
    revision: 333
    salient_g_sections: 1
    shop_order: 8803
    shop_order_refund: 232
    slide: 1
    snp_popups: 2
    tablepress_table: 1
    wc_product_tab: 1835
    wcccf: 3
    wccpf: 1
    wooframework: 215
    wpcode: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (48) ###
    
    AffiliateWP - Recurring Referrals: by Sandhills Development
    LLC – 1.9
    
    AffiliateWP: by AffiliateWP – 2.9.6.1
    AffiliateWP - Affiliate Area Tabs: by Sandhills Development
    LLC – 1.4
    
    AffiliateWP - Allow Own Referrals: by Sandhills Development
    LLC – 1.2
    
    AffiliateWP - Custom Affiliate Slugs: by Sandhills Development
    LLC – 1.2
    
    AffiliateWP - Direct Link Tracking: by Sandhills Development
    LLC – 1.3
    
    AffiliateWP - Leaderboard: by Sandhills Development
    LLC – 1.2
    
    AffiliateWP - Order Details For Affiliates: by Sandhills Development
    LLC – 1.3
    
    Akismet Anti-Spam: by Automattic – 5.0
    Classic Widgets: by WordPress Contributors – 0.3
    GDPR Cookie Consent: by WebToffee – 2.1.2
    DHWCPage - WooCommerce Page Builder: by SiteSao Team – 5.3.1
    GTM4WP: by Thomas Geiger – 1.16.1
    Facebook for WooCommerce: by Facebook – 2.6.22
    Gravity Forms Phone Extension: by ANEX – 1.2.2
    Gravity Forms: by Gravity Forms – 2.6.6
    Gravity Forms Mailchimp Add-On: by Gravity Forms – 5.1
    WPCode - Insert Headers, Footers, and Code Snippets: by WPCode – 2.0.2
    Salient WPBakery Page Builder: by Michael M - WPBakery.com | Modified by ThemeNectar – 6.9.1
    Mailchimp for WooCommerce: by Mailchimp – 2.7.3
    Pinterest for WooCommerce: by WooCommerce – 1.2.2
    Redirection: by John Godley – 5.3.2
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5
    Salient Core: by ThemeNectar – 1.9.5
    Salient Portfolio: by ThemeNectar – 1.7.2
    Salient Shortcodes: by ThemeNectar – 1.5
    Salient Social: by ThemeNectar – 1.2.2
    Salient Widgets: by ThemeNectar – 1.2
    TI WooCommerce Wishlist Premium: by TemplateInvaders – 1.47.0
    WC Duplicate Order: by Jamie Gill – 1.7
    WC Fields Factory: by Saravana Kumar K – 4.1.4
    WooCommerce Admin Custom Order Fields: by SkyVerge – 1.15.2
    Advanced Fees for WooCommerce: by Jeroen Sormani – 1.3.3
    WooCommerce AJAX Products Filter: by BeRocket – 3.1.3
    WooCommerce Checkout Field Editor: by WooCommerce – 1.7.3
    WooCommerce Conditional Shipping and Payments: by WooCommerce – 1.14.2
    WOOCS - WooCommerce Currency Switcher: by realmag777 – 2.3.8
    WooCommerce Email Customizer: by cxThemes – 3.33
    WooCommerce Gravity Forms Product Add-Ons: by Element Stark – 3.3.26
    WooCommerce Points and Rewards: by WooCommerce – 1.7.10
    WooCommerce Social Login: by SkyVerge – 2.11.2
    WooCommerce: by Automattic – 6.8.2
    Wordfence Security: by Wordfence – 7.6.1
    Yoast SEO: by Team Yoast – 19.6.1
    WP Mail Logging: by Wysija – 1.10.4
    WP Mail SMTP: by WPForms – 3.5.2
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.9.6
    
    ### Inactive Plugins (0) ###
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    object-cache.php: Object Cache Pro (Drop-in)
    
    ### Must Use Plugins (1) ###
    
    Object Cache Pro (MU): by Rhubarb Group – 1.15.2
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: ?
    Currency: USD (US $)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 0
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: #112 - /shop/
    Basket: #7 - /cart/
    Checkout: #8 - /checkout/
    My account: ? Page does not contain the [woocommerce_my_account] shortcode.
    Terms and conditions: #773 - /terms-conditions/
    
    ### Theme ###
    
    Name: Salient Child Theme
    Version: 1.0
    Author URL: https://themeforest.net/user/themenectar
    Child Theme: ?
    Parent Theme Name: Salient
    Parent Theme Version: 15.0.2
    Parent Theme Author URL: https://themeforest.net/user/themenectar
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: salient/woocommerce/cart/mini-cart.php
    salient/woocommerce/checkout/form-checkout.php
    salient/woocommerce/checkout/review-order.php
    salient/woocommerce/checkout/terms.php
    salient/woocommerce/content-product.php
    salient/woocommerce/content-single-product.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/admin-cancelled-order.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/admin-failed-order.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/admin-new-order.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-completed-order.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-invoice.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-new-account.php version 3.7.0 is out of date. The core version is 6.0.0
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-note.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-on-hold-order.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-processing-order.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-refunded-order.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/customer-reset-password.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-addresses.php version 3.9.0 is out of date. The core version is 5.6.0
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-customer-details.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-downloads.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-footer.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-header.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-order-details.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-order-items.php
    /wp-content/plugins/woocommerce-email-control/templates/emails/supreme/email-styles.php
    salient/woocommerce/loop/add-to-cart.php
    salient/woocommerce/loop/loop-start.php
    salient/woocommerce/myaccount/form-login.php
    salient-child/woocommerce/single-product/meta.php
    salient-child/woocommerce/single-product/product-image.php
    salient/woocommerce/single-product/rating.php
    salient-child/woocommerce/single-product/tabs/description.php
    salient/woocommerce/single-product/tabs/tabs.php
    salient/woocommerce/single-product/title.php
    salient-child/woocommerce/single-product-reviews.php
    
    Outdated Templates: ?
    					
    					
    						Learn how to update
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page
    
    Disabled Features: minified-js
    settings
    
    Daily Cron: ? Next scheduled: 2022-09-07 06:17:56 +08:00
    Options: ?
    Notes: 102
    Onboarding: completed
    
    ### Social Login ###
    
    Facebook: ? Available
    Google: ? Available
    Twitter: Disabled
    Amazon: Disabled
    Linkedin: Disabled
    Paypal: Disabled
    Disqus: Disabled
    Yahoo: Disabled
    Vkontakte: Disabled
    
    ### TI WooCommerce Wishlist Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 3,316
    Oldest: 2022-08-07 21:44:33 +0800
    Newest: 2022-09-07 11:12:27 +0800
    
    Pending: 8
    Oldest: 2022-09-07 13:31:10 +0800
    Newest: 2022-10-05 18:06:16 +0800
    
    ### Status report information ###
    
    Generated at: 2022-09-07 11:13:20 +08:00
    

    Fatal Error Log: There are currently no logs to view.

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @rainfallnixfig I’ve received the below code from the Salient theme developer, but it’s not making any changes.

    add_filter( 'woocommerce_gallery_thumbnail_size', function( $size ) {
      return array(200, 120);
    }, 99);

    I’ve tested with the Storefront theme and default WooCommerce plugin only, but no change so far.

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    Hello Team,

    As I’ve mentioned earlier we don’t need pricing rules or field rules, we can do this using the below code under functions.php

    // Updating cart item prices conditionally
    add_action( 'woocommerce_before_calculate_totals', 'custom_cart_item_price', 100, 1 );
    function custom_cart_item_price( $cart ) {
        if ( is_admin() && ! defined( 'DOING_AJAX' ) )
            return;
    
        // add product categories to avoid
        $categories = array("uncategorised", "general");
    
        foreach ( $cart->get_cart() as $cart_item ) {
            if( isset($cart_item['wccpf_cost']['user_val']) && ! has_term( $categories, 'product_cat', $cart_item['product_id'] ) ) {
                $cart_item['data']->set_price($cart_item['wccpf_cost']['user_val']);
            }
        }
    }

    Note: Replace wccpf_cost with dynamically generated input name.

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @sarkware Thanks for the response, Instead of the default $1, whatever customer enters in the custom text field should be added to the cart.

    For example, if the customer wants to pay only $2, then it’ll pick up the $2 instead of $1 when the customer enters 2 in the input field. I’ve also tried setting up price rules (see screenshot below) but no luck so far.

    Pricing Rules

    Field Rules

    Please note it was working smoothly in version 3.0.4 without setting any price rules.

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @mycholan Awesome, Thanks ??

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @niklasinpsyde I’ve installed the 1.7.1 version, and it seems the issue is still present, getting a similar message.

    Could not process order. No PayPal order found in the current WooCommerce session. Order status changed from Pending payment to Failed.

    Please note that the Paypal account has received funds.

    Sometimes, a team creates manual orders from the backend and sends a direct payment link (/checkout/order-pay/orderid?pay_for_order=true&key=wc_order_key) to the customer.

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @niklasinpsyde Thank you for your response. Looking forward to the latest update, I’ll keep monitoring the system.

    Group Of Oceninfo

    (@princebhalani143)

    @humanhabitus Did you check your theme settings? Sometimes it’s also controlled by theme settings.

    Reference: https://diviplugins.com/documentation/divi-filtergrid/product-category-archive/

    Group Of Oceninfo

    (@princebhalani143)

    @vitruvian24 You can do that using the below CSS, play with flex-grow and width calculation as per your requirement. Add the below code under your child theme style.css, see screenshot below for the preview.

    .woo-variation-swatches .variable-items-wrapper {
        flex-grow: 5;
        width: calc(100% * (3/4));
    }

    OUTPUT:

Viewing 15 replies - 1 through 15 (of 245 total)