Cart Class - Add another product |
[eluser]alan-tucker[/eluser]
Hi When adding a product to the basket which has already been previously added how can I update the QTY? One issue is production option combinations where they have the same id/sku coder but may have different options of like a colour or/and size etc. Code: $data = array( Thanks
[eluser]alan-tucker[/eluser]
Sorted, see http://ellislab.com/forums/viewthread/129037/
[eluser]jcavard[/eluser]
[quote author="alan-tucker" date="1253282617"] Code: redirect($this->config->item('base_url')."basket/"); Just a tip.. Code: redirect(site_url("basket/")); ![]()
[eluser]davidbehler[/eluser]
The standard base_url function does not take any arguments, it only returns what's set as base_url in the config. I have an updated version of this function where it actually does take arguments (e.g. to generate urls to images, css files and so on) and I'm pretty sure I've posted it before... But Code: redirect('basket');
[eluser]jcavard[/eluser]
[quote author="waldmeister" date="1253294650"]The standard base_url function does not take any arguments, it only returns what's set as base_url in the config. I have an updated version of this function where it actually does take arguments (e.g. to generate urls to images, css files and so on) and I'm pretty sure I've posted it before... But Code: redirect('basket'); Right on! I jsut realised I had post the wrong site_url/base_url(). I came to correct my mistake, thanks waldmeister!
[eluser]alan-tucker[/eluser]
just noticed that adding a "/" at the end e.g. redirect(site_url('basket/')); sends me back to domain.com/basket when i would like it to be domain.com/basket/
[eluser]jcavard[/eluser]
[quote author="alan-tucker" date="1253295452"]just noticed that adding a "/" at the end e.g. redirect(site_url('basket/')); sends me back to domain.com/basket when i would like it to be domain.com/basket/[/quote] CI trims that leading '/'. try this then Code: redirect(base_url() . 'basket/'); ![]() |
Welcome Guest, Not a member yet? Register Sign In |