Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Show Order Quantity On Front-End Rate Topic   - - - - -

 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 2302 posts

Posted 05 April 2019 - 03:45 PM #1

Hi! would anybody know how to show the amount of orders we received in total on the front page?

 

Thanks!


When life hands you lemons, bring on the Tequila baby!


 
  • imago
  • Senior Member
  • Members
  • Join Date: 18-Oct 18
  • 461 posts

Posted 05 April 2019 - 04:03 PM #2

Hi! would anybody know how to show the amount of orders we received in total on the front page?

 

Thanks!

 

I can direct you to a newly developed add-on that will help you hide the number of orders you received...  ;)



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11365 posts

Posted 05 April 2019 - 05:08 PM #3

Amount being total number of orders?

HTML Smarty block:

<div>
<p>We've an experienced supplier.  We've processed {"SELECT count(*) FROM ?:orders"|db_get_field} orders to date so you can shop with confidence.</p>
</div>

 

You could get fancier and store that in the user's session to prevent a table scan on every page load and various other performance improvement techniques.  But this would be the quick and dirty way to get it.  You can evolve it to suit your needs.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 2302 posts

Posted 06 April 2019 - 06:03 AM #4

Thanks!


When life hands you lemons, bring on the Tequila baby!