• Resolved marcbo

    (@marcbo)


    Hi,
    I would like to know how to solve this situation :
    I have 3 packages :

    1. Free, max 1 listings, expiration after 30 days

    2. Basic, max 10 listings, expiration after 60 days

    3. Pro, max 50 listings, expiration after 90 days.

    For the Free package, I would like that after 30 days, my user can have a new free package.

    Currently in My-Listing, I can make possible that the user can only purchase the free package once. If I disable that, then the user can “buy” as many free packages as he wants.

    Would WC Paid Listing a suitable solution for this case ? I’ve played with your demo and I was able to add as many Free packages as the user wants. This seems totally not logic.

    Thank you in advance for your answer.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hi @marcbo,

    Would WC Paid Listing a suitable solution for this case ? I’ve played with your demo and I was able to add as many Free packages as the user wants. This seems totally not logic.

    Yes. However, if you want to prevent repeat purchases of the “free” package by a given user, you’ll need to do some modification to WooCommerce itself. SkyVerge, one of the major third-party WooCommerce developers, has a great tutorial for this, here:

    https://www.skyverge.com/blog/prevent-repeat-purchase-with-woocommerce/

    Cheers.

    Thread Starter marcbo

    (@marcbo)

    Hi Jen,
    Thank you for your help, this could be an interesting starting point to solve my issue.
    Another question comes in my mind.
    If 3 packages are available, Free – Basic – Pro, and an user purchased the PRO package, why do you always show all available packages ?

    Thread Starter marcbo

    (@marcbo)

    Code provided by SK does not seems to help in case of WC Paid Listings.
    If I return false there is no influence on the availability of the packages.

    function sv_disable_repeat_purchase( $purchasable, $product ) {
    $purchasable=false;
    return $purchasable;
    }
    add_filter( ‘woocommerce_variation_is_purchasable’, ‘sv_disable_repeat_purchase’, 10, 2 );
    add_filter( ‘woocommerce_is_purchasable’, ‘sv_disable_repeat_purchase’, 10, 2 );

    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hey @marcbo,

    Are you referring to WC Paid Listings? We’re not able to support our paid addons in this forum. Please use the form I’ve linked below to contact support for our paid add-ons:

    https://wpjobmanager.com/support/

    Make sure to contact us from the email address you used when you purchased your license(s), so we’re able to find your account.

    Regarding the SkyVerge code — you would need to contact them directly for assistance with that.

    Cheers.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

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