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

RSS-ECOMM-4_16: Implement Promo Code Application Feature #80

Open
EternalRival opened this issue May 25, 2024 · 0 comments
Open

RSS-ECOMM-4_16: Implement Promo Code Application Feature #80

EternalRival opened this issue May 25, 2024 · 0 comments
Assignees

Comments

@EternalRival
Copy link
Owner

💰🔖 Issue RSS-ECOMM-4_16: Implement Promo Code Application Feature (15 points)

📝📚 Description

For an engaging and user-friendly shopping experience 🚀, develop a feature that enables users to apply promo codes to their orders 💸. The application of these promo codes should offer discounts on eligible items 🛍 and appropriately adjust the total cost of the cart 🛒 using the commercetools API. Information about active promo codes should be presented on the main page 📋.

💻🔧 Implementation Details

  1. Promo Code Display 🎫: Present active promo codes on the main page to increase visibility and encourage their use 🙌.
  2. Promo Code Input Field 🖊: Include a field where users can input their promo codes. This could be a text box, for instance 📝.
  3. Apply Button 🆗: Add an 'Apply' button next to the promo code input field. When a user clicks on this button after entering their promo code, the discount associated with the promo code should be applied to eligible items in the cart 💰.
  4. API Integration 🌐: Connect the promo code application feature to the commercetools API to ensure the total cost of the cart is updated correctly when a promo code is applied 💹.

✅🎯 Acceptance Criteria

  • The main page displays active promo codes 🎫.
  • The cart includes an input field for promo codes and an 'Apply' button ✔️.
  • When a valid promo code is entered and the 'Apply' button is clicked, the total cost of the cart is updated to reflect the discount associated with the promo code 💰.
  • The total cost of the cart, including any discounts from promo codes, is calculated and displayed correctly 💲.

🔗📚 Useful Links and Resources

  1. Commercetools Discount Codes API
  2. Commercetools Cart Discounts API
  3. Commercetools Add Discount Code API
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

No branches or pull requests

1 participant