-
☆ A M B ☆
- 24,524 Posts
There isn't much to it, just put the PHP into snippets. The AJAX processor goes into a snippet that is the only content of a resource with no template. Use that resource's URL in the AJAX call.
-
☆ A M B ☆
- 453 Posts
Thans sotwell for the response...
I tried to follow their instructions... put the PHP code in snippets, but the first error I counter is this:
Fatal error: Call to a member function display_cart() on a non-object in /home/....../public_html/manager/includes/document.parser.class.inc.php(770) : eval()'d code on line 1
BASE - Web Design Studio
MODX Ambassador
Website
Shopkeeper is a very similar (but more functional) add-on that works for MODX Evo & Revo - lacking the Paypal integration of JCart (but that in itself isn't that hard to do).
Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
-
☆ A M B ☆
- 453 Posts
I'm using shopkeeper on one of my projects and it's great, but I'm looking for a simpler solution for my next project...
Just a list of items with "add to basket" right aside of them and send that order to email addres. Something similar seen on here: slicemachine.com/design-slicing/order/
BASE - Web Design Studio
MODX Ambassador
Website