Zen Cart Logo
Forums / General Questions / Need to do some re-arranging

Need to do some re-arranging

Locked

Views: 1,240

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
22 Sep 2009, 3:24 PM
#1
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Need to do some re-arranging

I'm thinking of taking my home page verbage and my Featured Products section and swapping them from top to bottom and bottom to top. This would leave my home page verbage in place, which I believe does a lot to give me my excellent google ratings while also moving my thumbnails of my best products to the top of my page so people quickly and easily see what I offer, rather than having to read the categories menu. Has anybody done this before?

Ian
https://www.redlinestands.com

22 Sep 2009, 4:38 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need to do some re-arranging

I'm sure nobody has ever done that;)

Edit /includes/templates/your_template/templates/tpl_index_default.php, and move the define page section```php

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?> ```to below the centerbox loop```php <?php $show_display_category->MoveNext(); } // !EOF ?> </div> ```to get```php <?php $show_display_category->MoveNext(); } // !EOF ?> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?> </div> ```
22 Sep 2009, 5:44 PM
#3
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Need to do some re-arranging

Well sure enough, that did it. I don't know how Glenn but you seem to know everything sometimes. Thank you sir!

Ian

22 Sep 2009, 6:18 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need to do some re-arranging

That comes from spending way too much time on the forum! :)

22 Sep 2009, 6:26 PM
#5
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Need to do some re-arranging

Glenn, are you aware if Zen has a command in it to give your Featured Products a sort order? I know that right now it's set to random for their display but naturally I'd like my best selling products to always display towards the top left.

Ian

22 Sep 2009, 7:03 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need to do some re-arranging

I believe they're strictly random. You would need to add some coding to look up the number of sales for each and sort by that. The Products Purchased report in admin does it.

26 Sep 2009, 4:36 PM
#7
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Need to do some re-arranging

Hey Glenn, have a look at this if you will please. I've been playing with the stylesheet on my new site below but really all I know to do is adjust numbers and hope for the best because I don't much understand the theory behind our changes. I'm trying to get my logo image and logo background image to align along that bottom edge properly and then I also need to adjust something so it brings my categories tab right up underneath the logo. These are the same changes we made to https://www.redlinestands.com Can you please explain the changes we are making and why we're making them to achieve this? Thanks in advance sir!

Ian
http://www.americandieselservice.com/catalog/

26 Sep 2009, 5:14 PM
#8
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Need to do some re-arranging

I have also managed to somehow get my ez pages links below the Logo-Background.jpg image instead of on top of it. Not sure how I did that...........

Ian

30 Sep 2009, 5:02 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need to do some re-arranging

I think the logo for this site is wider than the other, so the 550px you had for #navEZPagesTop wouldn't fit.
Tweaks in red:

#headerWrapper
{ background-image:url(../images/Logo-Background.jpg);
  background-repeat:no-repeat;
  background-position:center 32px; /* changing the margin below and left padding moves the categories upward underneath the logo */
  margin: 0em;
  padding: 0em;
  height:162px; } /* changed from 165px to get rid of tiny gap under logo */



#navEZPagesTop 
{ width:480px; /* This #px specifies how many px from the far right that the ez pages links will begin, originally at 512px */
  float:right;
  background:none;
  font-size:0.95em;
  font-weight:bold;
  margin:100px 0 0 0; /*The first #px term defines how far down from the top of the header that the links will be displayed*/
  padding:0.5em; 
  color:#ffffff; } /*This color color code is responsible for the colons in the ez pages header links*/
  
30 Sep 2009, 5:12 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need to do some re-arranging

background-position: center 32px;
The second value is vertical (down from top edge), and adding a few px brought it down to match the logo.

width:480px;
The float: right; lets the nav move up as high as it can in its container while fitting with previous elements like the logoWrapper.
If #logoWrapper + #navEZPagesTop = more than the header width, they can't fit side by side.

1 Oct 2009, 2:37 AM
#11
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Need to do some re-arranging

I don't follow you here:

width:480px;
The float: right; lets the nav move up as high as it can in its container while fitting with previous elements like the logoWrapper.
If #logoWrapper + #navEZPagesTop = more than the header width, they can't fit side by side.

I think my worst misunderstanding might be my definition of #logoWrapper & #navEZPagesTop

Ian

1 Oct 2009, 3:04 AM
#12
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Need to do some re-arranging

Btw Glenn, is there a way to remove some of the un-used space between the "add selected products to cart" button and the bottom of my description? I looked in my code for some breaks but found none.

Ian
http://www.americandieselservice.com/catalog/diesel-fuel-pumps/gm-chevrolet