agni.proxima Posted May 30, 2017 Share Posted May 30, 2017 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 More sharing options...
Nishith Nesdiya Posted May 31, 2017 Share Posted May 31, 2017 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 More sharing options...
agni.proxima Posted June 1, 2017 Author Share Posted June 1, 2017 HI.. best way you need create a custom module for this.read this http://doc.prestashop.com/display/PS16/Creating+a+first+module thanks Thanks for the quick reply. I am a newbie in PS, so any help is appreciated. I will try it out and post my findings. Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted June 1, 2017 Share Posted June 1, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now