Вы находитесь на странице: 1из 4

Hi Delyan,

Here are some tips that you ask for

Easy Changes
You can change following things in admin -> extensions -> modules -> Theme options
1.
2.
3.
4.

font-color, font-size & font-family of heading titles,descriptions, Links


navigation menu color
Background Color of theme
Background Image of theme

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

1st and 2nd stylesheets contains all bootstrap elements.


3rd and 4th stylesheets contains all the styling used for this bootstrap theme.
2nd and 4th stylesheets are for responsive devices.
So in order to make design customization all you need to consider is style.css and style-responsive.css
Template Files :
You can do all the hard-code customization using bootstrap theme template files.
Path : catalog/view/theme/bootstrap/template

Header & Footer : catalog/view/theme/bootstrap/template/common


Category & Product Details Page : catalog/view/theme/bootstrap/template/product
View cart & Cart page : catalog/view/theme/bootstrap/template/checkout

Some Extra stuff that might useful for you


Cart:
Cart functions allows you toget and manipulate the content of the current shopping cart.

$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']; ?>

Вам также может понравиться