Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PROMO-1050 Add shipping discount action #358

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bc-luke
Copy link
Member

@bc-luke bc-luke commented Jul 3, 2024

PROMO-1050

What changed?

  • Add new shipping discount action, which can
    • apply to some or all shipping methods
    • provide a $ or % discount to the shipping cost

This is based on the mockup shown here:

image

Release notes draft

TBC

Anything else?

ping {names}

@bc-luke bc-luke force-pushed the promo-1050-new-shipping-action branch from 939d4bc to cb53225 Compare July 3, 2024 01:34
@bc-luke bc-luke force-pushed the promo-1050-new-shipping-action branch from 35523bf to fd39e6d Compare July 3, 2024 02:01
type: integer
minimum: 1
required:
- method_ids
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discount is probably required as well 😄

properties:
discount:
$ref: '#/components/schemas/Discount'
as_total:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't notice this during initial UX review.

I'm wondering if this can be omitted to "per destination" for the 1st iteration ? distribute as a total amount is definitely doable engineering wise, but from past experience, it's also a source of rounding bugs, so we only want to take on the additional complexity when we're sure that the demand is there.

Probably worth asking JW to confirm if this is required for WD, if not, we can reduce the scope a bit.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed! Let's see if we can limit it to per desitination then expand with this later if needed.

description: List of shipping method IDs to which the shipping discount can apply.
items:
type: integer
minimum: 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to enforce some sort of sanity check maximum? Just so we don't inevitably have merchants finding creative ways to abuse this and potentially listing hundreds of shipping methods? We can always increase the limit if discover a legit use case

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants