Feature #1189

Add Additional Options to Checkout

Added by Pavan Rikhi about 1 year ago. Updated 7 months ago.

Status:In ProgressStart date:11/25/2017
Priority:NormalDue date:
Assignee:Pavan Rikhi% Done:

50%

Category:CheckoutSpent time:7.71 hours
Target version:v0.6.0 - Checkout
Easy Pickings:

Description

  • Coupon codes
  • store credit
  • priority S&H
  • member number

member number

Discount order by 5% if anything is entered into the field.

priority s&h

Make the fee $5 + 5% of the order total on top of normal shipping cost.

Add as extra field to shipping methods, w/ specific fields for excluding products/categories from priority shipping. Ideally customers would be able to place an order w/ priority shipping w/ those excluded products if they had other products, & would only be charged for priority shipping for eligible products. Not sure how stoneedge would handle it though.

Need to exclude seasonal items & mushrooms.

Associated revisions

Revision 82eb118e
Added by Pavan Rikhi 11 months ago

[#1189] Add Store Credit to Checkout API Route

Add a storeCredit field to the Customer DB model & import store credit
data from ZenCart's Gift Certificates module in the Data Migration
script.

Return a Customer's available store credit in the My Account & Checkout
Details Routes. In the Place Order API Route, allow Customers to apply
their store credit towards an Order.

  • Add a StoreCreditLine value to the LineItemType datatype.
  • Modify the Order Placed email to include any store credit that was
    used.
  • Modify the chargeCustomer function so that it is no longer responsible
    for deleting a Customer's Cart.
  • Modify the createOrder function to also return the amount of store
    credit that was applied to the Order.

Refs #1189

Revision 07552cf7
Added by Pavan Rikhi 11 months ago

[#1189] Add Store Credit Form to Checkout Process

Add an input field for applying store credit to an order during the
checkout process if the Customer has store credit available.

Display a Customer's available store credit on their My Account page.

Add any applied store credit to order summaries & total calculations.

Add a Format.centsNumber function to format cents as dollars like the
Format.cents function, but without the leading dollar sign.

Refs #1189

Revision 7b7066f5
Added by Pavan Rikhi 7 months ago

[#1189] Add Member Discounts to Checkout API Routes

Modify the authorized & anonymous Checkout routes so that customers can
include their member number and receive their 5% discount.

Valid member numbers are simply strings with at least 4 characters.

  • Add a `MemberDiscountLine` value to the `LineItemType` datatype.
  • Add a `memberNumber` field to the `Customer` DB model.
  • Add a `memberNumber` parameter to the Checkout Details & Place Order
    routes.
  • Add the Member Discount to the OrderPlaced email.
  • Modify the Place Order routes so they update/initialize the Customer's
    member number.
  • Modify the `Checkout.createLineItems` function to create a
    `MemberDiscountLine` if applicable.
  • Modify the `CommonData.getCharges` function to account for the
    membership discount if applicable.

Refs #1189

Revision 42894e28
Added by Pavan Rikhi 7 months ago

[#1189] Add Member Numbers to Checkout Process

Add an input field for Member Numbers, enabling Customers to receive
their 5% discount.

If a Customer has an existing member number, it is used to pre-fill the
input & the discount will also shown on the Cart page.

  • Add a Member Discount line to the Order Details pages.
  • Add a `memberDiscount` field to the `CartCharges` type.
  • Modify the Checkout Details & Place Order API requests to include the
    entered member number.
  • Modify the `Checkout.refreshDetails` function so that the Checkout
    details are also refreshed when a valid member number is entered or
    removed.
  • Refactor the logic for limiting the maximum store credit during
    checkout into a separate `limitStoreCredit` function.

Refs #1189

History

#1 Updated by Pavan Rikhi 11 months ago

  • Start date set to 11/25/2017

Starting work on this issue.

#2 Updated by Pavan Rikhi 10 months ago

  • % Done changed from 0 to 20
  • Status changed from New to In Progress
  • Description updated (diff)

Store Credit is finished, working on member numbers now

#3 Updated by Pavan Rikhi 10 months ago

  • Description updated (diff)

#4 Updated by Pavan Rikhi 7 months ago

  • % Done changed from 20 to 50
  • Description updated (diff)

Pretty sure the current site doesn't store member numbers, so need to grab from stoneedge or leave them all blank.

#5 Updated by Pavan Rikhi 7 months ago

are coupon minimum purchases based on order total or product subtotal?

#6 Updated by Pavan Rikhi 7 months ago

Hide member number input if customer has number already?

Also available in: Atom PDF