Goal: add a discount input on the cart page, align it to the right on desktop, and update the cart total dynamically after applying the code.
Context: Discount code is SAVE30, valid for products in the Electric Couches collection.
Proposed fix (CSS/alignment): Guidance to add Custom CSS in Theme settings to right-align the applied discount on desktop. CSS uses a media query (min-width: 768px) and positions span#applied-discount-code absolutely within .cart-row:has(.cart-sidebar-discount). A screenshot was provided to illustrate placement.
Dynamic update options: A third-party app (Discount Codes Anywhere) was suggested. It offers JavaScript events for real-time price updates after acceptance of a code, or a no‑code option that reloads the page once the discount is applied. Demo and app links were provided.
Status: No confirmation yet that the CSS alignment works or that dynamic pricing is implemented. Discussion remains open pending the original poster’s feedback.
Summarized with AI on December 12.
AI used: gpt-5.
Hello! Thought I’d chime in here and say that I’ve had a hand in creating an app that would fit your needs. The app has JavaScript events that can be used to dynamically update the price after a discount has been accepted. You’ll have to have some JS knowledge to implement this, but we also offer a no code solution within the app which would reload the page once the discount code has been applied. You can test out the app here. Any feedback would be appreciated!