Forums / General Questions / Can I include external data via ajax in my shopping cart page?

Can I include external data via ajax in my shopping cart page?

Started by tiffbrink on 20 Feb 2013, 8:26 PM · Views: 659

Results 1 to 2 of 2
20 Feb 2013, 8:26 PM
#1
tiffbrink avatar

tiffbrink

New Zenner

Join Date:
Feb 2008
Location:
Allen, TX
Posts:
29
Plugin Contributions:
0

Can I include external data via ajax in my shopping cart page?

I have another database that bridges the zencart. I would like to create a ajax script that gets information about installments from the non-zencart database (localhost/php/program_installments.php). The product page has a js file in /product_info/jscript_main.php. Can I insert the ajax code into this js file to retrieve the data? How would I go about doing that?

26 Feb 2013, 7:32 PM
#2
evelt avatar

evelt

Zen Follower

Join Date:
Nov 2009
Location:
In beautyful New York
Posts:
170
Plugin Contributions:
1

Re: Can I include external data via ajax in my shopping cart page?

Ajax is the wrong method (in my opinion)

in the product template hard-code a new db connection passing the products Model or ID in the query.

of course the private DB needs to have a reference to the product model or id