laterpay / laterpay-wordpress-plugin

The official LaterPay plugin for selling digital content with WordPress.
18 stars 10 forks source link

Free Items (priced at 0.00) Should not Display in Overlay #1314

Closed ksmoore125 closed 5 years ago

ksmoore125 commented 5 years ago

To Reproduce Steps to reproduce the behaviour:

  1. A Post
  2. Set the individual article price to 0.00

Observed Result The overlay is displayed with a single article purchase price of 0.00

Desired Result Only items with a price > 0 should be displayed in the overlay

Scenarios

Scenario 1

Global Default Price = FREE unless price is set on post page or by category Time Pass or Subscription = Yes Single Article Price = 0.00 Currently Working as Expected?Desired Result image

Scenario 2

Global Default Price = FREE unless price is set on post page or by category Time Pass or Subscription = No Single Article Price = 0.00 Currently Working as Expected?
Desired Result No paywall displayed

Scenario 3

Global Default Price = FREE unless price is set on post page or by category Time Pass or Subscription = Yes or No Single Article Price > 0.00 Currently Working as Expected?Desired Result image

Scenario 4

Global Default Price = Posts cannot be purchased individually Currently Working as Expected?Desired Result Not applicable since the Single Article Price cannot be overridden

Scenario 5

Global Default Price = Set individual article default price & > 0.00 Time Pass or Subscription = Yes Single Article Price = 0.00 Currently Working as Expected?Desired Result image

Scenario 6

Global Default Price = Set individual article default price & > 0.00 Time Pass or Subscription = No Single Article Price = 0.00 Currently Working as Expected?Desired Result No paywall displayed

Scenario 7

Global Default Price = Set individual article default price & > 0.00 Time Pass or Subscription = Yes or No Single Article Price > 0.00 Currently Working as Expected?Desired Result image

Scenario 8

Global Default Price = Set individual article default price & = 0.00 Time Pass or Subscription = Yes Single Article Price = 0.00 Currently Working as Expected?Desired Result image

Scenario 9

Global Default Price = Set individual article default price & = 0.00 Time Pass or Subscription = No Single Article Price = 0.00 Currently Working as Expected?Desired Result No paywall displayed

Scenario 10

Global Default Price = Set individual article default price & = 0.00 Time Pass or Subscription = Yes or No Single Article Price > 0.00 Currently Working as Expected?Desired Result
image

ksmoore125 commented 5 years ago

Scenario 3 & 7 Issue

See http://lpwptestprod.wpengine.com/2019/07/26/sample-article/ Settings to reproduce:

Global Default Price Time Pass or Subscription Single Article Price
FREE unless price is set on post page or by category No* > 0.00
Set individual article default price & > 0.00 No* > 0.00

*In this scenario there are Time Passes & Subscriptions but they are assigned to a different category

Steps to Reproduce

Observed Result image

Expected Result The overlay should be displayed with one option for 0.99

ksmoore125 commented 5 years ago

Scenario 10 Issue

Not working as expected Observed Result: No paywall is displayed

ksmoore125 commented 5 years ago

Round 2 of testing: Scenario 3 - ✅ Scenario 7 - ✅ Scenario 10 - ✅