Page 1 of 1

Control Over Tag Structures Possible?

PostPosted: Sun Jul 03, 2011 10:55 am
by Cayce
Hello, Forum;

I'm having a pretty good run with the custom templates, but I've run into a situation I don't know how to manage. In my New Registration template, the text (Name) & fields for First Name and Last Name are all on the same line, creating a layout problem. This would be the [-- CR_Name --] tag. Is there a way I can edit tags such as that to stack those fields, or arrange them to my own liking?

Thanks much.

Cayce

Re: Control Over Tag Structures Possible?

PostPosted: Tue Jul 05, 2011 12:28 pm
by ShopSite Lauren
The quick answer is no. The fields that are displayed in that tag are pulled from the fields that are used in the cart. What I would suggest would be to eliminate the non-required fields in the cart. This is good for 2 reasons, one is that for the customer registration pages it makes that table much more narrow and easier to manage, and two is that in the cart, it is less fields to "scare" customers away with. The fewer fields customers need to keep track of or need to fill in, the better. You can turn off the extra fields (ie, Title, Middle, Suffix), by going to Commerce Setup > Order System > Checkout.

The "maybe" answer would be to view the code on the page that is output by that tag. Copy that code, then hard code that code into your own customer registration template. You would then be able to modify the table. I believe that this will work; this type of modification works with other complete tables that are output by ShopSite tags. I have not done it for the tag you are specifically referencing, but if you keep the field names and IDs the same, it should work just fine.