I would go ahead and write a service, then consume it from inside Wordpress, don't use AJAX There are several tutorials for Wordpress + Consume Webservice
If you get stuck feel free to ask again :)
T
On Sun, Dec 14, 2014 at 1:41 PM, Jeremy Burns <jeremyburns@classoutfit.com> wrote:
So I'm two and a half months into a project replacing an e-commerce site with a custom built CakePHP site. The current site starts in Wordpress (LAMP) and flips to a horribly written PHP site (WAMP) with all sorts of reverse proxies and stuff going on. The client has now decided they want to retain the Wordpress site for CMS (I get that) and because it has great SEO rankings (I get that too). However, they want everything to happen inside Wordpress rather than flipping out to a stand alone site for order processing. I've already written much of the back end order processing stuff in Cake and it makes sense to retain that.--My question is: how can I display Cake elements (or views) inside the Wordpress site? For example, there's a quote form that takes in the customer's requirements, puts it through some fairly detailed calculations and returns prices, up-sells and postage details. My initial thoughts are to make an ajax call to the Cake API and return either fully rendered HTML or perhaps just some json data. Before I spend days trying stuff out is there another route? Does anyone have any experience or advice? Should Wordpress exist in the webfoot folder (as if it were just being used as a blog) or should they be on separate domains ('/' and /-api, for example)? The next challenge will be sharing session information but there's plenty of existing searches for that.Thanks.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
=============================================================
Hire a CakePHP dev team : http://sanisoft.com
=============================================================
Hire a CakePHP dev team : http://sanisoft.com
=============================================================
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment