Академический Документы
Профессиональный Документы
Культура Документы
Easy Changes
You can change following things in admin -> extensions -> modules -> Theme options
1.
2.
3.
4.
Customization Tips
Javascript :
Bootstraps Js : catalog/view/javascript/bootstrap
FlexSliders Js : catalog/view/javascript/jquery/flexslider
Stylesheet :
Path : catalog/view/theme/bootstrap/stylesheet
Main stylesheet (you need to care about)
1.
2.
3.
4.
bootstrap.css
bootstrap-responsive.css
style.css
style-responsive.css
$this->cart->getProducts()
$this->cart->add( $product_id, $qty = 1, $options =array())
$this->cart->remove($key)
$this->cart->clear()
$this->cart->getWeight()
$this->cart->getSubTotal()
$this->cart->getTotal()
$this->cart->countProducts()
$this->cart->hasProducts()
$this->cart->hasStock()
$this->cart->hasProducts()
$this->cart->hasDownload()
Config:
Config allows you to set and get key and value pairs, these pairs can be use to store settings, that you
can later use.
$this->config->get($key);
$this->config->set($key, $value);
Currency:
Currency allows you to get and change the current currency settings.
$this->currency->set($currency);
$this->currency->format($number, $currency = '', $value = '', $format = TRUE);
$this->currency->convert($value, $from, $to);
$this->currency->getValue($currency);
$this->currency->getCode();
$this->currency->getID();
Customer:
Customer settings allows you to get customer profile and allows to login/logout the customer.
$this->customer->login($email, $password);
$this->customer->logout();
$this->customer->isLogged();
$this->customer->isLogged();
$this->customer->getFirstName();
$this->customer->getLastName();
$this->customer->getEmail();
this->customer->getTelephone();
$this->customer->getFax();
$this->customer->getNewsletter();
$this->customer->getCustomerGroupId();
this->customer->getAddressId();
Database:
Database functions allow you to access the database, and get/insert/update the database tables.
$this->db->query($sql);
$this->db->escape($value);
$this->db->countAffected($sql);
$this->db->getLastId($sql);
Document (Page):
Document allows you to access the current page, before it has been loaded (in the controller):
$this->document->setTile($value);
$this->document->getTile();
$this->document->setDescription($value);
$this->document->getDescription();
$this->document->setKeywords($value);
$this->document->getKeywords();
$this->document->getLinks();
$this->document->getStyles();
$this->document->addStyles();
Encryption:
Encryption functions allow you to encrypt and decrypt text:
$this->encryption->encrypt($value);
$this->encryption->decrypt($value)
Request:
Request functions allow you to get data through post and get, and clean them of malicious code:
$this->request->clean($data);
$this->request->get['x'];
$this->request->post['x']
Session:
Session allows you to set and get session key and values:
$this->session->data['key'];
Current Template
$this->config->get['config_template'];
Current language and currency
<?php echo $_SESSION['currency']; ?>
<?php echo $_SESSION['language']; ?>