X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   help showing icon to right of a option dropdown (https://forum.x-cart.com/showthread.php?t=54238)

7thdesire 06-19-2010 01:38 AM

help showing icon to right of a option dropdown
 
hi guys i am abit stuck and could use some help

i need the following

if product option is Size to display an icon ie my size guide icon i use

{foreach from=$extra_fields item=v}
{if $v.field eq "Size" && $v.field_value}
<div>{$v.field_value}</div>
{/if}{/foreach}

this displays my size guide icon if that product has a size guide

i have included and image so you can see what i am trying todo any help would be great

http://www.tacksales.co.uk/images/Untitled-4.jpg

Shamun 06-21-2010 12:46 PM

Re: help showing icon to right of a option dropdown
 
{foreach from=$extra_fields item=v}
{if $v.field eq "Size" && $v.field_value}
<div>{$v.field_value}</div>{if $extra_fields == 'fieldName'}Size guide{/if}
{/if}{/foreach}

Could try something to that extent.

7thdesire 07-08-2010 02:49 PM

Re: help showing icon to right of a option dropdown
 
if anyone is intrested i got this to work useing the following


{if $v.class eq "Size"}
{foreach from=$extra_fields item=v}
{if $v.field eq "Size" && $v.field_value}
<div style="float:right">{$v.field_value}</div>
{/if}{/foreach}
{/if}

this displays the info i enter into an extra fiend only next to the size option dropdown

xcart 4.3.2


All times are GMT -8. The time now is 09:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.