-
Notifications
You must be signed in to change notification settings - Fork 370
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
Customer Coupon #5662
Comments
I tested the PR above with 1905 and it failed. Which commerce suite version does it work with?
|
it works with patch 1905.5, and the bean 'customerCouponCodeValueResolver' is defined in customercouponservice, which should exist in any version of 1905. the spa recipe already added customercouponoccaddon, so the customercouponservice should also be there. |
…acus-storefront into feature/GH-5662-customer-coupon
…acus-storefront into feature/GH-5662-customer-coupon
…acus-storefront into feature/GH-5662-customer-coupon
…acus-storefront into feature/GH-5662-customer-coupon
…acus-storefront into feature/GH-5662-customer-coupon
…acus-storefront into feature/GH-5662-customer-coupon
…acus-storefront into feature/GH-5662-customer-coupon
…acus-storefront into feature/GH-5662-customer-coupon
Introduce customer coupon so that user can claim customer coupon, check the coupons in "My Coupons" page and apply customer coupon in cart page. Add components, selectors, ngrx and occ-services. BREAKING CHANGE: CartCouponComponent updates constructor to add CustomerCouponService. Closes GH-5662
* develop: feat: introduce selective cart (SAPGH-5720) Only send amended order entries (SAP#6053) fix: XMLHttpRequest error when dynamically loading translations using SSR (SAP#6039) feat: introduce customer coupon (SAPGH-5662) fix: Global Message timeout blocks rendering of SSR application Add variant info to cancel/returns (SAPGH-6016) (SAP#6040) update dev with latest from maintenance branch (SAP#6031) feat: change schematics versioning to more automatic for releases (SAP#6025) fix: Make guest order route configurable SAP#6017 (SAP#6024)
Im trying to follow this guide https://sap.github.io/cloud-commerce-spartacus-storefront-docs/installing-sap-commerce-cloud/ and prepare the SAP Commerce locally for Spartacus. And getting the mentioned exception "No bean named 'customerCouponCodeValueResolver' available" SAP Commerce version is 1905.11 Do you know which version doesn't have such issue? |
Which recipe do you use? this is the spartacus recipe https://github.tools.sap/cx-commerce/c3po-legacy-devconfigs/blob/master/spartacus/build.gradle . Make sure that the customercouponoccaddon is installed. |
As it is defined in the mentioned guide, I use b2c_acc_plus renaming to b2c_for_spartacus and adding spartacussampledataaddon into the extension list |
I get your problem. Because there's no customercouponoccaddon in backend, you need to remove /spartacussampledataaddon/resources/spartacussampledataaddon/import/stores/electronics/solr.impex which depends on the bean. |
@maggielin0 Thanks, it has solved that problem. I've removed solr_en.impex too |
That was helfpful thanks |
…olver' available" problem according to SAP/spartacus#5662
"My coupons" Page
As a customer, I want to have a "my coupons" page so that I can see all my coupons there
AC:
UI
-- Page title: My Coupons
-- For anonymous users, ask the customer to login first
-- The list is paged and show 10 coupons per page
-- Be able to sort the list by startDate, endDate
-- Do not show expired coupons
-- For each coupon we should show the following information:
--- Name, if it is longer than 2 lines, show "..." in the end
--- Status: yellow for Effective Soon, green for Active and red for Expiration Soon; this should be localized
--- Effective period: the date should be localized
--- "Read more" link
--- Notification checkbox
--- "Find Product" button
-- Name
-- Description
-- Effective period: the date should be localized
-- Status: yellow for Effective Soon, green for Active and red for Expiration Soon; this should be localized
Interaction
Claim a coupon
, try to claim this coupon for this customer and redirect to "My coupon" page
-- For anonymous users, ask the customer to login first; after login, continue claiming the coupon and redirect to "my coupons"
-- Upon success
--- show a global message "You have successfully claimed this coupon."
--- show the new claimed coupon in the "My coupon" page
-- Upon failure
--- show a proper global message.
"Read more" link
Notification checkbox
Find Product" button
-- The breadcrumb should contain the coupon name, like: HOME/MY COUPONS/xxx results found
Please refer to the mock-ups:
https://app.zeplin.io/project/5c9ddbcf16d4ed776bceeeaa?seid=5ca4c1c7e32f16b878c6a5d3
NFR:
Use cms framework to ensure extensibility of "My coupons" page
Applying Customer Coupon
As a customer, I want to apply my customer coupon to the cart so that I can get some promotions
AC:
-- Show a placeholder in the input box and a note below the coupon input box to indicate that the customer can input or select coupon codes here
-- Only show the customer coupons belong to the current user
-- Only show available coupons(not applied, not expired)
-- The code is sort by the coupon code(ascending)
-- In the list, show the coupon code for each coupon; warp the word if it's too long
-- The dropdown list have a maximum height(5 coupons) and show a scoll bar if the customer have too many coupons
-- Still allow customer to enter coupon code
--- When the customer inputs some characters, filter the list to show the coupon codes which contains the input characters
-- For anonymous users or the users who don't have a customer coupon, show the standard coupon input box
-- The customer should be able to click a coupon from the dropdown list to apply it to the cart
--- Same behavior as applying a standard coupon, such as recalculate the cart, show coupon code in order summary section, etc.
-- Customer should be able to checkout and place order with customer coupons and get the corresponding promotions
--- Expired coupons cannot be checkout or placeorder
Please refer to the UI mock-up: https://app.zeplin.io/project/5c9ddbcf16d4ed776bceeeaa?seid=5ca4c1c7e32f16b878c6a5d3
The text was updated successfully, but these errors were encountered: