Jump to content

Display total amount of orders in the present year


agni.proxima

Recommended Posts

Hello,

Maybe this is a bit too complex, but I’m hoping it can be done.

I need to display the total amount of orders for each client during the present year in my-account.tpl.

 

What I am trying to achieve, is to give my b2b clients the information for a tax in Spain, called 347.

For that, I need my clients to see how much they have spent in my shop during this year, and if possible, reset when the year has ended.

 

I find relevant to say that I am not an expert on java, php, ajax, or any language outside html/css.

My PS is 1.6.1.11

 

Thanks in advance.

 

Link to comment
Share on other sites

Hello,

Maybe this is a bit too complex, but I’m hoping it can be done.

I need to display the total amount of orders for each client during the present year in my-account.tpl.

 

What I am trying to achieve, is to give my b2b clients the information for a tax in Spain, called 347.

For that, I need my clients to see how much they have spent in my shop during this year, and if possible, reset when the year has ended.

 

I find relevant to say that I am not an expert on java, php, ajax, or any language outside html/css.

My PS is 1.6.1.11

 

Thanks in advance.

HI..

 

best way you need create a custom module for this.read this

 

http://doc.prestashop.com/display/PS16/Creating+a+first+module

 

thanks

Link to comment
Share on other sites

Hi...

you need to use "displayCustomerAccount" hook in your custom module.
 

class yourmoduename extends Module{


//youe code here
public function install()
{
return parent::install() && $this->registerHook('displayCustomerAccount');
}


public function hookDisplayCustomerAccount()
{
//youe code here
}


//youe code here
}

Thanks

Link to comment
Share on other sites

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...