CodeIgniter Forums

Full Version: Shopping cart
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]1cookie[/eluser]
hi

I'm trying to get a script from the net working, but am not having much luck with it. Ive attached my files. Upon clicking any one of the 'Add' submit buttons, the script won't update the cart? I've checked the console error log and get the following error: see
screen shot for a description. From the console, the path in the error doesn't seem to make sense? I mean, I'm looking for a path along the lines of:
Code:
http://localhost/demo/demo/
Any ideas? Smile

El Forum

[eluser]OliverHR[/eluser]
Do you update your config/config.php $config['base_url'] ??

El Forum

[eluser]1cookie[/eluser]
[quote author="OliverHR" date="1286181505"]Do you update your config/config.php $config['base_url'] ??[/quote]

hi

Yes, these are set to

Code:
$config['base_url']    = "http://localhost/demo/demo/";

$config['index_page'] = "";



resp..Smile I am, of course, using .htaccess.

El Forum

[eluser]danmontgomery[/eluser]
assets/js/core.js:
Code:
var link = "/tutorials/CodeIgniter_Shopping_Cart/demo/index.php/";

El Forum

[eluser]1cookie[/eluser]
[quote author="noctrum" date="1286242763"]assets/js/core.js:
Code:
var link = "/tutorials/CodeIgniter_Shopping_Cart/demo/index.php/";
[/quote]

Ah, I see, replace:

Code:
var link = "/tutorials/CodeIgniter_Shopping_Cart/demo/index.php/";
with
Code:
var link = "http://localhost/demo/demo/";

and it works a charm..Smile Many thanks noctrum, very helpful...