Forum Replies Created

Viewing 15 replies - 16 through 30 (of 36 total)
  • Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    Hi @bisratlearn,
    The issue is happening on cart page. The way you are testing I have also tested It’s working fine in this way. Kindly go to cart page and remove the product from cart page not from side cart menu check this in this way.
    Moreover, I have cleared the cache and also tested it in a different browser also in incognito. All the plugins are up-dated I have used the astra theme.
    Best Regards,

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    I have contacted my hosting company and the issue is resolved. There was some issue with Wp mailer function that was diabled on server-side.
    By the way thanks for your guidance.
    Regards,
    Kanwal Shahzadi

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    Hi @takayukister,
    Kindly tell me some solution to fix this issue as soon as possible.

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    Hi @bisratlearn,
    I have imported my site to local host and database to localhost phpmyadmin and tested it there and I was successful in proceeding to checkout means on localhost it works perfectly fine. Can you please suggest me something to solve the issue on staging/lie sie?

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    Hi @bisratlearn,
    I have tried all the steps above one by one except:
    Server Configuration
    but the issue is not resolved.
    I am not able to understand what should I do in this situation?

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    Also it’s displaying the error in console like:

    ?wc-ajax=checkout:1

       Failed to load resource: the server responded with a status of 500 ()
    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    Hi @bisratlearn,
    I have tried the following steps to resolve the issue:
    Check for Updates: All my plugins and wordpress are up-to-dated.
    Plugin Conflict:?I have temporarily tried deactivating all plugins except woocommerce but the issue wasn’t resoled.
    Theme Conflict: I have also tried switching my default theme to storefront, but this also didn’t resolved my issue.
    Moreover, I have tried Turn on Debugging: by using :

    define( ‘WP_DEBUG’, true );
    // Enable debug logging to the /wp-content/debug.log file
    define(‘WP_DEBUG_LOG’, true);

    // Disable display of errors and warnings to the user
    define(‘WP_DEBUG_DISPLAY’, true);
    in config.php file but there was no such error that could cause error in proceeding checkout.
    Can you please further guide me to resolve the issue?

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    Here it is

    ` WordPress Environment</p> <p class=””>WordPress address (URL): https://speedcomputers.co.za<br>Site address (URL): https://speedcomputers.co.za<br>WC Version: 8.2.2<br>REST API Version: ? 8.2.2<br>WC Blocks Version: ? 11.1.3<br>Action Scheduler Version: ? 3.6.3<br>Log Directory Writable: ?<br>WP Version: 6.4.1<br>WP Multisite: –<br>WP Memory Limit: 256 MB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_ZA<br>External object cache: – Server Environment</p> <p class=””>Server Info: LiteSpeed<br>PHP Version: 8.1.24<br>PHP Post Max Size: 8 MB<br>PHP Time Limit: 30<br>PHP Max Input Vars: 1000<br>cURL Version: 7.87.0<br>OpenSSL/1.1.1w</p> <p class=””>SUHOSIN Installed: –<br>MySQL Version: 10.6.16-MariaDB<br>Max Upload Size: 2 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database</p> <p class=””>WC Database Version: 8.0.3<br>WC Database Prefix: wp_<br>Total Database Size: 67.51MB<br>Database Data Size: 56.07MB<br>Database Index Size: 11.44MB<br>wp_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_order_itemmeta: Data: 0.09MB + Index: 0.09MB + Engine InnoDB<br>wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_actions: Data: 0.35MB + Index: 0.14MB + Engine MyISAM<br>wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_actionscheduler_logs: Data: 0.22MB + Index: 0.15MB + Engine MyISAM<br>wp_bobsi_tradefeed_audit: Data: 1.52MB + Index: 0.00MB + Engine InnoDB<br>wp_bobsi_tradefeed_product: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_bobsi_tradefeed_product_base: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_comments: Data: 0.08MB + Index: 0.09MB + Engine InnoDB<br>wp_ewwwio_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB<br>wp_gla_merchant_issues: Data: 16.55MB + Index: 0.00MB + Engine InnoDB<br>wp_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mystickymenu_contact_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_options: Data: 4.36MB + Index: 0.17MB + Engine InnoDB<br>wp_postmeta: Data: 20.53MB + Index: 7.80MB + Engine InnoDB<br>wp_posts: Data: 9.52MB + Index: 1.23MB + Engine InnoDB<br>wp_revslider_css: Data: 0.09MB + Index: 0.00MB + Engine MyISAM<br>wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_revslider_sliders: Data: 0.01MB + Index: 0.00MB + Engine MyISAM<br>wp_revslider_slides: Data: 0.04MB + Index: 0.00MB + Engine MyISAM<br>wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB<br>wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_term_relationships: Data: 0.34MB + Index: 0.22MB + Engine InnoDB<br>wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_usermeta: Data: 0.14MB + Index: 0.16MB + Engine InnoDB<br>wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_admin_note_actions: Data: 0.04MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_category_lookup: Data: 0.01MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_customer_lookup: Data: 0.01MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_product_lookup: Data: 0.01MB + Index: 0.02MB + Engine MyISAM<br>wp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_meta_lookup: Data: 0.10MB + Index: 0.19MB + Engine MyISAM<br>wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wpfm_backup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.06MB + Engine InnoDB Post Type Counts</p> <p class=””>acf: 5<br>acf-field: 23<br>acf-field-group: 5<br>attachment: 3791<br>brand_logo: 6<br>custom_css: 1<br>custom-css-js: 1<br>customize_changeset: 1126<br>manufacturer: 1<br>ml-slide: 20<br>ml-slider: 2<br>nav_menu_item: 189<br>page: 31<br>post: 161<br>product: 1534<br>revision: 1042<br>shop_order: 62<br>slider: 2<br>wpcf7_contact_form: 1 Security</p> <p class=””>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (23)</p> <p class=””>Advanced Custom Fields: Repeater Field: by Elliot Condon – 2.1.0<br>Advanced Custom Fields: by WP Engine – 6.2.2<br>All-in-One WP Migration: by ServMask – 7.79<br>bidorbuy Store Integrator: by bidorbuy – 2.12.0<br>Better WordPress Minify: by Khang Minh – 1.3.3<br>Contact Form 7: by Takayuki Miyoshi – 5.8.3<br>Simple Custom CSS and JS: by SilkyPress.com – 3.45<br>Custom Post Type UI: by WebDevStudios – 1.15.1<br>Favicon by RealFaviconGenerator: by Philippe Bernard – 1.3.28<br>Google Listings and Ads: by WooCommerce – 2.5.11<br>Intuitive Custom Post Order: by hijiri – 3.1.4.1<br>Mammoth .docx converter: by Michael Williamson – 1.20.0<br>MetaSlider: by MetaSlider – 3.50.0<br>myStickymenu: by Premio – 2.6.5<br>Product Import Export for WooCommerce: by WebToffee – 2.3.6<br>WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.3<br>WooCommerce Stripe Gateway: by WooCommerce – 7.7.0<br>WP Menu Cart: by WP Overnight – 2.14.2<br>WooCommerce Payfast Gateway: by WooCommerce – 1.5.9<br>WooCommerce: by Automattic – 8.2.2<br>WP Fastest Cache: by Emre Vona – 1.2.2<br>YITH WooCommerce Quick View: by YITH – 1.33.0<br>YITH WooCommerce Wishlist: by YITH – 3.27.0 Inactive Plugins (11)</p> <p class=””>Enable Media Replace: by ShortPixel – 4.1.4<br>In Cache: by WordPress – 2.4.5<br>Loading Page: by CodePeople – 1.1.0<br>Optimus: by KeyCDN – 1.6.3<br>PayPal for WooCommerce: by Angell EYE – 1.5.3<br>Simple Blog Stats: by Jeff Starr – 20231025<br>Simple Google reCAPTCHA: by Michal Novák – 4.0<br>Slider Revolution: by ThemePunch – 5.1.4<br>Smush: by WPMU DEV – 3.15.0<br>UpdraftPlus – Backup/Restore: by UpdraftPlus.Com<br>DavidAnderson – 1.23.12</p> <p class=””>Woocommerce Login / Sign-up Lite: by phoeniixx – 4.0 Settings</p> <p class=””>API Enabled: ?<br>Force SSL: –<br>Currency: ZAR (R)<br>Currency Position: left_space<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)</p> <p class=””>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)</p> <p class=””>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: –<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages</p> <p class=””>Shop base: #188 – /shop/<br>Basket: #189 – /cart/<br>Checkout: #190 – /checkout/<br>My account: #191 – /my-account/<br>Terms and conditions: ? Page not set Theme</p> <p class=””>Name: Speed Computer<br>Version: 10.20<br>Author URL:<br>Child Theme: ?<br>Parent Theme Name: Twenty Seventeen<br>Parent Theme Version: 3.1 – 3.4 is available<br>Parent Theme Author URL: https://www.ads-software.com/<br>WooCommerce Support: ? Templates</p> <p class=””>Overrides: storevilla/woocommerce/archive-product.php version 2.0.0 is out of date. The core version is 3.4.0<br>storevilla/woocommerce/checkout/thankyou.php version 3.2.0 is out of date. The core version is 8.1.0<br>storevilla/woocommerce/content-product.php version 3.0.0 is out of date. The core version is 3.6.0<br>storevilla/woocommerce/content-single-product.php version 3.0.0 is out of date. The core version is 3.6.0<br>storevilla/woocommerce/content-product_cat.php version 2.6.1 is out of date. The core version is 4.7.0</p> <p class=””>Outdated Templates: ?</p> <pre class=”wp-block-code”><code> Learn how to update</code></pre> <p class=””>Admin</p> <p class=””>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-variation-management<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page</p> <p class=””>Disabled Features: customize-store<br>minified-js<br>new-product-management-experience<br>settings<br>async-product-editor-category-field</p> <p class=””>Daily Cron: ? Next scheduled: 2023-11-17 12:42:48 +02:00<br>Options: ?<br>Notes: 194<br>Onboarding: completed Action Scheduler</p> <p class=””>Complete: 452<br>Oldest: 2023-10-16 20:09:24 +0000<br>Newest: 2023-11-16 06:00:36 +0000</p> <p class=””>Failed: 13<br>Oldest: 2023-02-20 13:25:41 +0000<br>Newest: 2023-11-15 11:35:19 +0000</p> <p class=””>Pending: 2<br>Oldest: 2023-11-17 03:00:00 +0000<br>Newest: 2023-11-17 06:00:36 +0000 Status report information</p> <p class=””>Generated at: 2023-11-16 15:32:13 +02:00<br>`


    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    No I am talking about cart page, here is the link to page
    https://speedcomputers.co.za/cart/
    there the issue is happening and this is not an ongoing issue it’s recently surfaced while I hae not made any changes or updates in the code.

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    I have also removed the issue in console window but the ajax issue was still not resolved also the form error i not resolved I have also tried switching to default theme and deactivating all plugins.

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    I have tried switching to the default theme, deactivating?all plugins excluding Contact Form 7 and WP Mail SMTP, and clearing all cache data but the issue still persists.

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    What about the form submission error?

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    These are :
    Advanced Custom Fields
    Advanced Custom Fields: Repeater Field
    All-in-One WP Migration
    Better WordPress Minify
    bidorbuy Store Integrator
    Contact Form 7
    Custom Post Type UI
    Favicon by RealFaviconGenerator
    Intuitive Custom Post Order
    Mammoth .docx converter
    MetaSlider
    myStickymenu
    Simple Custom CSS and JS
    Smush
    WooCommerce
    WooCommerce Payfast Gateway
    WooCommerce PayPal Checkout Gateway
    WooCommerce PayPal Payments
    WooCommerce Stripe Gateway
    WP File Manager
    WP Mail Logging
    WP Mail SMTP
    WP Menu Cart
    WP SVG Images
    WPForms Lite
    YITH WooCommerce Quick View
    YITH WooCommerce Wishlist
    while the theme is a custom theme that I have developed.

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    Hi Juan Coronel,

    I have Further modified my code to resolve the issue also I have used hooks to add products in wishlist
    here is the code that I have added in functions.php

    function enqueue_my_scripts() {
    wp_enqueue_script(‘jquery’);
    wp_localize_script(‘jquery’, ‘myAjax’, array(‘ajaxurl’ => admin_url(‘admin-ajax.php’)));
    }
    add_action(‘wp_enqueue_scripts’, ‘enqueue_my_scripts’);

    function add_to_wishlist() {
    if (isset($_POST[‘product_id’])) {
    $product_id = $_POST[‘product_id’];

        // Perform the logic to add the product to the wishlist
        // You can use your wishlist plugin's functions or custom code here
    
        // Example: Add the product ID to a session variable for the wishlist
        session_start();
        $_SESSION['wishlist'][] = $product_id;
    
        // You can also send a response back to the JavaScript
        echo 'success'; // This will be displayed in the success callback
    }
    wp_die(); // Always include this at the end

    }

    and the code for custom.js file to check if the product has been added successfullt to wishlist is

    jQuery(function($) {
    $(document).on(‘click’, ‘.add_to_wishlist’, function(e) {
    e.preventDefault();

        var product_id = $(this).data('product-id');
    
        // Make an AJAX request
        $.ajax({
            type: 'POST',
            url: myAjax.ajaxurl, // Use the variable defined by wp_localize_script
            data: {
                action: 'add_to_wishlist',
                product_id: product_id,
            },
            success: function(response) {
                if (response === 'success') {
                    alert('Product added to the wishlist successfully.');
                } else {
                    alert('Failed to add the product to the wishlist.');
                }
            }
        });
    });

    });
    but none of these helped.
    Can you further guide with any solution if possible so.

    Thread Starter kanwalshahzadi

    (@kanwalshahzadi)

    I have tried changing themes also but upon changing themes the add to wishlist button is not displaying can you please help me resolve the issue with the current theme as soon as possible.
    Regards,
    Kanwal Shahzadi

Viewing 15 replies - 16 through 30 (of 36 total)