Product pix alignment on Product page

Questions and answers about ShopSite Custom Templates

Product pix alignment on Product page

Postby bkgca » Tue Sep 06, 2011 3:29 pm

I'm using SSpro 10 sp2 r2.4

using a copied renamed version of...
3Column-Product.sst

I have it set on the page layout page, to 3 columns, centered.

When I first started up the store, and loaded a dozen item, using some test pix, on the product page, the pix were very nicely at the top of the product cell
So you had
Pix.
Name.
Text, description.
Price.
Sku.
Qty.
Add to Cart.

All under each other, forming a nice column.

For the life of me, the only thing I edited in the product page was the html header for the SSL cert java.

Now the pix is to the left of a column of
Name.
Text, description.
Price.
Sku.
Qty.
Add to Cart.

Looks like heck.

I've been hacking around
3Column-Product-BK.sst
And I've not been able to effect the placement but for one thing..

By changing...
from...

Code: Select all
[-- IF PRODUCT.TextWrap "On" --]
  [-- IF PRODUCT.ImageAlignment "right" --]
  </td><td valign="top" align="center" width="10%">
[-- IF PRODUCT.DisplayGraphic --]
  [-- IF PRODUCT.Graphic --]


to
Code: Select all
[-- IF PRODUCT.TextWrap "On" --]
  [-- IF PRODUCT.ImageAlignment "center" --]
  </td><td valign="top" align="center" width="10%">
[-- IF PRODUCT.DisplayGraphic --]
  [-- IF PRODUCT.Graphic --]


now I get a thumbnail pix on each side of the column of..
Name.
Text, description.
Price.
Sku.
Qty.
Add to Cart.


tried changing text wrap to off, as well as in the console page layout. no differnce.
I've been regenerating the store each time.

I can't find a place in the page layout screen that effects it.
The MoreInfo screen, I can effect very nicely with the Layout input for the product, and select center... and it winds up very nicely on top.
But can't find a control panel entry that effects it, and haven't been able to find the right spot on the code.

HELP!!!
where and what gets me back to having the pix and all the other items stacked in a column???


TIA!!!!!!
bkgca
 
Posts: 44
Joined: Thu Oct 21, 2010 9:14 pm

Re: Product pix alignment on Product page

Postby Jim » Tue Sep 06, 2011 4:01 pm

What happens if you undo this "For the life of me, the only thing I edited in the product page was the html header for the SSL cert java." It may be that the code you inserted broke something else in the template.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Product pix alignment on Product page

Postby bkgca » Tue Sep 06, 2011 4:27 pm

Before posting, I did go back to the virgin file.

No difference.
I had copied the files, added BK to the names, edited them for my needs, and specify them on the control panel, in the proper places..
One for product, one for pages...

Been hacking at it... and trying other templates, and trying to figure it out

So now I'm thinking , it must have been a different template I used for the product, when on the page with all the products, the formatting will change... and find that the Multi-Use-Product, does display the products as I had seen at the start on the page , but than the more info page is just plain jane, not the 3Column format.. not acceptable.
So trying to figure out / learn the formatting that is driving it, but not doing soo well.


I'm hacking at 3Column-Product-bk.sst vs what I see in Multi-Use-Product.sst , and trying , w/o much success.
bkgca
 
Posts: 44
Joined: Thu Oct 21, 2010 9:14 pm

Re: Product pix alignment on Product page

Postby bkgca » Tue Sep 06, 2011 5:01 pm

Update,

Just being the complete hack I am.. I couldn't find the singular item that drives it, but did figure out the defining area and took the entire "Define Product" codes from Multi-Use-Product.sst
From between [-- DEFINE PRODUCT --] and up to but not the line [-- IF PRODUCT.VariableName? --]

and in the same exact area replaced the code that is in "3Column-Product-bk.sst".
So long as the product layout for the image has Center selected, it works cleaning, if not, things get to run on and over past 3 columns and makes a mess.

I'm an html guy, so at the bottom of the Multi-Use-Product.sst , where it defines nearly in html , for the body, the moreinfo construction, I got excited.. but has nothing to do with all the products being shown on the one page... that is inbetween the two lines mentioned above it appears.

Now, in doing so, but for the layout not being clean unless "center" is selected in the product layout for image... any other problems I may encounter?

TIA
bkgca
 
Posts: 44
Joined: Thu Oct 21, 2010 9:14 pm

Re: Product pix alignment on Product page

Postby Jim » Wed Sep 07, 2011 12:51 pm

Check in the page template where the code
[-- LOOP PRODUCTS --]
[-- PRODUCT --]

is found and see if there is something after the PRODUCT in the [--PRODUCT--] tag, so it looks like [-- PRODUCT templatename --]

That would indicate that the product template assigned to the product is not being used at all but is overridden by the template specified in the [-- PRODUCT xx --] tag.

Another thing that can happen when mixing code from different templates/themes is that some templates make extensive use of the [--VAR xx --] tag to assign values used later in the template. If these not defined in the code you copy strange things can happen.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Product pix alignment on Product page

Postby bkgca » Wed Sep 07, 2011 1:36 pm

Jim, tnx, will look.

So far, with "Center" selected on the product layout page, all looks just as I want it, some pages have as few as 2 products, some as many as 60.
Only one page so far is fully populated with pix... the one page with 60 products, only has a 1/2 dozen photo's so far.

Would you mind taking a look at the code, the "what it was", and "what I replaced it with", and comment on the variable issue?
I saved both in seperate text files on my pc.

TIA...
bkgca
 
Posts: 44
Joined: Thu Oct 21, 2010 9:14 pm

Re: Product pix alignment on Product page

Postby bkgca » Thu Sep 08, 2011 6:22 am

Jim wrote:Check in the page template where the code
[-- LOOP PRODUCTS --]
[-- PRODUCT --]

is found and see if there is something after the PRODUCT in the [--PRODUCT--] tag, so it looks like [-- PRODUCT templatename --]

That would indicate that the product template assigned to the product is not being used at all but is overridden by the template specified in the [-- PRODUCT xx --] tag.


Another thing that can happen when mixing code from different templates/themes is that some templates make extensive use of the [--VAR xx --] tag to assign values used later in the template. If these not defined in the code you copy strange things can happen.


Ok, went back and took a look, and, now I remember,,, originally the 3columns page template did call out it's product template and none of the product layout settings had an effect AND even though I was call out a the slightly changed version with the java in the header for the SSL, it wasn't working, cause the that tag did call out for the specific 3column product template.
I removed the "xx" (template name), and than the pages became responsive to the changes in the product layout. That was fixed earlier on so I could use my modified 3column product template.

Do you mind if I post the "what came out" and "what went in" so you can take a look?
bkgca
 
Posts: 44
Joined: Thu Oct 21, 2010 9:14 pm

Re: Product pix alignment on Product page

Postby Jim » Thu Sep 08, 2011 7:08 am

Rather than post them to the forum please send them to me in a private message or email by clicking the PM or email icon.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Product pix alignment on Product page

Postby bkgca » Thu Sep 08, 2011 7:38 am

Jim wrote:Rather than post them to the forum please send them to me in a private message or email by clicking the PM or email icon.


tnx , will do.
bkgca
 
Posts: 44
Joined: Thu Oct 21, 2010 9:14 pm


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 82 guests

cron