Webocreation

Wednesday, April 13, 2011

Collection of opencart functions that are very useful for ecommerce development






$this->cart->remove($key):
Remove the cart value
$this->cart->update($key, $value):
Update the cart value
$customer_id=$this->customer->getId():
The $customer_id is the logged in Customer ID
$this->request->get[‘get_data’]:
This acts as the $_GET
$this->session->data[‘session_data’]:
This acts as the $_SESSION
$this->request->post[‘post_data’]:
This acts as the $_POST
$this->document->title:
This returns the document title.
$this->document->keywords:
This returns the keywords at the title of the page which is not shown in the document means acts as the meta keywords.
$this->document->description:
This acts as the meta description and will directly located in the head section of the pages.

$this->customer->isLogged():
Check whether the customer is logged in or not

collections of opencart reserved keywordk, opencart functions collections

No comments:

Post a Comment