Skip to content

Conversation

@ryanmitchell
Copy link
Contributor

@ryanmitchell ryanmitchell commented Oct 23, 2023

This PR adds new data to product variants, which is updated when an order is placed.

It should allow for sorting based on popularity (total purchased) or date (last purchased).

The format it is stored in is as follows:

total_purchased: 
  - lifetime: 100
  - 2023:
     - total: 100
  	 - 10: 50
     - 09: 25
     - 08: 25

[edit] before this merges I need to add test coverage for this webhook as there currently is none.

@ryanmitchell ryanmitchell marked this pull request as draft October 23, 2023 16:48
@ryanmitchell ryanmitchell requested a review from edalzell October 25, 2023 09:50
@ryanmitchell
Copy link
Contributor Author

Any thoughts on this @edalzell - would be interested to hear what you think.

@ryanmitchell ryanmitchell marked this pull request as ready for review March 11, 2024 10:31
@ryanmitchell ryanmitchell merged commit 57013db into main Mar 11, 2024
@ryanmitchell ryanmitchell deleted the feature/add-last-purchase-and-total-purchased branch March 11, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants