Hi,
I want to edit a part of the product page. I have been reading these tutorials, but it confuses me.
http://docs.cs-cart.com/4.3.x/developer_guide/addons/tutorials/custom_templates_via_addon.html
http://docs.cs-cart.com/4.3.x/developer_guide/addons/hooking/tpl_hooks.html
http://docs.cs-cart.com/4.3.x/developer_guide/addons/tutorials/advanced.html
I understand how to make a addon.
But I am missing the link where to find the controlling-part or wherever the hook is coming from.
I am working in:
\design\themes\nrp\templates\addons\my_changes\blocks\product_templates\nrp_template.tpl
This is the part where I want to edit something in the source and in the html:
{if $capture_options_vs_qty}{capture name="product_options"}{$smarty.capture.product_options nofilter}{/if}
{assign var="product_amount" value="product_amount_`$obj_id`"}
{$smarty.capture.$product_amount nofilter}
{assign var="qty" value="qty_`$obj_id`"}
{$smarty.capture.$qty nofilter}
{assign var="min_qty" value="min_qty_`$obj_id`"}
{$smarty.capture.$min_qty nofilter}
{if $capture_options_vs_qty}{/capture}{/if}
I can see it is within the hook:
{hook name="products:view_main_info"}
But where does that lead to? Which file do I need to see about how it is build? And how do I override this part? How can I track down where this is all handled?
I want to edit a part of the product page. I have been reading these tutorials, but it confuses me.
http://docs.cs-cart.com/4.3.x/developer_guide/addons/tutorials/custom_templates_via_addon.html
http://docs.cs-cart.com/4.3.x/developer_guide/addons/hooking/tpl_hooks.html
http://docs.cs-cart.com/4.3.x/developer_guide/addons/tutorials/advanced.html
I understand how to make a addon.
But I am missing the link where to find the controlling-part or wherever the hook is coming from.
I am working in:
\design\themes\nrp\templates\addons\my_changes\blocks\product_templates\nrp_template.tpl
This is the part where I want to edit something in the source and in the html:
{if $capture_options_vs_qty}{capture name="product_options"}{$smarty.capture.product_options nofilter}{/if}
{assign var="product_amount" value="product_amount_`$obj_id`"}
{$smarty.capture.$product_amount nofilter}
{assign var="qty" value="qty_`$obj_id`"}
{$smarty.capture.$qty nofilter}
{assign var="min_qty" value="min_qty_`$obj_id`"}
{$smarty.capture.$min_qty nofilter}
{if $capture_options_vs_qty}{/capture}{/if}
I can see it is within the hook:
{hook name="products:view_main_info"}
But where does that lead to? Which file do I need to see about how it is build? And how do I override this part? How can I track down where this is all handled?