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.
Views: 4,941
Zen Follower
Hi all,
can anyone tell me where can I set the image size in Specials page?
There is a columnar layout.
Oba-san
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 ...
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!
Zen Follower
Thank you, very much!
Zen Follower
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
Oba-san
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 ...
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!
New Zenner
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
Oba-san
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 ...
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!
New Zenner
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?
Oba-san
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 ...
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!
New Zenner
Sure - https://www.natural-ivf-support.com
Thanks
Oba-san
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 ...
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!
New Zenner
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?
Oba-san
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 ...
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!
New Zenner
OMG - thank you. It was the max values set to 0:clap:
Oba-san
Hate when that happens ... :lamo:
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
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
New Zenner
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
Oba-san
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 ...
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!
New Zenner
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
Oba-san
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 ...
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!
Tell staff why this post should be reviewed.