Shopping cart v1.1 minor updates

jquery ketchup-plugin

Codeigniter Language Helper

http://codeigniter.com/user_guide/helpers/language_helper.html

We can simplify

echo $this->lang->line();

to

echo lang('language_key', 'form_item_id');

Updating Preferences/Settings

Adding all the webshop languages in the back-end so that it will be automatically used.

External link in menu

$uri = $menu['page_uri'];
			$external_link   = 'http';
			$pos = strpos($uri, $external_link);

			// Note our use of ===.  Simply == would not work as expected
			// because the position of 'a' was the 0th (first) character.
			if ($pos === false) {
			    echo anchor ("welcome/pages/".$menu['page_uri'], $menu['name']);
			} else {
			    echo anchor ($menu['page_uri'], $menu['name']);
			}

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>