Hello!
I am changing details_page.tpl of " to detect if a swf file exists, but I don’t know.
This is the code:
```php
{if $product}
{assign var=“obj_id” value=$product.product_id}
{include file=“common_templates/product_data.tpl” product=$product}
{assign var=“form_open” value=“form_open_$obj_id
”}
{$smarty.capture.$form_open}
{assign var="archivo" value=$_GET['flash']};
{if $archivo|file_exists eq ''}
{include file="views/products/components/product_images_flash.tpl" product=$product show_detailed_link="Y"}
{else if}
{include file="views/products/components/product_images.tpl" product=$product show_detailed_link="Y"}
{/if}
{$product.product|unescape}
{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="qty" value="qty_`$obj_id`"}
{$smarty.capture.$qty}
{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 $capture_buttons}{capture name="buttons"}{/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}
```
I have a problem in line:
```php
{assign var="archivo" value=$_GET['flash']};
```
because I don't know how pase javascript var to php.
Thank you very much