diff --git a/themes/default/product.tpl b/themes/default/product.tpl index 57d465a85..7cb9e330f 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -489,6 +489,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {if $features}
  • {l s='Data sheet'}
  • {/if} {if $attachments}
  • {l s='Download'}
  • {/if} {if isset($accessories) AND $accessories}
  • {l s='Accessories'}
  • {/if} + {if isset($product) && $product->customizable}
  • {l s='Product customization'}
  • {/if} {$HOOK_PRODUCT_TAB}
    @@ -543,77 +544,75 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
    {/if} + + + {if isset($product) && $product->customizable} +
    +
    +

    + {l s='After saving your customized product, remember to add it to your cart.'} + {if $product->uploadable_files}
    {l s='Allowed file formats are: GIF, JPG, PNG'}{/if} +

    + {if $product->uploadable_files|intval} +
    +

    {l s='Pictures'}

    +
      + {counter start=0 assign='customizationField'} + {foreach from=$customizationFields item='field' name='customizationFields'} + {if $field.type == 0} +
    • {assign var='key' value='pictures_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} + {if isset($pictures.$key)} +
      + + + {l s='Delete'} + +
      + {/if} +
      + + +
      +
    • + {counter} + {/if} + {/foreach} +
    +
    + {/if} + {if $product->text_fields|intval} +
    +

    {l s='Texts'}

    +
      + {counter start=0 assign='customizationField'} + {foreach from=$customizationFields item='field' name='customizationFields'} + {if $field.type == 1} +
    • + + +
    • + {counter} + {/if} + {/foreach} +
    +
    + {/if} +

    + + + + +

    +
    +

    * {l s='required fields'}

    +
    + {/if} + {if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if} {/if} - -{if isset($product) && $product->customizable} - -
    -
    -

    - {l s='After saving your customized product, remember to add it to your cart.'} - {if $product->uploadable_files}
    {l s='Allowed file formats are: GIF, JPG, PNG'}{/if} -

    - {if $product->uploadable_files|intval} -
    -

    {l s='Pictures'}

    -
      - {counter start=0 assign='customizationField'} - {foreach from=$customizationFields item='field' name='customizationFields'} - {if $field.type == 0} -
    • {assign var='key' value='pictures_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} - {if isset($pictures.$key)} -
      - - - {l s='Delete'} - -
      - {/if} -
      - - -
      -
    • - {counter} - {/if} - {/foreach} -
    -
    - {/if} - {if $product->text_fields|intval} -
    -

    {l s='Texts'}

    -
      - {counter start=0 assign='customizationField'} - {foreach from=$customizationFields item='field' name='customizationFields'} - {if $field.type == 1} -
    • - - -
    • - {counter} - {/if} - {/foreach} -
    -
    - {/if} -

    - - - - -

    -
    -

    * {l s='required fields'}

    -
    -{/if} - {if isset($packItems) && $packItems|@count > 0}

    {l s='Pack content'}