www.twojabizuteria.pl - Jewelry shop

www.twojabizuteria.pl



Jewelry shop. Do you like it?

very nice. how did you get color icons ([url=“Komplety - nierozłączna jedność uczuć.”]http://www.twojabizuteria.pl/komplety.html[/url]) next to materials?

We define a block with one filter.

In the file block/product_filter.tpl we introduced such modification.

It isn’t too elegant, but it works ;).





{assign var=“filter_query_elm” value=$smarty.request.features_hash|fn_add_range_to_url_hash:$range:$filter.field_type}

{if $smarty.request.features_hash}

{assign var=“cur_features_hash” value=“&features_hash=$smarty.request.features_hash”}

{/if}

{capture assign=real_root"}{php}print getcwd();{/php}{/capture}



{if is_readable(“$real_root``$images_dir/filters/filter_$filter.filter_id_$range.range_id.jpg”)}



{/if}

<a href=“{if $filter.feature_type == “E” && !$filter.simple_link}{“product_features.view?variant_id=$range.range_id``$cur_features_hash”|fn_url}{else}{$filter_qstring|fn_link_attach:“features_hash=$filter_query_elm”|fn_url}{/if}”>{$filter.prefix}{$range.range_name|fn_text_placeholders}{$filter.suffix}  ({$range.products})

The site looks very professional!

[quote name=‘soft-solid’ timestamp=‘1329423230’ post=‘131429’]

We define a block with one filter.

In the file block/product_filter.tpl we introduced such modification.

It isn’t too elegant, but it works ;).





{assign var=“filter_query_elm” value=$smarty.request.features_hash|fn_add_range_to_url_hash:$range:$filter.field_type}

{if $smarty.request.features_hash}

{assign var=“cur_features_hash” value=“&features_hash=$smarty.request.features_hash”}

{/if}

{capture assign=real_root"}{php}print getcwd();{/php}{/capture}



{if is_readable(“$real_root``$images_dir/filters/filter_$filter.filter_id_$range.range_id.jpg”)}



{/if}

<a href=“{if $filter.feature_type == “E” && !$filter.simple_link}{“product_features.view?variant_id=$range.range_id``$cur_features_hash”|fn_url}{else}{$filter_qstring|fn_link_attach:“features_hash=$filter_query_elm”|fn_url}{/if}”>{$filter.prefix}{$range.range_name|fn_text_placeholders}{$filter.suffix}  ({$range.products})

[/quote]



Thanks. This will be helpful. Have you had any luck in determining how to display the product feature variant icon? Does anyone help know how to do this.

All looks well apart from seo links like



Pierścionek z szafirem i brylantami p_216_a



product-name-SKU.html would be much nicer…