I am building a site which has a ecommerce nature that is not able to be tied directly into wordpress. What my goal is to have a constant header that is generated by my wordpress header on all pages including the ecommerce store.
Now my question is what route is best:
a) Pull wordpress header into e-commerce site
b) Pull e-commerce site into the “content” area of my wordpress site via a custom template, this is my perfered option as I could keep the footer and rest of the theme going on.
So how would I accomplish this? I imagine making a custom page template pulling in the index.php of the e-commerce store is the way to go, does anyone have an example or tips on this as I have not made a custom template strucutre in WP.
Thanks in advance.
Tight integration (loading either inside of other one) without much functionality overlap might come with considerable performance penalty. It might or might not be relevant for you.
Since the issue can be abstracted to “how to transfer fragment of page to external site” I would probably generate that fragment in WP and make other side retrieve in some way. For example via Ajax request or just reading file with cached fragment.