Forums / General Questions / Image size in Specials

Image size in Specials

Views: 4,941

Results 1 to 20 of 23
7 Aug 2006, 10:41 PM
#1
verybyte avatar

verybyte

Zen Follower

Join Date:
Apr 2004
Posts:
49
Plugin Contributions:
0

Image size in Specials

Hi all,

can anyone tell me where can I set the image size in Specials page?
There is a columnar layout.

7 Aug 2006, 11:38 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image size in Specials

While many of the separate pages have their own settings for image size, specials is not one of them ...

You would have to customize the /includes/pages/specials/main_template_vars.php file and this is not an override file ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Aug 2006, 6:02 AM
#3
verybyte avatar

verybyte

Zen Follower

Join Date:
Apr 2004
Posts:
49
Plugin Contributions:
0

Re: Image size in Specials

Thank you, very much!

12 Feb 2010, 11:44 PM
#4
dysfunctional avatar

dysfunctional

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Image size in Specials

Ajeh:

While many of the separate pages have their own settings for image size, specials is not one of them ...

You would have to customize the /includes/pages/specials/main_template_vars.php file and this is not an override file ...

I have the same question.

In Zen cart 1.3.9 , I suppose the correct location is :

/includes/modules/pages/specials/main_template_vars.php , or?

I cannot find anything in that file that makes sense. I want my image width to be 150 & height 100 , same as I have set my featured products file size in the admin.

Attaching a screen shot of my problem - How would I get the special product images in the same size as the featured products image size?...


Truly greatful for some advice ,as always!

best regards

peter

13 Feb 2010, 12:06 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image size in Specials

There is the Specials centerbox and the Specials page ... you are trying to make changes in the Specials Page but want the changes to happen to the Specials centerbox ... based on your image ... :blink:

Look at the module:
specials_index.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Feb 2010, 5:23 AM
#6
annedig avatar

annedig

New Zenner

Join Date:
Feb 2010
Posts:
22
Plugin Contributions:
0

Re: Image size in Specials

Hi,
I've just set up my specials and the product page is showing it as a special but my centre box on the specials page is completely blank. I've looked at everything I can think of but can't work it out.
Pls help!
Anne

18 Feb 2010, 2:19 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image size in Specials

Did you customize the Specials Centerbox:
/includes/modules/specials_index.php

If so, what changes did you make?

If you switch to the Classic Template does it start working?

If so, the problem is with your templates and overrides of the file:
/includes/modules/your_template_dir/specials_index.php

if you are using the templates and overrides correctly ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Feb 2010, 6:28 AM
#8
annedig avatar

annedig

New Zenner

Join Date:
Feb 2010
Posts:
22
Plugin Contributions:
0

Re: Image size in Specials

Thanks for those tips - I changed to Classic template and it was still blank ....
so I uploaded the original specials_index.php from the original zen cart download folder on my desktop and it still didn't work!!!!
What else can I try?

19 Feb 2010, 2:04 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image size in Specials

Have you an URL that we could perhaps peek at to see this? :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Feb 2010, 1:53 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image size in Specials

I would start with the Debug Tool from the Free Software Add Ons and see if that tells you where the problem is ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Feb 2010, 10:29 AM
#12
annedig avatar

annedig

New Zenner

Join Date:
Feb 2010
Posts:
22
Plugin Contributions:
0

Re: Image size in Specials

Thanks - I've installed DEBUG and checked it's in the right folder and cache file permissions are writable. There is no log file which I take from another post means there is no php error.

I've again uploaded every specials file from my original zen-cart and template download.
Still getting no centre column - I do get the sideboxes - but always have.

Can you think of something else?

21 Feb 2010, 2:41 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image size in Specials

Make sure that the /cache directory is set to 777 and that you refresh the FTP window after you hit the Specials page ...

Also, check the Configuration ... Maximum Values ... and make sure you don't have things set to 0 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Feb 2010, 10:05 PM
#14
annedig avatar

annedig

New Zenner

Join Date:
Feb 2010
Posts:
22
Plugin Contributions:
0

Re: Image size in Specials

OMG - thank you. It was the max values set to 0:clap:

21 Feb 2010, 11:35 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image size in Specials

Hate when that happens ... :lamo:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Aug 2011, 12:19 PM
#16
damixa avatar

damixa

New Zenner

Join Date:
Jun 2011
Location:
Bournemouth UK
Posts:
44
Plugin Contributions:
0

Re: Image size in Specials

Hi,
I know I can cgange the bg or add an image to all sideboxed by editing this line :
.sideBoxContent {background-color: #fff;padding: 0.4em;padding-top:10px;border:0px solid #e1e1e9;}

in the stylesheet. But I have product finder mod in a sidebox and I wish to add a bg image to that sidebox only.

Anyone know how to do this ...Please!

Thanks

29 Jul 2012, 12:54 AM
#17
sco77m4r7in avatar

sco77m4r7in

New Zenner

Join Date:
Apr 2011
Posts:
14
Plugin Contributions:
0

Re: Image size in Specials

Ajeh:

There is the Specials centerbox and the Specials page ... you are trying to make changes in the Specials Page but want the changes to happen to the Specials centerbox ... based on your image ... :blink:

Look at the module:
specials_index.php

Hello,

Using ver 1.5.0

Still don't see where the variable to set w x h size of the specials in the center box and the page

I've looked in

includes/modules/specials_index.php
and
includes/modules/pages/specials/main_template_vars.php

I can see the sidebox special is using the admin->config->Images-(Small Image Width) in there but nothing for center box and page.

Anyone solved this.

Thanks

29 Jul 2012, 1:10 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image size in Specials

The specials center box uses the same settings as the small images width and small image height ...

If you want different values you would need to customize the specials centerbox with your templates and overrides and change the values for:
SMALL_IMAGE_WIDTH
SMALL_IMAGE_HEIGHT

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Aug 2012, 11:39 AM
#19
sco77m4r7in avatar

sco77m4r7in

New Zenner

Join Date:
Apr 2011
Posts:
14
Plugin Contributions:
0

Re: Image size in Specials

That also controls the image size in the sideboxs. Anyway to change specials only . If i increase to 200 the specials images look perfect but all sidebox images are too big

3 Aug 2012, 12:38 PM
#20
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image size in Specials

Using your templates and overrides, customize the file:
/includes/modules/specials_index.php

by copying to:
/includes/modules/your_template_dir/specials.php

and change the image sizes in RED directly in the code to the sizes you need:

    $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsSpecials centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
    'text' => (($specials_index->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . (int)$specials_index->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $specials_index->fields['products_image'], $specials_index->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . $specials_index->fields['products_id']) . '">' . $specials_index->fields['products_name'] . '</a><br />' . $products_price);

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!