Jump to content

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

Create an Add-On for version 2.2.4 Rate Topic   - - - - -

 

Posted 04 September 2012 - 01:30 PM #1

Hello,

I am new to CS-Cart and I want to create an Add-On for Opt-in Box. I checked the tutorial on this link http://docs.cs-cart....add-on-tutorial but it says that the code will only work for CS-Cart 3. I have already created an initial config for the add-on and it is seen already on the admin management side. I was able to install, uninstall and edit the settings of the add-on. What I want to know is how to connect this add-on using hooks so that it will work on the customer side and also, what HOOK should I use? I want it (opt-in box) to display on all pages.

Does anyone out there has an idea? Any help would be much appreciated. Thank you! :-)

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

Posted 06 September 2012 - 06:26 AM #2

By an "opt in box" do you mean like a subscription block? If so, why not just create it as a block and then you can include/exclude it on whatever page you want just like any other block. You'd put your block in
skins/<skin_name>/customer/addons/<addon_name>/blocks/<block_name>.tpl in V2 and in V3 you can put the block anywhere but it is referenced by a schemas/block_manager/blocks.post.php.

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.