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
  • 19063 posts

Posted 23 December 2015 - 08:21 AM #61

Please add post hooks to getAvailable, get and getSimpleLanguages functions (app/Tygh/Languages/Languages.php)


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 руб.


 
  • ailyin
  • Newbie
  • Trial users
  • Join Date: 25-Nov 15
  • 1 posts

Posted 23 December 2015 - 06:00 PM #62

Hi,

 

Please add template hooks for adding additional fields/table columns in:

design/backend/templates/addons/banners/views/banners/manage.tpl

and

design/backend/templates/addons/banners/views/banners/update.tpl

 

e.g.

{hook name="banners:general_content"}

{hook name="banners:manage_header"}{/hook}

{hook name="banners:manage_data"}{/hook}

 

Thanks!

Hello. We implemented these hooks and they will be available in the closest release. Thank you for your participation. Here's a diff file to give you an idea of what to expect.



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

Posted 31 December 2015 - 07:44 PM #63

Please add the following hooks to app/addons/buy_together/func.php in the function fn_buy_together_get_chains().

Following the definition of the $fields array:

    fn_set_hook('buy_together_get_chains_pre', $fields, $params, $auth, $lang_code);

and (for consistency) just before the return of $chains:

    fn_set_hook('buy_together_get_chains_post', $chains, $params, $auth, $lang_code);

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.


 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 607 posts

Posted 11 January 2016 - 09:18 AM #64

Please add hook

 

/design/backend/templates/views/products/update.tpl

 

{hook name="products:product_categories"}

 
                    <div class="control-group {$no_hide_input_if_shared_product}" id="product_categories">
                        {math equation="rand()" assign="rnd"}
                        {if $smarty.request.category_id}
                            {assign var="request_category_id" value=","|explode:$smarty.request.category_id}
                        {else}
                            {assign var="request_category_id" value=""}
                        {/if}
                        <label for="ccategories_{$rnd}_ids" class="control-label cm-required">{__("categories")}</label>
                        <div class="controls">
                            {include file="pickers/categories/picker.tpl" hide_input=$product_data.shared_product company_ids=$product_data.company_id rnd=$rnd data_id="categories" input_name="product_data[category_ids]" radio_input_name="product_data[main_category]" main_category=$product_data.main_category item_ids=$product_data.category_ids|default:$request_category_id hide_link=true hide_delete_button=true display_input_id="category_ids" disable_no_item_text=true view_mode="list" but_meta="btn"}
                        </div>
                    <!--product_categories--></div>
{/hook}
 

Team of SoftSolid
cs-cart.pl

 
  • imac
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2046 posts

Posted 13 January 2016 - 12:55 PM #65

Please add post hooks to getAvailable, get and getSimpleLanguages functions (app/Tygh/Languages/Languages.php)

 

Please let me know the use case. I'm note sure if we need to add all 3 type of hooks (pre,sql,post) to these methods.


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

 
  • imac
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2046 posts

Posted 13 January 2016 - 12:59 PM #66

 

Please add the following hooks to app/addons/buy_together/func.php in the function fn_buy_together_get_chains().

Following the definition of the $fields array:

    fn_set_hook('buy_together_get_chains_pre', $fields, $params, $auth, $lang_code);

and (for consistency) just before the return of $chains:

    fn_set_hook('buy_together_get_chains_post', $chains, $params, $auth, $lang_code);

Planned for 4.3.6


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

 
  • imac
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2046 posts

Posted 13 January 2016 - 01:01 PM #67

 

Please add hook

 

/design/backend/templates/views/products/update.tpl

 

{hook name="products:product_categories"}

 
                    <div class="control-group {$no_hide_input_if_shared_product}" id="product_categories">
                        {math equation="rand()" assign="rnd"}
                        {if $smarty.request.category_id}
                            {assign var="request_category_id" value=","|explode:$smarty.request.category_id}
                        {else}
                            {assign var="request_category_id" value=""}
                        {/if}
                        <label for="ccategories_{$rnd}_ids" class="control-label cm-required">{__("categories")}</label>
                        <div class="controls">
                            {include file="pickers/categories/picker.tpl" hide_input=$product_data.shared_product company_ids=$product_data.company_id rnd=$rnd data_id="categories" input_name="product_data[category_ids]" radio_input_name="product_data[main_category]" main_category=$product_data.main_category item_ids=$product_data.category_ids|default:$request_category_id hide_link=true hide_delete_button=true display_input_id="category_ids" disable_no_item_text=true view_mode="list" but_meta="btn"}
                        </div>
                    <!--product_categories--></div>
{/hook}
 

 

Please let me know the use case why you need the hook.

We can not wrap it property of the product with hook.


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
  • 19063 posts

Posted 13 January 2016 - 02:59 PM #68

Please let me know the use case. I'm note sure if we need to add all 3 type of hooks (pre,sql,post) to these methods.

 

Here is an example:

 

http://forum.cs-cart...or-by-position/


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 руб.


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

Posted 14 January 2016 - 06:35 PM #69

Please add a new template hook in:

responsive/templates/views/orders/details.tpl

 

Just above the row for the order total, please add a hook of:

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

So we can add additional fees that have been applied BEFORE the order total and after the text info related to shipping and payment.

You have one on the backend, need a complementary one on the frontend.


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.


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

Posted 14 March 2016 - 06:55 PM #70

Please add a hook around the entirety of the backend/templates/veiws/exim/components/csv_delimiters.tpl such as:

{hook name="exim:csv_delimiters"}
<select name="{$name}" {if $id}id="{$id}"{/if}>
<option value="S" {if $value == "S"}selected="selected"{/if}>{__("semicolon")}</option>
<option value="C" {if $value == "C"}selected="selected"{/if}>{__("comma")}</option>
<option value="T" {if $value == "T"}selected="selected"{/if}>{__("tab")}</option>
</select>
{/hook}

 

Almost every customer (especially the MVE clients) don't like the semicolon being the default delimiter.


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.


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3754 posts

Posted 14 March 2016 - 10:10 PM #71

Please add a hook around the entirety of the backend/templates/veiws/exim/components/csv_delimiters.tpl such as:

{hook name="exim:csv_delimiters"}
<select name="{$name}" {if $id}id="{$id}"{/if}>
<option value="S" {if $value == "S"}selected="selected"{/if}>{__("semicolon")}</option>
<option value="C" {if $value == "C"}selected="selected"{/if}>{__("comma")}</option>
<option value="T" {if $value == "T"}selected="selected"{/if}>{__("tab")}</option>
</select>
{/hook}

Almost every customer (especially the MVE clients) don't like the semicolon being the default delimiter.

 

One of the many reasons why it's frustrating that they took away the file comparison/conflicts.  Although this file doesn't change much if at all.



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

Posted 15 March 2016 - 07:36 PM #72

But you could probably just override this template since it's the whole thing by putting your copy in:

design/backend/templates/addons/my_changes/overrides/views/exim/components/csv_delimiters.tpl

Which would insulate it from upgrades but not let you see if any changes were made the original file.  But in this case, probably zero risk.


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
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2046 posts

Posted 18 March 2016 - 02:59 PM #73

Please add post hooks to getAvailable, get and getSimpleLanguages functions (app/Tygh/Languages/Languages.php)

I apologize it took a while:)) 

It will be there, in 4.3.7


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

 
  • imac
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2046 posts

Posted 18 March 2016 - 03:27 PM #74

Please add a new template hook in:

responsive/templates/views/orders/details.tpl

 

Just above the row for the order total, please add a hook of:

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

So we can add additional fees that have been applied BEFORE the order total and after the text info related to shipping and payment.

You have one on the backend, need a complementary one on the frontend.

Created a task for this.

But the hook most probably will be named "{hook name="orders:order_total"}" and will wrap the order total row.


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

 
  • imac
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2046 posts

Posted 18 March 2016 - 03:29 PM #75

Please add a hook around the entirety of the backend/templates/veiws/exim/components/csv_delimiters.tpl such as:

{hook name="exim:csv_delimiters"}
<select name="{$name}" {if $id}id="{$id}"{/if}>
<option value="S" {if $value == "S"}selected="selected"{/if}>{__("semicolon")}</option>
<option value="C" {if $value == "C"}selected="selected"{/if}>{__("comma")}</option>
<option value="T" {if $value == "T"}selected="selected"{/if}>{__("tab")}</option>
</select>
{/hook}

Almost every customer (especially the MVE clients) don't like the semicolon being the default delimiter.

Tony,

 

Why don't you override this template in your add-on?

The hook will do absolutely the same.


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

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

Posted 18 March 2016 - 07:38 PM #76

Yes, you're right.  Not needed to add a hook for this tiny template.  An override will do.


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.


 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1244 posts

Posted 19 March 2016 - 08:23 AM #77

Please add:
 
1.
 
#file


design/themes/responsive/templates/views/product_features/view.tpl

#hook

{hook name="product_features:view"}
...
{/hook}

 
2.

#file

design/themes/responsive/templates/views/product_features/view_all.tpl

#hook

{hook name="product_features:view_all"}
...
{/hook}

 
 
Thank you,
---
Valentin
part of hungryweb.net



 
  • imac
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2046 posts

Posted 21 March 2016 - 10:07 AM #78

Please add:
 
1.
 
#file


design/themes/responsive/templates/views/product_features/view.tpl

#hook

{hook name="product_features:view"}
...
{/hook}

 
2.

#file

design/themes/responsive/templates/views/product_features/view_all.tpl

#hook

{hook name="product_features:view_all"}
...
{/hook}

 
 
Thank you,
---
Valentin
part of hungryweb.net

Dear Valentin,

 

You need the hook that wrap the whole template product_features/view.tpl & product_features/view_all.tpl?

If you completely wrap the template this means you will override it?


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

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1244 posts

Posted 21 March 2016 - 10:58 AM #79

Dear Valentin,

 

You need the hook that wrap the whole template product_features/view.tpl & product_features/view_all.tpl?

If you completely wrap the template this means you will override it?

 

No, I use .pre , thanks Imac



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

Posted 23 March 2016 - 07:56 PM #80

Please add a hook that either encloses or prepends to the summary order total in orders/details.tpl.  Goal is to be able to add an item (such as a fee or additional charge) to the list of fees just above the total.  Right now, the only way is to use the totals.pre.tpl which places it at the top above the descriptive info rather than ahead of the total with the rest of the fees.  If enclosing, name it something like orders:summary_total and if not something like orders:additional_fees.


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.