{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'catalog'} {/block} {block name="check-resource"}admin.product{/block} {block name="check-access"}update{/block} {block name="page-title"}{intl l='Edit product'}{/block} {block name="main-content"}
{include file="includes/catalog-breadcrumb.html" editing_category="false" editing_product="true"} {hook name="product-edit.top" product_id=$product_id}
{loop name="product_edit" type="product" visible="*" id=$product_id backend_context="1" with_prev_next_info=true lang=$edit_language_id} {* Define close url *} {assign var='close_url' value="{url path='/admin/catalog' category_id=$DEFAULT_CATEGORY}"}
{intl l='Edit product %title' title={$TITLE}}{if $REF} ({intl l='ref.:'} {$REF}){/if}
{hookblock name="product.tab" id="{$product_id}" fields="id,title,href,content"} {capture "product_tab_tab"} {forhook rel="product.tab"}
- {$title}
{/forhook} {/capture} {capture "product_tab_content"} {forhook rel="product.tab"}
{if $href} {* ajax *}
{intl l="Please wait, loading"}
{else} {$content nofilter} {/if}
{/forhook} {/capture} {/hookblock}
{include file="includes/product-general-tab.html"}
{include file="includes/seo-tab.html" formAction = "{url path='/admin/products/seo/save'}" pageUrl = "{url path='/admin/products/update' product_id=$ID}" closeUrl = $close_url current_id = $product_id success_url = "{url path='/admin/categories' category_id=$DEFAULT_CATEGORY page=$page}" seoType = 'product' }
{include file="includes/product-prices-tab.html"}
{intl l="Please wait, loading"}
{intl l="Please wait, loading"}
{intl l="Please wait, loading"}
{intl l="Please wait, loading"}
{$smarty.capture.product_tab_content nofilter}
{include file = "includes/inner-form-toolbar.html" hide_submit_buttons = true page_url = {$pageUrl} close_url = {$closeUrl} current_tab = "modules" }
{* ugly fix : {hook name="product.tab-content" id="{$product_id}" view="product"} *} {include file="includes/module-tab-content.html" hook="product.tab-content" location="product-edit" id="{$product_id}" view="product"}
{/loop}
{hook name="product-edit.bottom" product_id=$product_id}

### {intl l="warning"}

{intl l="If you change the product template, some of the product attribute combinations may be deleted, and you may have to reconfigure some of product prices."}

{form name="thelia.admin.product.clone"}

### {intl l="Clone product"}

{if $form_error && $form_error_message}
{$form_error_message}
{/if} {form_hidden_fields form=$form} {form_field form=$form field="productId"} {/form_field}
{form_field form=$form field="newRef"} {$label} {/form_field}
{/form} {/block} {block name="javascript-initialization"} {javascripts file='assets/js/dropzone.js'}
{/javascripts} {javascripts file='assets/js/image-upload.js'}
{/javascripts} {javascripts file='assets/js/document-upload.js'}
{/javascripts} {javascripts file='assets/js/bootstrap-editable/bootstrap-editable.js'}
{/javascripts} {javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'}
{/javascripts} {javascripts file='assets/js/jquery.typewatch.js'}
{/javascripts} {javascripts file='assets/js/jquery-ui-1.10.3.custom.min.js'}
{/javascripts}
{/block} {block name="javascript-last-call"} {hook name="product.edit-js" location="product-edit-js" product_id={$product_id} } {hook name="wysiwyg.js" location="wysiwyg-product-edit-js" } {/block}