Main website: www.example.com
LMS website: lms.example.com
- The Main website is public facing for visitors to browse the courses.
- The LMS website is for the users/commerce to be managed and the actual Course material to be used/viewed.
Drupal Commerce manages the payments and Access modules manage the users access once purchased.
The 2 websites are setup as Drupal multi-sites:
- On the same server
- Separate databases
- All modules/theme files are under the sites/all folder.
How do I create a 'Buy' button on the main website that will take the visitor to the LMS website with that particular course added in their cart?
Note: there is only a hand full of courses so the link on the main website can be manually added for each course.