Scenario
We have a rails application mounted with Spreecommerce as Rails::Engine and hosted at dashboard.domainname.com
and available through dashboard.domainname.com/store
then we have the wordpress for front-end implemented at www.domainname.com
.
Requirement
We now need to show the checkout amount and quantity in the wordpress side of the application. Clicking on this would lead to checkout of the rails application itself so won't be problem for there on.
- How do we achieve this?
- Is it accessible through cookies?
- If so how can it be shared throughout different sub-domains?
*Note: Please consider that a user can add products to cart even without signing in.