Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How to space out my Product Options?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-20-2007, 10:37 AM
 
premierbusiness premierbusiness is offline
 

Advanced Member
  
Join Date: Jun 2006
Location: New York - USA
Posts: 69
 

Default How to space out my Product Options?

Hi there all. Question on how to space out my Product Options. I have like 8 options for a product, with dropdown menus as a few inputs and text areas as a few inputs. The thing is, that all the options seem to run together when displayed. Let me just type an example here to illustrate.

Please choose a number of cards: (dropdown)
Please choose a design: (dropdown)
Please enter your name: (text area)
Do you want the optional backside? (dropdown)

I want there to be spaces between the options so that the options stand out more. You know like.

Please choose a number of cards: (dropdown)

Please choose a design: (dropdown)

Like that. I'd know how to do it with HTML on a page... but I tried inserting a <BR> right after the Option Text, but all that did was screw up the alignment for everything after the line. Any help is appreciated!

Thanks,
Brannon
__________________
XCart Gold v 4.1.5
---------------------------
Add-ons:
X-SpecialOffers
X-Magnifier
Reply With Quote
  #2  
Old 03-20-2007, 10:48 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: How to space out my Product Options?

You can edit the template directly and add in a break between rows:

skin1/modules/product_options/customer_options.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-20-2007, 11:00 AM
 
premierbusiness premierbusiness is offline
 

Advanced Member
  
Join Date: Jun 2006
Location: New York - USA
Posts: 69
 

Default Re: How to space out my Product Options?

Thanks so much! Okay, so this seems really lame, but I'm working off no sleep with a 2 year old and a 3 year old at my feet here... would you be so kind as to show me where to put the <BR>s? If you could put them in bold or something, that would be ideal. Thanks SO much!
************************************************** *****

{* $Id: customer_options.tpl,v 1.24 2006/04/07 05:19:21 svowl Exp $ *}
{if $product_options ne ''}
{if $nojs ne 'Y'}
<tr style="display: none;"><td>
<script type="text/javascript" language="JavaScript 1.2">
<!--
var alert_msg = '{$alert_msg}';
-->
</script>
{include file="modules/Product_Options/check_options.tpl"}
</td></tr>
{/if}

{foreach from=$product_options item=v}
{if $v.options ne '' || $v.is_modifier eq 'T'}
<tr>
<td valign="middle" height="25">{if $usertype eq "A"}{$v.class}{else}{$v.classtext|default:$v.class }{/if}</td>
<td valign="middle">
{if $cname ne ""}
{assign var="poname" value="$cname[`$v.classid`]"}
{else}
{assign var="poname" value="product_options[`$v.classid`]"}
{/if}
{if $v.is_modifier eq 'T'}
<input id="po{$v.classid}" type="text" name="{$poname}" value="{$v.default|escape}" />
{else}
<select id="po{$v.classid}" name="{$poname}"{if $disable} disabled="disabled"{/if}{if $nojs ne 'Y'} onchange="javascript: check_options();"{/if}>
{foreach from=$v.options item=o}
<option value="{$o.optionid}"{if $o.selected eq 'Y'} selected="selected"{/if}>{$o.option_name}{if $v.is_modifier eq 'Y' && $o.price_modifier ne 0} ({if $o.modifier_type ne '%'}{include file="currency.tpl" value=$o.price_modifier display_sign=1 plain_text_message=1}{else}{$o.price_modifier}%{/if}){/if}</option>
{/foreach}
</select>
{/if}
</td>
</tr>
{/if}
{/foreach}
{/if}


{if $product_options_ex ne ""}
<tr>
<td colspan="2"><font id="exception_msg" color="red"></font></td>
</tr>
{if $err ne ''}
<tr>
<td colspan="2"><font class="CustomerMessage">{$lng.txt_product_options_ combinations_warn}:</font></td>
</tr>
{foreach from=$product_options_ex item=v}
<tr>
<td>{foreach from=$v item=o}{if $usertype eq "A"}{$o.class}{else}{$o.classtext}{/if}: {$o.option_name}<br />{/foreach}<br /></td>
</tr>
{/foreach}
{/if}
{/if}
************************************************** ***************
__________________
XCart Gold v 4.1.5
---------------------------
Add-ons:
X-SpecialOffers
X-Magnifier
Reply With Quote
  #4  
Old 03-20-2007, 11:07 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: How to space out my Product Options?

Here's an easy solution. Replace this:

<td valign="middle" height="25">{if $usertype eq "A"}{$v.class}{else}{$v.classtext|default:$v.class }{/if}</td>
<td valign="middle">

with this:

<td valign="middle" height="25" style="padding-bottom: 10px;">{if $usertype eq "A"}{$v.class}{else}{$v.classtext|default:$v.class }{/if}</td>
<td valign="middle" style="padding-bottom: 10px;">

Adjust the padding number until you get the spacing you want.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-20-2007, 11:18 AM
 
premierbusiness premierbusiness is offline
 

Advanced Member
  
Join Date: Jun 2006
Location: New York - USA
Posts: 69
 

Default Re: How to space out my Product Options?

PERFECT! Thank you so much. One more question about this. How do I make the margin on the Product Options Tex wider? I have a lot of text in the Options, and it's wrapping to a lot of consecutive lines, I'd love to make it just a little bit wider - even just a few characters - like 5 characters wider.
__________________
XCart Gold v 4.1.5
---------------------------
Add-ons:
X-SpecialOffers
X-Magnifier
Reply With Quote
  #6  
Old 03-23-2007, 11:15 AM
 
willywaller willywaller is offline
 

Member
  
Join Date: Feb 2007
Posts: 11
 

Default Re: How to space out my Product Options?

In the same line that you modified, you can add a "width" tag. I used width="75%" and it worked well for me.
__________________
X-Cart 4.1.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:25 PM.

   

 
X-Cart forums © 2001-2020