PDA

View Full Version : Spacing for components


JimboS
02-Dec-2003, 09:30 AM
Is there a way that I reduce the spacing between the various compondents for the products?

see http://www.eyecare-cosmetics.co.uk/acatalog/Collections.html to see what I mean

cdicken
03-Dec-2003, 08:07 AM
For checkboxes, find the template Act_VariantCheckbox.html and change the line:

<BLOCKQUOTE>NETQUOTEVAR:PRICEEXPLANATION</BLOCKQUOTE>

to

&amp;nbsp;NETQUOTEVAR:PRICEEXPLANATION

But for your site you need to remove the <br> from prompt ID 2045 in 'Design | Text'. Use the 'Go to' button to go straight to the prompt.

JimboS
03-Dec-2003, 08:30 AM
I have tried that but sorry to say that it hasn't worked

:(

Ben
03-Dec-2003, 10:55 AM
Try changing <P CLASS="actxsmall">NETQUOTEVAR:COMPONENTNAME
NETQUOTEVAR:PRICEEXPLANATION
</P> to <SPAN CLASS="actxsmall">NETQUOTEVAR:COMPONENTNAME
NETQUOTEVAR:PRICEEXPLANATION
</SPAN> in Act_VariantComponentName.html

JimboS
03-Dec-2003, 11:16 AM
Still no joy

cdicken
03-Dec-2003, 04:40 PM
The code between your drop down lists is as follows....

-snip-
....
</SELECT>
<P CLASS="actxsmall"> <Actinic:PRICE_EXPLANATION PROD_REF="55" COMPONENTID=1></Actinic:PRICE_EXPLANATION></P>
<INPUT TYPE="HIDDEN" NAME="v_55_6" VALUE="on">
<span class="actxsmall"></span><br>
<SELECT NAME="v_55_3">
....
-snip-

So you have a <p> and a <br> causing the spacing.

The <p> comes from the code that Ben asked you to change, but I guess you have not uploaded that yet.

The <br> is from Act_VariantAttributeName.html. Try removing the <br> from this template.

smiffy
04-Dec-2003, 06:44 AM
I have the same problem.

In light of this thread I've actually completely commented out the Act_VariantAttributeName.html so none of my drop down boxes have HTML names.

I've combined this with having a "Include" at the top of each drop down list to name the choice.

JimboS
04-Dec-2003, 07:10 AM
Okay my Act_VariantAttributeName reads:
<!-- VariantAttributeName HTML begin -->
<!-- This template is used for attribute name. -->

<span class="actxsmall">NETQUOTEVAR:ATTRIBUTENAME</span>

<!-- This template is used for attribute name. -->
<!-- VariantAttributeName HTML end -->



my Act_VariantComponentName reads:
<!-- VariantAttributeName HTML begin -->
<!-- This template is used for attribute name. -->

<SPAN CLASS="actxsmall">NETQUOTEVAR:COMPONENTNAME
NETQUOTEVAR:PRICEEXPLANATION
</SPAN>

<!-- This template is used for attribute name. -->
<!-- VariantAttributeName HTML end -->



and I have removed the <BR> from [Design] [Text] ID 2045


I have uploaded these changes but the page at http://www.eyecare-cosmetics.co.uk/acatalog/Collections.html doesn't appear to have changed at all?

smiffy
04-Dec-2003, 07:25 AM
You are still getting another <br> tag in there from somewhere.

I've completely commented out my Act_VariantAttributeName, and have also removed tag 2045

And..... it works for me......

http://www.valentines-balloons.co.uk/acatalog/Bonkers.html

It may be in your Act_Productline.hmtl

JimboS
04-Dec-2003, 07:27 AM
Where do I comment out this Variant?

smiffy
04-Dec-2003, 07:30 AM
<!-- VariantAttributeName HTML begin -->
<!-- This template is used for attribute name. --

<span class="actxsmall">NETQUOTEVAR:ATTRIBUTENAME</span><br>

<!-- This template is used for attribute name. -->
<!-- VariantAttributeName HTML end -->

cdicken
04-Dec-2003, 08:07 AM
I've just had a look at the uploaded page, and you are right that it has not changed at all, but that is because the underlying code has not changed at all. It still has...

<P CLASS="actxsmall"> <Actinic:PRICE_EXPLANATION PROD_REF="55" COMPONENTID=1></Actinic:PRICE_EXPLANATION></P><INPUT TYPE="HIDDEN" NAME="v_55_6" VALUE="on"><span class="actxsmall"></span><br>

...between each drop-down list.

I don't know what templates you are changing, but they are not the templates that are being used to generate the online store pages. Are you definitely editing Act_VariantComponentName.html and Act_VariantAttributeName.html within the site directory that your eyecare cosmetics site is contained within?

JimboS
04-Dec-2003, 11:35 AM
Hooray - all sorted.

Not sure which other sites templates I have altered instead so I had better go looking.

Thanks for the help