Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: integrating template in block  (Read 5934 times)

rvalani

  • Guest
integrating template in block
« on: August 18, 2016, 03:45:43 PM »
HI people,
I am trying to integrate a chart.tpl in my block so I am trying to add script tag but I can't
I need to know where can I put <?php include($this->templateResource('/template/blocks/chart.tpl')) ?> so that it appears in particular block
Thanks,
« Last Edit: August 18, 2016, 03:56:42 PM by rvalani »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6143
  • Karma: +284/-2
    • View Profile
Re: integrating template in block
« Reply #1 on: August 19, 2016, 02:10:02 AM »
Hello.

You can check how other extensions made and check dev docs http://docs.abantecart.com/pages/developer/extension_dev.html

rvalani

  • Guest
Re: integrating template in block
« Reply #2 on: August 19, 2016, 10:49:42 AM »
Thanks for your reply Basara. But this is just a D3 chart I don't want to create an extension is there any other alternative?
I have created a block inserted, D3.min.js I just want to insert it into a particular content.
I tried using onload() as soon as that content loads it should invoke this script but couldn't make it...

 

Powered by SMFPacks Social Login Mod