Jump to content

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

Insert Template Anywhere On A Page From Addon Rate Topic   - - - - -

 

Posted 28 April 2020 - 04:39 AM #1

Hello, currently I'm trying to make an addon that would add embeded youtube links to a vendors description. Is there any way to add a template from the addon to that description besides using hooks and overriding the companies view template? For example maybe add template after the #content_description div or inside it.

 

The reason I want to do this is because cs cart doesn't let you to insert an iframe in the vendor description unless you disable the sanitize option.



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

Posted 28 April 2020 - 06:44 AM #2

You can use get_company_data_post hook (app/functions/fn.companies.php) to alter vendor description


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)

 

Posted 28 April 2020 - 03:42 PM #3

Thanks. I managed to make it work