Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How can I alter the look of the product listing page?

How can I alter the look of the product listing page?

Locked

Started by airsoftoutfitter on 13 Aug 2010, 7:05 PM · Views: 2,121

Results 1 to 20 of 36
This thread is locked. New replies are disabled.
13 Aug 2010, 7:05 PM
#1
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #1 by airsoftoutfitter

I want to move the add to cart button and up to the top, and have the product description below the product image. I would also like to have any additional product image thumbnails situated to the right of the product image.

And reviews at the bottom of the description. I don't want to mess up my page, but any help would be appreciated.

Something like this: http://www.airsoftgi.com/product_info.php?cPath=280_351&products_id=6252

My site currently is: https://www.Mercenarypb.com

13 Aug 2010, 9:19 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

Have a look at the code inside of tpl_product_info_display.php
It is fairly well chunked into areas the begin with BOF and end with EOF

These complete chunks can be re-ordered in a copy for your template override folder - - if you break it - just delete the edited file

Once the proper order is attained it will most likely require a bit of css tweaking

Zen-Venom Get Bitten

13 Aug 2010, 10:14 PM
#3
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #3 by airsoftoutfitter

kobra:

Have a look at the code inside of tpl_product_info_display.php
It is fairly well chunked into areas the begin with BOF and end with EOF

These complete chunks can be re-ordered in a copy for your template override folder - - if you break it - just delete the edited file

Once the proper order is attained it will most likely require a bit of css tweaking

Where is the tpl_product_info_display.php file located? And sorry if this may sound stupid, but what sort of CSS coding would need to be done...

13 Aug 2010, 10:23 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

Where is the tpl_product_info_display.php file located?
Get the core file at
/includes/templates/template_default/templates/tpl_product_info_display.php

DO NOT replace the core file - - your edited version belongs at

/includes/templates/Mercenary/templates/tpl_product_info_display.php

what sort of CSS coding would need to be done...
Depends on how you re-order and what results from it

Zen-Venom Get Bitten

13 Aug 2010, 10:28 PM
#5
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #5 by airsoftoutfitter

I FOUND THE FILE, but if you can share what CSS will need to be edited that would be lovely!

13 Aug 2010, 11:29 PM
#6
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #6 by airsoftoutfitter

kobra:

Get the core file at
/includes/templates/template_default/templates/tpl_product_info_display.php

DO NOT replace the core file - - your edited version belongs at

/includes/templates/Mercenary/templates/tpl_product_info_display.php

Depends on how you re-order and what results from it

I have done some little modifications, you can see here: http://mercenarypb.com/index.php?main_page=product_info&cPath=4_80&products_id=45

I would like to move the "Write a Review Button" under the "Tell a Friend About Us, and if possible move the product price just above the Add to Cart Button... I am looking in the CSS but don't see anything that looks familiar. I am using Firebug and clicking elements but not sure where to look to find where files are located.

14 Aug 2010, 12:30 AM
#7
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #7 by airsoftoutfitter

i would like to have the product atributes either above or below the add to cart box. I have moved the block of code just don't know the correct CSS place and code to use.

16 Aug 2010, 12:47 AM
#8
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #8 by airsoftoutfitter

Just want to see if someone can help me with the following?

i would like to have the product atributes either above, or in the same box as the add to cart button and quantity option. I have altered my page as such, but cannot seem to get both of the "Add to Cart" and "Attribute Options" to be inline on the right??? I tried wrapping these in <div> on the tpl_product_info_display but that did nothing. I also would like to have the Tell a Friend and write a review on the right side inline as well.

Thanks for the help!

16 Aug 2010, 12:55 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #9 by kobra

cannot seem to get both of the "Add to Cart" and "Attribute Options" to be inline on the right
What product has attributes?

Zen-Venom Get Bitten

16 Aug 2010, 1:18 AM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #11 by kobra

They are inline and on the right
I am using FireFox

Zen-Venom Get Bitten

16 Aug 2010, 1:52 AM
#12
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #12 by airsoftoutfitter

I want them to be in line as in:

Attribute (above)

Add to cart (below)

NOT

Add to Cart, then Attribute right next to it.

16 Aug 2010, 2:17 AM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #13 by kobra

Well that is not inline.....

I suppose that in your edited file that the cart add block exists before the attributes block
I think that you will need to place both cart add & product attributes blocks wqithin a new div - - maybe #rightBox

Look else where for a br???clear both line
Copy it and paste between the cart add and the attributes on it's own line

See what that produces

Zen-Venom Get Bitten

16 Aug 2010, 5:21 AM
#14
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #14 by airsoftoutfitter

kobra:

Well that is not inline.....

I suppose that in your edited file that the cart add block exists before the attributes block
I think that you will need to place both cart add & product attributes blocks wqithin a new div - - maybe #rightBox

Look else where for a br???clear both line
Copy it and paste between the cart add and the attributes on it's own line

See what that produces

Here is what I did to the tpl_product_info_display.

<!--bof Attributes Module --> <div style="float:right"> <!--eof Attributes Module --> <br class="clearBoth" /> <!--bof Add to Cart Box --> <!--eof Add to Cart Box--></div>

However, now all I would like to do it narrow the spacing between the 2. How can I do that? Or, better yet, Can I bring them closer together and place the attribute inside the add to cart?

Here is the work in progress: http://mercenarypb.com/index.php?main_page=product_info&cPath=2_15_73&products_id=89

16 Aug 2010, 5:49 AM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #15 by kobra

Give that containing div a tag - - name it

Zen-Venom Get Bitten

16 Aug 2010, 6:03 AM
#16
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #16 by airsoftoutfitter

kobra:

Give that containing div a tag - - name it

Can you give me an example? and would this be in the style sheet or the tpl*** file?

Another question, how can I move the "Size:" option text above the drop down?

16 Aug 2010, 6:29 AM
#17
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #17 by kobra

Can you give me an example? and would this be in the style sheet or the tpl*** file?
Div definition/naming is in the tpl file
Styling will be in the stylesheet
Where you have:

<!--bof Attributes Module --> <div style="float:right">

<!--eof Attributes Module -->

<br class="clearBoth" />

<!--bof Add to Cart Box -->

<!--eof Add to Cart Box--></div>

Make similar to this giving your added div a name/tag

<div id="rightBox" class="forward">
<!--bof Attributes Module --> 

<!--eof Attributes Module -->

<br class="clearBoth" />

<!--bof Add to Cart Box -->

<!--eof Add to Cart Box-->
</div>

Another question, how can I move the "Size:" option text above the drop down?
You want nothing there??? You will get many orders with out knowing what size was ordered

Zen-Venom Get Bitten

16 Aug 2010, 6:40 AM
#18
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #18 by airsoftoutfitter

kobra:

Div definition/naming is in the tpl file
Styling will be in the stylesheet
Where you have:

<!--bof Attributes Module --> <div style="float:right"> <!--eof Attributes Module --> <br class="clearBoth" /> <!--bof Add to Cart Box --> <!--eof Add to Cart Box--></div>
> Make similar to this giving your added div a name/tag
> 
> ```
<div id="rightBox" class="forward">
<!--bof Attributes Module --> 

<!--eof Attributes Module -->

<br class="clearBoth" />

<!--bof Add to Cart Box -->

<!--eof Add to Cart Box-->
</div>

You want nothing there??? You will get many orders with out knowing what size was ordered

What does the class"forward" tag do? I don't see anything changing. I want to get the attribute option closer to the add to cart box. I removed a <br class="clearBoth"> from tpl_modules_attributes and it helped a little. As for the "Size" option, I just wanted the text above the dropdown. I want to rename "Size" to "Choose Size"

16 Aug 2010, 6:49 AM
#19
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #19 by kobra

Try adding this at the bottom of your stylesheet

#rightBox {
        width: 280px;
        }

I want to rename "Size" to "Choose Size"
Create or change the attributeName to Choose Size

Zen-Venom Get Bitten

16 Aug 2010, 6:54 AM
#20
airsoftoutfitter avatar

airsoftoutfitter

Zen Follower

Join Date:
Dec 2009
Posts:
244
Plugin Contributions:
0

Post #20 by airsoftoutfitter

kobra:

Try adding this at the bottom of your stylesheet

#rightBox {
width: 280px;
}

> 
> Create or change the attributeName to Choose Size

I added that #rightBox code but nothing happend (what was it supposed to do?) As for the attribute name, I know how to change it, I just wanted to move the name above the drop down to see if it looks cleaner.