Jump to content
Sign in to follow this  
mati010

Liczenie obrotu klienta w panelu PS 1.7

Recommended Posts

Witajcie, chciałbym zrobić, aby klient w B2B wchodził w swoim koncie do histori zamówień i tam oprócz widocznych zamówień z cenami ile wydał miał podsumowanie ile wydał (czyli w skrócie miał dodane wszystkie kwoty z zamówień), lecz nie wiem jak zabrać się za to. Ma ktoś może pomysł?

Share this post


Link to post
Share on other sites

Dzięki mam! Dla potomnych:

 

{$Total = 0 }  
        {foreach from=$orders item=order}
   {$Total = $Total+ $order.totals.total.amount }
         {/foreach}
  
  {$Total}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More