Welcome Guest, Not a member yet? Register   Sign In
Shopping cart
#1

[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
#2

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

[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.
#4

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

[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...




Theme © iAndrew 2016 - Forum software by © MyBB