Shopping cart |
[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/
[eluser]OliverHR[/eluser]
Do you update your config/config.php $config['base_url'] ??
[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/"; resp.. I am, of course, using .htaccess.
[eluser]danmontgomery[/eluser]
assets/js/core.js: Code: var link = "/tutorials/CodeIgniter_Shopping_Cart/demo/index.php/";
[eluser]1cookie[/eluser]
[quote author="noctrum" date="1286242763"]assets/js/core.js: Code: var link = "/tutorials/CodeIgniter_Shopping_Cart/demo/index.php/"; Ah, I see, replace: Code: var link = "/tutorials/CodeIgniter_Shopping_Cart/demo/index.php/"; Code: var link = "http://localhost/demo/demo/"; and it works a charm.. Many thanks noctrum, very helpful... |
Welcome Guest, Not a member yet? Register Sign In |