Jump to content

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

Your Add-On Needs A New Hook In Cs-Cart. Post It Here. Rate Topic   * * * * * 1 votes

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 16,113 posts

Posted 25 October 2017 - 02:15 PM #141

Hooks to functions will be added.
Regarding template hook. If you need to override all template why don't you use http://docs.cs-cart....hlight=override ?

 
There is no hook in the update.tpl which can be overrided. Override the whole template is not good way from my point of view
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10,137 posts

Posted 25 October 2017 - 08:24 PM #142

 

Hi Tony,

 

I see there 

{hook name="orders:totals"}
{/hook}

Right after the shipping line. I suppose you need the hook you've described because you want to display a row before the shipping info?

I created a task for this hook. Also we will add hook for tax row. Will let you know when its finished.

 

 

Yes, this particular customer wanted their internal customer_id and PO number displayed above the shipping info.  Right now I have the template "override'ed to add this an some other content.  But with this hook I can remove the override.


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.


 
  • imac
  • CTO
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 1,849 posts

Posted 26 October 2017 - 07:08 AM #143

 
There is no hook in the update.tpl which can be overrided. Override the whole template is not good way from my point of view

In both cases you will override the whole template. I see no difference here.

Probably you can say the exact place you need to modify.


Ilya Makarov,
CS-Cart Architect Team
Suggest and vote for new features | Report a bug

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 16,113 posts

Posted 26 October 2017 - 08:44 AM #144

In both cases you will override the whole template. I see no difference here.

Probably you can say the exact place you need to modify.

 

Sure, we can extend static data with extra parameters with schema in addon. But only the following types of parameters are supported now:

 

- hidden

- checkbox

- megabox

- select

- input

 

Sometimes it is required to use other parameters like files, multiple checkboxes, additional images and so on


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • avoronin
  • CS-Cart Team
  • CS-Cart Architects
  • Join Date: 23-Oct 17
  • 2 posts

Posted 31 October 2017 - 04:34 AM #145

Hello, Tony.

 
The following hooks will be added in the next version of CS-Cart:
orders:invoice_taxes
orders:invoice_shipping

 



 
  • alagoda
  • CS-Cart Team
  • CS-Cart Architects
  • Join Date: 03-Jul 17
  • 1 posts

Posted 02 November 2017 - 11:56 AM #146

Hello,
 
Here are the hooks that we have added to the next CS-Cart version: https://gist.github....be78b6d815c5cab


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10,137 posts

Posted 03 November 2017 - 11:12 PM #147

Please add a hooks to the produts/update.tpl page for all of the tab areas that do not currently have hooks surrounding them. These hooks should be inside the containing div just like you've done for the SEO tab.  The most notable one at the moment is the Shipping settings section that has no hook in update.tpl nor in the underlying products_shipping_settings.tpl file.

 

I'm going to add the hook "products:update_shipping_settings" to my customer site so please use the same name or advise me if you choose differently.

My usage is to add some packaging descriptions to the shipping_settings so as to allow for repackaging products using the Shippings hooks.


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.