Home Forums Space themes support forum checkout page payment error

checkout page payment error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #681020

    John
    Participant

    Hello guys,
    We are using Vega theme from you and we have an issue on checkout page.
    When I m trying to make an order we receive this error message. https://imgur.com/a/H2ZiZU8
    “There was an error processing your order. Please check if there are any receipts from your payment method and review”
    On some websites we have the same issue but for woodmart theme and it’s fixing by modify the code to: woodmart/inc/integrations/woocommerce/functions.php
    And the issue it’s at line 3001. I have fixed with the code below.

    /**
    * Add custom CSS for Woodmart emails.
    *
    * @param string $css WooCommerce email CSS code.
    * @param WC_Email|null $email Email object or null.
    *
    * @return string
    */
    function woodmart_enqueue_emails_styles( $css, $email = null ) {
    $woodmart_emails_list = apply_filters( ‘woodmart_emails_list’, array() );

    if ( $email && in_array( get_class( $email ), $woodmart_emails_list, true ) ) {
    ob_start();
    wc_get_template( ’emails/wd-email-styles.php’ );
    $css .= ob_get_clean();
    }

    return $css;
    }

    add_filter( ‘woocommerce_email_styles’, ‘woodmart_enqueue_emails_styles’, 10, 2 );
    }

    Can you please check and help me with this?
    I can t find this code in vega theme. And also can t fix this https://imgur.com/a/B4MUdXu

    Thank you!

    #681034

    John
    Participant

    I have managed to solve the issue with this function:

    function xts_enqueue_emails_styles( $css, $email = null ) {
    $xts_emails_list = apply_filters( ‘xts_emails_list’, array() );

    if ( $email instanceof WC_Email && in_array( get_class( $email ), $xts_emails_list, true ) ) {
    ob_start();
    wc_get_template( ’emails/xts-email-styles.php’ );
    $css .= ob_get_clean();
    }

    return $css;
    }
    add_filter( ‘woocommerce_email_styles’, ‘xts_enqueue_emails_styles’, 10, 2 );
    }

    I have modified in themes/xts-vega/framework/integration/woocommerce/functions/global.php the last function from the file.

    Maybe you can make a fix for the space themes and woodmart.

    Thank you!

    #681050

    Luke Nielsen
    Keymaster

    Hello,

    1. First, disable all plugins that are not related to the theme, then check this post – https://satisfyhost.com/blog/fix-there-was-an-error-processing-your-order/ , install an SMTP Plugin and specify what errors you receive when creating a new order to understand the cause of the error.

    2. Errors in WC status regarding template versions will be fixed after accepting patches numbered – 675855 and 681042, after which you need to go to Woocommerce -> Status -> Tools -> Clear system status theme info cache – https://monosnap.com/file/Nohf5YCa01cQfO8mXQsOALjI5sczir

    Kind Regards

Viewing 3 posts - 1 through 3 (of 3 total)