How to show share button underneath the two thumbnails in product detail page
you need to create the view_main_info.override.tpl file with the following part of code in the skins/basic/customer/addons/my_changes/hooks/products directory (if you do not have these directories, you need to create them):
```php
{if $product}
{assign var=“obj_id” value=$product.product_id}
{include file=“common_templates/product_data.tpl” product=$product separate_buttons=$separate_buttons|default:true but_role=“big” but_text=$lang.add_to_shopping_cart}
{if !$no_images}
{include file="views/products/components/product_images.tpl" product=$product show_detailed_link="Y"}
{/if}
{assign var="form_open" value="form_open_`$obj_id`"}
{$smarty.capture.$form_open}
{if !$hide_title}
{$product.product|unescape}
{/if}{assign var="rating" value="rating_`$obj_id`"}{$smarty.capture.$rating}
{assign var="sku" value="sku_$obj_id"}{$smarty.capture.$sku}
{assign var="old_price" value="old_price_`$obj_id`"}
{assign var="price" value="price_`$obj_id`"}
{assign var="clean_price" value="clean_price_`$obj_id`"}
{assign var="list_discount" value="list_discount_`$obj_id`"}
{assign var="discount_label" value="discount_label_`$obj_id`"}
{if $smarty.capture.$old_price|trim || $smarty.capture.$clean_price|trim || $smarty.capture.$list_discount|trim}
{if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price} {/if}
{/if}
{if !$smarty.capture.$old_price|trim || $details_page}
{/if}
{$smarty.capture.$price}
{if !$smarty.capture.$old_price|trim || $details_page}
{if $smarty.capture.$old_price|trim || $smarty.capture.$clean_price|trim || $smarty.capture.$list_discount|trim}
{$smarty.capture.$clean_price}
{$smarty.capture.$list_discount}
{/if}
{if $show_discount_label && $smarty.capture.$discount_label|trim}
{$smarty.capture.$discount_label}
{/if}
{if $capture_options_vs_qty}{capture name="product_options"}{/if}
{assign var="product_amount" value="product_amount_`$obj_id`"}
{$smarty.capture.$product_amount}
{assign var="product_options" value="product_options_`$obj_id`"}
{$smarty.capture.$product_options}
{assign var="advanced_options" value="advanced_options_`$obj_id`"}
{$smarty.capture.$advanced_options}
{if $capture_options_vs_qty}{/capture}{/if}
{assign var="min_qty" value="min_qty_`$obj_id`"}
{$smarty.capture.$min_qty}
{assign var="product_edp" value="product_edp_`$obj_id`"}
{$smarty.capture.$product_edp}
{if $show_descr}
{assign var="prod_descr" value="prod_descr_`$obj_id`"}
{$lang.description}
{$smarty.capture.$prod_descr}
{/if}
{if $capture_buttons}{capture name="buttons"}{/if}
{assign var="qty" value="qty_`$obj_id`"}
{$smarty.capture.$qty}
{if $show_details_button}
{include file="buttons/button.tpl" but_href="products.view?product_id=`$product.product_id`" but_text=$lang.view_details but_role="submit"}
{/if}
{assign var="add_to_cart" value="add_to_cart_`$obj_id`"}
{$smarty.capture.$add_to_cart}
{assign var="list_buttons" value="list_buttons_`$obj_id`"}
{$smarty.capture.$list_buttons}
{if $capture_buttons}{/capture}{/if}
{assign var="form_close" value="form_close_`$obj_id`"}
{$smarty.capture.$form_close}
{if $show_product_tabs}
{include file="views/tabs/components/product_popup_tabs.tpl"}
{$smarty.capture.popupsbox_content}
{/if}
{/if}
```
After that clear the template cache. In order to do it you need to log in to your store administration panel and add the ?cc text to the end of the path in the browser.
For example: http://YOUR_DOMAIN/ADMIN_SCRIPT?cc
[b]If you rather need this under product code then follow this instruction[/b]
```php
{if $product}
{assign var="obj_id" value=$product.product_id}
{include file="common_templates/product_data.tpl" product=$product separate_buttons=$separate_buttons|default:true but_role="big" but_text=$lang.add_to_shopping_cart}
{if !$no_images}
{include file="views/products/components/product_images.tpl" product=$product show_detailed_link="Y"}
{/if}
{assign var="form_open" value="form_open_`$obj_id`"}
{$smarty.capture.$form_open}
{if !$hide_title}
{$product.product|unescape}
{/if}{assign var="rating" value="rating_`$obj_id`"}{$smarty.capture.$rating}
{assign var="sku" value="sku_$obj_id"}{$smarty.capture.$sku}
{assign var="old_price" value="old_price_`$obj_id`"}
{assign var="price" value="price_`$obj_id`"}
{assign var="clean_price" value="clean_price_`$obj_id`"}
{assign var="list_discount" value="list_discount_`$obj_id`"}
{assign var="discount_label" value="discount_label_`$obj_id`"}
{if $smarty.capture.$old_price|trim || $smarty.capture.$clean_price|trim || $smarty.capture.$list_discount|trim}
{if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price} {/if}
{/if}
{if !$smarty.capture.$old_price|trim || $details_page}
{/if}
{$smarty.capture.$price}
{if !$smarty.capture.$old_price|trim || $details_page}
{if $smarty.capture.$old_price|trim || $smarty.capture.$clean_price|trim || $smarty.capture.$list_discount|trim}
{$smarty.capture.$clean_price}
{$smarty.capture.$list_discount}
{/if}
{if $show_discount_label && $smarty.capture.$discount_label|trim}
{$smarty.capture.$discount_label}
{/if}
{if $capture_options_vs_qty}{capture name="product_options"}{/if}
{assign var="product_amount" value="product_amount_`$obj_id`"}
{$smarty.capture.$product_amount}
{assign var="product_options" value="product_options_`$obj_id`"}
{$smarty.capture.$product_options}
{assign var="advanced_options" value="advanced_options_`$obj_id`"}
{$smarty.capture.$advanced_options}
{if $capture_options_vs_qty}{/capture}{/if}
{assign var="min_qty" value="min_qty_`$obj_id`"}
{$smarty.capture.$min_qty}
{assign var="product_edp" value="product_edp_`$obj_id`"}
{$smarty.capture.$product_edp}
{if $show_descr}
{assign var="prod_descr" value="prod_descr_`$obj_id`"}
{$lang.description}
{$smarty.capture.$prod_descr}
{/if}
{if $capture_buttons}{capture name="buttons"}{/if}
{assign var="qty" value="qty_`$obj_id`"}
{$smarty.capture.$qty}
{if $show_details_button}
{include file="buttons/button.tpl" but_href="products.view?product_id=`$product.product_id`" but_text=$lang.view_details but_role="submit"}
{/if}
{assign var="add_to_cart" value="add_to_cart_`$obj_id`"}
{$smarty.capture.$add_to_cart}
{assign var="list_buttons" value="list_buttons_`$obj_id`"}
{$smarty.capture.$list_buttons}
{if $capture_buttons}{/capture}{/if}
{assign var="form_close" value="form_close_`$obj_id`"}
{$smarty.capture.$form_close}
{if $show_product_tabs}
{include file="views/tabs/components/product_popup_tabs.tpl"}
{$smarty.capture.popupsbox_content}
{/if}
{/if}
```
Please make sure to change your addthis ID