Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Border around products on home page?

Border around products on home page?

Locked

Views: 2,199

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
21 Jan 2008, 12:11 PM
#1
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Border around products on home page?

Hello,

I have " New Products For January" on my home page.

I was just wondering if it is possible to have a thin border around each product on that page.

Kind regards,
Anthony

21 Jan 2008, 12:12 PM
#2
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Also,

Just above the "new products" heading on the home page, is it possible to have an image instead of the welcome messages (ie. above the new products heading, but under the header logo)?

Kind regards,
Anthony

21 Jan 2008, 12:21 PM
#3
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Border around products on home page?

xman888:

Hello,
I have " New Products For January" on my home page.
I was just wondering if it is possible to have a thin border around each product on that page.
Kind regards,
Anthony
Quickest way is to use one of the following mods

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=611

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=438

Just above the "new products" heading on the home page, is it possible to have an image instead of the welcome messages (ie. above the new products heading, but under the header logo)?
You can add an image there using define_main_page option
via admin

22 Jan 2008, 5:45 AM
#4
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Hello misty,

Thanks for the mod - it looks really good.

The only prob I have is that I want the text below and image above:

//--------------------------------------
$side_of_text = 0;
// 0 -> text below, image above
// 1 -> text on right, image on left
// 2 -> text on left, image on right
//--------------------------------------

I changed the number to 0 with all 3 files in the modules/Mytemplates folder (even though it I only want it for the "New products"), however the place of the text and images doesn't change (for either 0,1 or 2).

Is there something else I should be doing?

Also, this mod expands the width of my page - do I need to reduce the size of the images?

Kind regards,
Anthony

22 Jan 2008, 6:00 AM
#5
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Hello Misty,

Don't worry about that now. I reinsallted it and it all seems to be working now !!

Great MOD!!

Kind regards,
Anthony

22 Jan 2008, 6:11 AM
#6
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Hi Misty,

As far as your other recommendation:

Quote:
Just above the "new products" heading on the home page, is it possible to have an image instead of the welcome messages (ie. above the new products heading, but under the header logo)?
You can add an image there using define_main_page option
via admin

Can you point me as to where the define_main_page option in admin is (and maybe also where I upload the image)?

Kind regards,
Anthony

22 Jan 2008, 6:17 AM
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Border around products on home page?

admin/tools/define pages editor..choose define_main_page.php
add relevant html for your image there.

22 Jan 2008, 7:09 AM
#8
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Hi Misty,

Thanks for that - worked like a charm.

I deleted the text in :

**/includes/languages/english/template/index.php **

at the line :define('HEADING_TITLE', '');

and also in admin > config > layout settings > Customer Greeting - Show on Index Page I set to "0"

However the image is still probably about 1 cm below the top of my highest sideboxes.

Is there a better way to remove the heading title?

The reason I ask is because I am guessing that even though I have removed the text in the heading title, it is still displaying a line (even though there is no text in that line) which is therefore taking up some space.

Kind regards,
Anthony

22 Jan 2008, 7:36 AM
#9
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Border around products on home page?

My crystal ball gone on strike this morning,
so without actual url of your site, can't help further
:smartalec:

22 Jan 2008, 7:49 AM
#10
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Hi Misty,

Sorry about that - I'm a bit of a space cadet.

Here is my link:

http://www.xmanhosting.com.au/shop/

Thank you for all your help so far.

Kind regards,
Anthony

22 Jan 2008, 8:01 AM
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Border around products on home page?

Looks fine to me, but you could remove breadcrumb trail option
i.e. home
:blink:

22 Jan 2008, 8:59 AM
#12
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Hi Misty,

You're a champ - it worked perfectly.

Cheers for your help.

Kind regards,
Anthony

22 Jan 2008, 9:06 AM
#13
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Border around products on home page?

Well done!!
:clap:

23 Jan 2008, 4:23 AM
#14
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Hi Misty,

Do you know if it is possible to have the line separator that separates the new products with these mods, to also do the same to the products within a category?

Kind regards,
Anthony

23 Jan 2008, 6:33 AM
#15
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Border around products on home page?

xman888:

Do you know if it is possible to have the line separator that separates the new products with these mods, to also do the same to the products within a category?
EXACT url where you want line seperator to appear is?

23 Jan 2008, 7:23 AM
#16
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0
23 Jan 2008, 7:45 AM
#17
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Border around products on home page?

Links fine.. thanks.. BUT NEVER ADD ZENID code ..

Suggest you visit
http://www.zen-cart.com/forum/showthread.php?t=76989
Your product images are squashed together... fix at above url will stop that..line under each image not required then.

23 Jan 2008, 8:00 AM
#18
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Hi Misty,

Thanks for the reply.

I actually like how the line separator mod displays the products, as shown here : http://www.xmanhosting.com.au/shop/

This is how I want them displayed on each category page.

I notice that in the readme files for the 2 column divider / line divider mods that they don't support displaying the products on the categories page.

I thought there might be some way around this so that this could be done on the category pages also.

Kind regards,
Anthony

24 Jan 2008, 12:23 AM
#20
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Border around products on home page?

Hi Misty,

Thanks for that.

I was able to install no probs. The only problem I have is that the product name puts the image out of it's center position. This can be seen here:

http://www.xmanhosting.com.au/shop/index.php?main_page=index&cPath=1

Any ideas about the code?

I am using the version for zen-cart 1.37

Kind regards,
Anthony