Jump to content

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

Show Total Number Of Items Available On Cart And Checkout? Rate Topic   - - - - -

 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 29 December 2020 - 08:39 AM #1

How can i show number of available products on cart and checkout pages



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21980 posts

Posted 29 December 2020 - 02:10 PM #2

Do you available items in stock? Where do you want to display this information?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

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

Posted 29 December 2020 - 11:54 PM #3

Are you meaning that if someone bought 5 of X and there are 20 in stock you want to add some text similar to:

"(15 more available)"

 

Your requirements are not clear.


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.


 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 30 December 2020 - 11:42 AM #4

Are you meaning that if someone bought 5 of X and there are 20 in stock you want to add some text similar to:

"(15 more available)"

 

Your requirements are not clear.

Yes, exactly, that's what i wanna achieve



 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 30 December 2020 - 11:44 AM #5

Do you available items in stock? Where do you want to display this information?

Yes, there items in stock but the {$product.amount} variable only shows the amount added to cart, I want to show this on the cart and checkout pages. tbirnseth explained it better



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21980 posts

Posted 30 December 2020 - 01:10 PM #6

Try 

{$product.product_id|fn_get_product_amount}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 30 December 2020 - 01:54 PM #7

 

Try 

{$product.product_id|fn_get_product_amount}

Wow, Thank you it worked



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

Posted 30 December 2020 - 10:02 PM #8

 

 

Try 

{$product.product_id|fn_get_product_amount}

Wow, Thank you it worked

 

 

Be sure to check and compare your stock levels.  You may find that in the cart you need to deduct $product.amount and in checkout it is probably already deducted.  Not sure, but you should check.  I forget when cs-cart "reserves" stock whether it's on add to cart or on purchase.


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.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21980 posts

Posted 31 December 2020 - 08:19 AM #9

 

Wow, Thank you it worked

 

 

You are welcome! Happy New Year!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 02 January 2021 - 05:26 PM #10

You are welcome! Happy New Year!

Happy new year boss, thank you for what you do!