Hi all,
can anyone tell me where can I set the image size in Specials page?
There is a columnar layout.
Printable View
Hi all,
can anyone tell me where can I set the image size in Specials page?
There is a columnar layout.
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 ...
Thank you, very much!
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?...
http://www.crashdiet.org/specials3.jpg
Truly greatful for some advice ,as always!
best regards
peter
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
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
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 ...
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?
Have you an URL that we could perhaps peek at to see this? :smile:
Sure - www.natural-ivf-support.com
Thanks
I would start with the Debug Tool from the Free Software Add Ons and see if that tells you where the problem is ...
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?
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 ...
OMG - thank you. It was the max values set to 0:clap:
Hate when that happens ... :lamo:
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
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
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
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
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:
Code:$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);
Thank You. Works
Thanks for the update that this is working for you ... :smile: