• Resolved slarkstudio

    (@slarkstudio)


    Hello guys, sorry for my bad English)
    I have a problem with E-commerce order confirmation:
    I’m selling virtual goods and I want them to be sended automatically after users paid their order.

    But Plugin sending the goods only after confirmation in admin panel, and it doesn’t matter what status an order gets when the user creates and pays for it (I tried all statuses of orders and still nothing … still needs admin confirmation)

    Someone can help me ? Will be happy to get any information or thoughts
    P.S. i can make a donation to person who know the answer.
    Respectfully, Igor.

    https://wordpress.org/plugins/wp-e-commerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • What is the payment gateway you are using? There’s a lot of old ones out there that do not us the “new” purchase log mechanism that has been part of wpec for the last year or two. That might be part of it.

    Thread Starter slarkstudio

    (@slarkstudio)

    Thank you, whitelamp, for your response.
    I’m using not standart payment gateway.
    It’s called “FreeKassa”, mostly works with Russian customers/e-money.
    I can change (in the FreeKass’s code) what status order gets after successful purchasing through this FreeKasss getaway – but it is not helping.

    What is wrong with this “new purchase log mechanism”? Anyone knows where I can turn off order confirmation ?

    Hi,

    I assume you are using the gateway code available here:
    http://www.free-kassa.ru/news.php?id=61

    I have had a look at it and yes, it needs updating. The code updates the purchase log table directly instead of using the WPSC_Purchase_Log class, which is what gateways need to do these days. If you look in purchase-log.class.php you will see that inside save() there is a call to update_downloadable_status() which is probably something you want; also the sending of emails to the user and the admin is triggered here.

    In my gateways I do something a bit like this:
    $purchase_log = new WPSC_Purchase_Log( $refnum, ‘sessionid’ );
    $status = WPSC_Purchase_Log::ACCEPTED_PAYMENT;
    $purchase_log->set( array(
    ‘processed’ => $status,
    ‘transactid’ => $refnum,
    ) );
    $purchase_log->save();

    Thread Starter slarkstudio

    (@slarkstudio)

    Yes i’m using this gateaway!
    ooo big thanx, I think this is the problem’s root!
    I will take a look at this class ang try to use that function – and definatelly right here about results

    Thread Starter slarkstudio

    (@slarkstudio)

    I’m very thankful for your help! I have successfully updated my gateaway code and it’s works fine!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Auto order confirmation’ is closed to new replies.