Jump to content

finding cart item !


JohnSmith2k8

Recommended Posts

Hi to All

i'm new in Prestashop Developer World and need Some Help.
i want write my own module and need these item
1. list of product with quantity that soled to customer
2. some information about customer (Email , name)
3. send email to customer
4. chekc the payment (if payment done successfully)

in my research i found the PaymentReturn hook and $cart.

my first module template found in internet , please change to these template to display
list of product with quantity that soled to customer and customer information (email and name) :
File : fashion.php

<?php

class Fashion extends Module
{
   function __construct()
   {
       $this->name = 'fashion';
       $this->tab = 'Blocks';
       $this->version = 1.0;

       parent::__construct(); // The parent construct is required for translations

       $this->page = basename(__FILE__, '.php');
       $this->displayName = $this->l('Block Fashion');
       $this->description = $this->l('Add a fashion block');
   }

   function install()
   {
       if (!parent::install())
           return false;
       if (!$this->registerHook('leftColumn'))
           return false;
       return true;
   }

   /**
   * Returns module content
   *
   * @param array $params Parameters
   * @return string Content
   */
   function hookLeftColumn($params)
   {
       return $this->display(__FILE__, 'fashion.tpl');
   }

}

?>



File:fashion.tpl

<!-- fashion module -->

Fashion

       My First Prestashop module




<!-- end fashion module -->


[/code]


Thank a lot

fashion.zip

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...