Jump to content

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

Show Message On Product, Only For Users Not Logged In. Rate Topic   - - - - -

  • blythweb
  • Member
  • Members
  • Join Date: 27-Jun 14
  • 21 posts

Posted 02 September 2021 - 01:15 PM #1



I've been looking to see if I can add a 'Login to see trade prices' message on the cart / products which is only displayed for people not logged in.


I could do this by selecting 'Hide Add to cart button' on the Allow shopping for unlogged customers and to change the text to say 'Login for trade prices'


However, I need both, so unlogged people can still add to cart but also have a message saying login for trade prices.


Does anyone know if this is possible?



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

Posted 02 September 2021 - 02:30 PM #2

I am afraid, this is not possible out of the box

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 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)

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

Posted 02 September 2021 - 07:00 PM #3

You would need to utilize a hook for the position you want it with content similar to:

{if !$auth.user_id}
  your html content here


Suggest you put your hook in the my_changes addon.

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.