Adds the potential to include a discount for premium resources, namely:
Discount field below price field during creation
Green label indicating sale next to price on resource index
Strikethrough price on purchase button with cart icon
Discount will be included in total at checkout
Update category view like #70
Code was originally written by GIGABAIT/Mubeen at our request and has been notably updated over the past year in use. If you are not interested in these features, we can maintain a separate module, but we think a merge would benefit the community more.
Please note that while the modern PayPal REST API has methods for discounts which would allow them to appear as such on the order information, the PHP SDK currently in use does not have that capability outside of bulk invoices.
You can view this PR live on our website at https://lectern.browsit.org/resources/
Adds the potential to include a discount for premium resources, namely:
Code was originally written by GIGABAIT/Mubeen at our request and has been notably updated over the past year in use. If you are not interested in these features, we can maintain a separate module, but we think a merge would benefit the community more.
Please note that while the modern PayPal REST API has methods for discounts which would allow them to appear as such on the order information, the PHP SDK currently in use does not have that capability outside of bulk invoices.