Primarily, the front-end is a single-page application. Two entities, however, operate outside of the cart page. One is a button component in the site’s menu bar. The other is a script that finds all “Add to Cart” buttons on any given page and binds each with an event listener.
My client’s customers can now combine items into a single order, select available shipping options, and complete their transactions in a secure PayPal Checkout window.