Jump to content

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

How To Create A Custom Block Without Mychanges Addon Rate Topic   - - - - -

 
  • sddev
  • Newbie
  • Trial users
  • Join Date: 05-Dec 18
  • 8 posts

Posted 06 March 2019 - 03:18 PM #1

So I followed this tutorial to create an addon, and it worked, but the issue is that I want it to be a block so it can be added to the homepage from the admin panel. I dont want to use mychanges addon for this. How can I move this to the block so when I add new block it would show up in the create new block tab?



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

Posted 07 March 2019 - 05:02 AM #2

You  can use HTML block with Smarty support  and call php functions there


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    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • sddev
  • Newbie
  • Trial users
  • Join Date: 05-Dec 18
  • 8 posts

Posted 07 March 2019 - 02:05 PM #3

No I need to make a custom one without smarty block as well, I need it to be in create new blocks, and allow the admin to add a backgroud from the block and display product categories


I started by adding the block in the block.php file, but where can I add the designand the hooks?



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

Posted 08 March 2019 - 05:55 AM #4

Why you do not want to use custom addon?


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    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.