• Resolved Johnny

    (@johnexposureninja)


    Hello,

    Thanks for your previous help.

    I was wondering if there was a way we could prevent the popup from showing if the customer already purchased all upsells. Doesn’t really make any sense if the customer is being asked to purchase a product they already own.

    I have already created a function to check if the customer has already purchased an upsell. I created a custom popup template and currently use this function to hide upsells that have been purchased by the customer. Issue is that there are two upsells so if the customer has purchased both before then they get this – https://snipboard.io/87IOP5.jpg

    PS the products on the store are all downloadable.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sorry for the delayed response. Could you share your code here? I just want to see what hook you are using and we could probably just add a few things to your existing code to achieve what you wanted.

    Thread Starter Johnny

    (@johnexposureninja)

    Hey no prob.

    I already made some progress since that message. I set the function to run before the template content so the template content only shows if the customer hasn’t purchased the upsells before.

    This is the code: https://gist.github.com/jorpdesigns/56a2a72a25c299b2e46653aa04b06c15

    There is the minor issue of the popup spinner showing momentarily before disappearing. Perhaps you’ve got a solution to remove the spinner completely based on the function above? Not a big deal anyway. I can arrange to grant you temporary access so you can view the popup as a user who’s purchased all upsells.

    You can change the behavior of the spinner with some jQuery code. I’ve just realized you’re actually using our PRO plugin. This forum should be for free plugins listed on www.ads-software.com only. The JS files that are being used by the free plugin are actually different than the PRO version.

    You should use this form to submit support request for PRO version. Temporary access to your site would be nice so that we could test it directly on your site.

    I’m marking this as resolved, please use contact form in the link above to continue the conversation. Your email address must match the email address in your order.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Prevent Popup From Showing If Customer Already Purchased the Upsell’ is closed to new replies.