View Issue Details

IDProjectCategoryView StatusLast Update
5778Composrecommercepublic2024-08-04 23:25
ReporterPDStig Assigned ToChris Graham  
PriorityhighSeverityfeature 
Status assignedResolutionopen 
Summary5778: Consider configurable point discounts
DescriptionConsider the ability to configure how point discounts behave.

Right now, point discounts cap at, and are forced to, 50%. Have a config option that defines the default discount threshold, and perhaps an option everywhere that prompts for a price and points to define available discount thresholds (comma-delimited). Pipe these via the hooks / automatic_discount_calculation .
Additional InformationI had to eliminate the previous $consider_free behaviour because it was breaking the expected amount checks on transactions. So Composr now does not allow purchasing anything completely free with points unless the price is solely defined in points.

It would be nice to let the user configure this globally and on a by-product basis for products that have both a price and a points.
TagsRoadmap: Over the horizon
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

admin

2024-05-26 01:35

administrator   ~8788

Automated message: This issue was created using the Report Issue Wizard on the Composr homesite.

Chris Graham

2024-08-04 22:24

administrator   ~9088

"I had to eliminate the previous $consider_free behaviour because it was breaking the expected amount checks on transactions" - can you say more about this, and link to a commit?

PDStig

2024-08-04 22:55

administrator   ~9097

https://gitlab.com/composr-foundation/composr/-/commit/b1e9d031797a5fc4014149f711e7b37209a5b1ac

$consider_free was resulting in transaction checks made entirely by points to fail validation because the handler cannot convert between points and currency (either an error about unknown currency POINTS, or it improperly expected an amount of money on the transaction when it should have been 0).

Chris Graham

2024-08-04 23:07

administrator   ~9102

And that wouldn't have been fixable as a bug fix? I haven't look at that code in quite a while so I am rusty on it.

PDStig

2024-08-04 23:12

administrator   ~9105

I tried bug-fixing it but fixing it one way ended up breaking the system in another way. I couldn't find a fix that worked other than pulling it and implementing a skeleton to support custom discount ratios.

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change
2024-07-23 17:08 PDStig Tag Attached: Roadmap: Over the horizon
2024-08-04 22:24 Chris Graham Note Added: 0009088
2024-08-04 22:55 PDStig Note Added: 0009097
2024-08-04 23:07 Chris Graham Note Added: 0009102
2024-08-04 23:12 PDStig Note Added: 0009105
2024-08-04 23:25 Chris Graham Assigned To => Chris Graham
2024-08-04 23:25 Chris Graham Status Not Assigned => Assigned