Support » Plugin: WooCommerce Pay Per Post » Page View Restriction

  • Resolved Hashrak

    (@hashrak)


    Hello,

    I have a question about your premium feature, Page View Restriction :

    Exeample >> A customer buy in woocommerce shop the access to 5 different articles. After the transaction, he have the possibility to access to each article 2 times. If he try a 3rd time, he is redirected.

    Does your premium feature offer the ability to parameter this kind of system ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Hashrak,
    Yes the premium version of the plugin will allow you to do that with the page view restriction module.

    The only thing that I could see happening is if you are attaching ONE product to 5 different posts, the plugin is going to calculate page views based on ONE post, so if you only want them to view the post two times, it is not going to count 2 page views per post, it will count 2 page views across ALL posts associated with product. You could get around this by setting your total page views to be 10 page views instead of 2…. Does that make sense?

    Hashrak

    (@hashrak)

    Thanks for your fast reply.

    In my configuration, 1 woocommerce product = access to 1 specific post.

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    If that is the case than the premium version will work perfectly for you.

    Hashrak

    (@hashrak)

    Fatal error: Uncaught Error: Call to a member function toFormattedDateString() on null in /home/clients/fc822423daa38ef1318ac628c1f0db08/vveb/MET4/wp-content/plugins/woocommerce-pay-per-post-premium/public/partials/pageview-status.php:35 Stack trace: #0 /home/clients/fc822423daa38ef1318ac628c1f0db08/vveb/MET4/wp-content/plugins/woocommerce-pay-per-post-premium/public/class-woocommerce-pay-per-post-public.php(308): require() #1 /home/clients/fc822423daa38ef1318ac628c1f0db08/vveb/wp-includes/class-wp-hook.php(286): Woocommerce_Pay_Per_Post_Public->restrict_content(‘</p>\n<p>TEST de…’) #2 /home/clients/fc822423daa38ef1318ac628c1f0db08/vveb/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘</p>\n<p>TEST de…’, Array) #3 /home/clients/fc822423daa38ef1318ac628c1f0db08/vveb/wp-includes/formatting.php(3694): apply_filters(‘the_content’, ‘\n<p></p>\n\n\n\n<p>…’) #4 /home/clients/fc822423daa38ef1318ac628c1f0db08/vveb/wp-includes/class-wp-hook.php(288): wp_trim_excerpt(‘\n<p></p>\n\n\n\n<p>…’) #5 /home/ in /home/clients/fc822423daa38ef1318ac628c1f0db08/vveb/MET4/wp-content/plugins/woocommerce-pay-per-post-premium/public/partials/pageview-status.php on line 35

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Hashrak,
    Can you email me directly at mattpram@gmail.com and I can debug for you?

    Hashrak

    (@hashrak)

    And if I disable the option, there is no error, but… Page view restriction doesn’t work.

    Hashrak

    (@hashrak)

    Email sent.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page View Restriction’ is closed to new replies.