-
-
Save ichaykin/bf0483346b566084c10eabd2d7a65a70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/design/themes/responsive/templates/addons/master_products/hooks/products/product_form_close_tag.override.tpl b/design/themes/responsive/templates/addons/master_products/hooks/products/product_form_close_tag.override.tpl | |
new file mode 100644 | |
index 0000000000..7e746a4391 | |
--- /dev/null | |
+++ b/design/themes/responsive/templates/addons/master_products/hooks/products/product_form_close_tag.override.tpl | |
@@ -0,0 +1,4 @@ | |
+{if $product.master_product_id || !$product.company_id} | |
+ {$form_close="form_close_`$product.best_product_offer_id`"} | |
+ {$smarty.capture.$form_close nofilter} | |
+{/if} | |
\ No newline at end of file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/design/themes/responsive/templates/blocks/product_templates/bigpicture_template.tpl b/design/themes/responsive/templates/blocks/product_templates/bigpicture_template.tpl | |
index 3dc21e5f08..4bba6d9bf9 100644 | |
--- a/design/themes/responsive/templates/blocks/product_templates/bigpicture_template.tpl | |
+++ b/design/themes/responsive/templates/blocks/product_templates/bigpicture_template.tpl | |
@@ -134,8 +134,10 @@ | |
{if $capture_buttons}{/capture}{/if} | |
</div> | |
- {assign var="form_close" value="form_close_`$obj_id`"} | |
- {$smarty.capture.$form_close nofilter} | |
+ {hook name="products:product_form_close_tag"} | |
+ {$form_close="form_close_`$obj_id`"} | |
+ {$smarty.capture.$form_close nofilter} | |
+ {/hook} | |
{hook name="products:product_detail_bottom"} | |
{/hook} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/design/themes/responsive/templates/blocks/product_templates/default_template.tpl b/design/themes/responsive/templates/blocks/product_templates/default_template.tpl | |
index 926f074fce..d221558d77 100644 | |
--- a/design/themes/responsive/templates/blocks/product_templates/default_template.tpl | |
+++ b/design/themes/responsive/templates/blocks/product_templates/default_template.tpl | |
@@ -127,8 +127,10 @@ | |
</div> | |
{if $capture_buttons}{/capture}{/if} | |
- {assign var="form_close" value="form_close_`$obj_id`"} | |
- {$smarty.capture.$form_close nofilter} | |
+ {hook name="products:product_form_close_tag"} | |
+ {$form_close="form_close_`$obj_id`"} | |
+ {$smarty.capture.$form_close nofilter} | |
+ {/hook} | |
{hook name="products:product_detail_bottom"} | |
{/hook} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks very informative. Thank you so much for sharing. Basically, I need templates for my 2 websites. They are based on Medical and Law. Though I don't have any experience with template creation. This time, I want to try this source https://masterbundles.com/wp-content/uploads/2022/04/a4-1_merged-2.pdf I hope it will serve me better and make a unique and responsive template.