• Resolved krysis163

    (@krysis163)


    I use WooCommerce (3.5.8) with wp-job-manager (1.32.2) and wc-paid-listings (2.8.1) on WP (5.1.1).

    In WC settings “Accounts & Privacy” I enabled the flag “Allow customers to log into an existing account during checkout”.

    When I start a new job offer as a guest user, I see the post is created in db when I am on the preview page.
    The post_author then is “0”.

    When I go forward to the checkout page, log in (or create a new account)
    and finish the checkout process, the post_author then is still “0”.

    I am not sure if this might be a side effect of our customization or a miss configuration or a know issue or …

    I am glad for any help. Thx.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter krysis163

    (@krysis163)

    I also send this problem to the support of WC Paid Listings.
    Thy suggest to “Enable account creation during submission” in their plugin.

    But this I didn’t like because:

    • When a user is still registered and filled in his email, then he get’s a warning (This email is already registered, please choose another one.). He then has to login over the top menu which is a break in the ux.
    • I like to allow quests inserts and a login directly inside the process. A login is, as far as I could see, not provided by WC Paid Listings like it is in Woocommerce.
    • I also like the idea to show the login in the last step of the process to keep the first form as easy as possible.

    The post entry is done with the guest post_author (id=0) before the customer enters the checkout.
    If I am right, the checkout is part of WooCommerce.
    After the login (or registration), the post is not updated.
    And I think this is the main problem.
    But is this a issue of woocommerce or should this solved by WC-Paid-Listings?

    My current workaround is like that:
    In file: wp-content\plugins\wp-job-manager-wc-paid-listings\includes\package-functions.php
    function wc_paid_listings_approve_listing_with_package(...
    I manually set the user

    if (!empty($user_id)) {
       $listing[ 'post_author' ] = $user_id;
    }

    I am not happy with this solution because it only works for purchased posts and not for drafts.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @krysis163 Was this resolved with more recent versions of WooCommerce, or are you still having the issue? If you are still having this issue, does it happen with just WooCommerce active purchasing a product?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post sticks to guest when log in during checkout’ is closed to new replies.