Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Basic Design Pack Support


toyicebear

Recommended Posts

1. you can edit product_info.php to to use different width and height.

 

2. There are several contributions for productlisting available in the contributions section

 

 

 

There is a includes/functions/html_output.php included in the pack marked with no-cssbuttons rename to html_output.php and upload and use that one.

 

I don't get the original gifs back, just text without css-buttons. What can be wong?

Thanx for all the help by the way! :thumbsup:

Link to comment
Share on other sites

I don't get the original gifs back, just text without css-buttons. What can be wong?

Thanx for all the help by the way! :thumbsup:

 

 

To be able to say more i need to see your site, so just post your url and i will have a look.

Link to comment
Share on other sites

www.codered.se/idar3

 

Thanx :)

 

 

you have graphical buttons now, but for some reason there seems to be a problem with the image path

 

for instance

 

http://codered.se/idar3/includes/languages...ton_reviews.gif

 

it does not exsist or there are some access problems on your hosting/server.

Link to comment
Share on other sites

you have graphical buttons now, but for some reason there seems to be a problem with the image path

 

for instance

 

http://codered.se/idar3/includes/languages...ton_reviews.gif

 

it does not exsist or there are some access problems on your hosting/server.

 

Ok, if i put an image in http://codered.se/idar3/images or http://codered.se/idar3/ it shows.

But it doesnt show if i put dem in http://codered.se/idar3/includes or any deeper catalog.

What is wrong here?

example http://codered.se/idar3/361.jpg

Edited by AndreasE
Link to comment
Share on other sites

Hi,

 

Thanks for the contribution! I have made a small amendment as I found a problem - could you see if it's ok.

 

I'm using the on-the-fly thumbnailer html_output and I deleted the css button code as I didn't want that. anyway it all worked except I found that if the image size you specified in admin was bigger than the original image it didn't scale the image up and so didn't keep the aspect ratio the same, BUT the normal functions of the shop did size the image so you could end up with a very distorted image (I know in reality your image is going to be bigger than the thumbnails but I found this out after playing around resizing the default stock images)

 

So I then tried to change the code so that it resized the image always - even if it had to scale up slightly (again unrealistic but could happen)

 

So in html_output I changed this:

 

// Scale the image if larger than the set width or height

if ($image_size[0] > $width || $image_size[1] > $height) {

$rx = $image_size[0] / $width;

$ry = $image_size[1] / $height;

 

if ($rx < $ry) {

$width = intval($height / $ratio);

} else {

$height = intval($width * $ratio);

}

 

$image = '<img src="product_thumb.php?img='.$src.'&w='.tep_output_string($width).'&h='.tep_output_string($height).'"';

}

 

} elseif (IMAGE_REQUIRED == 'false') {

return '';

}

}

 

to this:

 

// Scale the image if larger than the set width or height

$rx = $image_size[0] / $width;

$ry = $image_size[1] / $height;

 

if ($rx < $ry) {

$width = intval($height / $ratio);

} else {

$height = intval($width * $ratio);

}

 

$image = '<img src="product_thumb.php?img='.$src.'&w='.tep_output_string($width).'&h='.tep_output_string($height).'"';

}

 

} elseif (IMAGE_REQUIRED == 'false') {

return '';

}

 

and also deleted this from product_thumb.php:

 

// Do not output if get values are larger than orig image

if ($_GET['w'] > $image[0] || $_GET['h'] > $image[1])

return;

 

Is this an OK way of doing it - it seems to work! It's really just to make sure the ratio's stay the same on the off chance that you're trying to scale an image up. If there is a better way of doing it please let me know!

 

Thanks

 

Becki

 

P.S i also was wondering what size to save my images as (thats the size they show up in when you've clicked to enlarge isn't it) Is there any difference in loading time for the product_listing / product_info page if the original image is 30kb or 60kb? Because the resized version in going to be ~3kb and this is all the customer has to download?Right? or does it still take longer for a larger file size because it takes longer to resize it?

Link to comment
Share on other sites

Hi,

 

Thanks for the contribution! I have made a small amendment as I found a problem - could you see if it's ok.

 

I'm using the on-the-fly thumbnailer html_output and I deleted the css button code as I didn't want that. anyway it all worked except I found that if the image size you specified in admin was bigger than the original image it didn't scale the image up and so didn't keep the aspect ratio the same, BUT the normal functions of the shop did size the image so you could end up with a very distorted image (I know in reality your image is going to be bigger than the thumbnails but I found this out after playing around resizing the default stock images)

 

So I then tried to change the code so that it resized the image always - even if it had to scale up slightly (again unrealistic but could happen)

 

So in html_output I changed this:

to this:

and also deleted this from product_thumb.php:

Is this an OK way of doing it - it seems to work! It's really just to make sure the ratio's stay the same on the off chance that you're trying to scale an image up. If there is a better way of doing it please let me know!

 

Thanks

 

Becki

 

P.S i also was wondering what size to save my images as (thats the size they show up in when you've clicked to enlarge isn't it) Is there any difference in loading time for the product_listing / product_info page if the original image is 30kb or 60kb? Because the resized version in going to be ~3kb and this is all the customer has to download?Right? or does it still take longer for a larger file size because it takes longer to resize it?

 

These kind of questions are better put in the support tread for, On the fly thumbnails generator

Link to comment
Share on other sites

These kind of questions are better put in the support tread for, On the fly thumbnails generator

 

 

OK - I think the function was meant to be in there fo rthis reason:

 

A check to see if the thumbnail dimensions being passed to the thumbnailer are greater that the size of the original image. In which case, the image will not be output. (A security feature to mitigate DOS (Denial of Service) attacks with users calling the thumbnailer directly with very large width/height values.)

 

Still needs a solution though...I'll try and find one!

 

Becki

Link to comment
Share on other sites

The support in this thread is amazing :thumbsup:

Therefore i need to ask one more question:

 

I have a white 1px border around my productimages. This usually works flawless. However,

on page: http://codered.se/idar3/index.php?cPath=21_23

 

that border appears around one button. If you cant see it, use the swedish flag.

How can i fix that? I dont have that problem with any oher button (i think)

 

Andreas

Edited by AndreasE
Link to comment
Share on other sites

The support in this thread is amazing :thumbsup:

Therefore i need to ask one more question:

 

I have a white 1px border around my productimages. This usually works flawless. However,

on page: http://codered.se/idar3/index.php?cPath=21_23

 

that border appears around one button. If you cant see it, use the swedish flag.

How can i fix that? I dont have that problem with any oher button (i think)

 

Andreas

 

You have set the stylesheet class to add borders to all images under that class, so that is just what is happening.

 

click on basics for design in my signature below and reading through that tread you will also find a way to add borders to images and not buttons.

Link to comment
Share on other sites

Hi, I have installed the BDP and I'm testing locally using XAMPP server, ever since when I load the store, click on any link in the store I get loads of msdos box's come up running c:/windows/system32/cmd.exe the store works fine but this happens for every operation within the store.

 

I have searched the forums and this thread and can't seem to find any info on this.

 

Can anyone shed any light on this for me.

Link to comment
Share on other sites

Hi, I have installed the BDP and I'm testing locally using XAMPP server, ever since when I load the store, click on any link in the store I get loads of msdos box's come up running c:/windows/system32/cmd.exe the store works fine but this happens for every operation within the store.

 

I have searched the forums and this thread and can't seem to find any info on this.

 

Can anyone shed any light on this for me.

 

 

I have not expirienced this or heard anyone else expiriencing this....

 

 

so i guess its only on your install...

Link to comment
Share on other sites

After trawling the forums again I found another couple of people with the same problem

 

see the first posts on page: http://www.oscommerce.com/forums/index.php?sho...mp;#entry958112

 

in this thread, don't know how I missed them thought I'd read it all!

 

Any ideas??

 

 

 

Dont use XAMPP use EasyPhp instead.

Link to comment
Share on other sites

I just installed oscommerce on a test site I play with (Fantasico install) I download this and literally dropped it over my current files as instructed. However the end result is a total mess with loads of what I can only presume is loads of php code on the screen. Anyone care to let me know how I have done it so wrong??

 

My site

sorted it

Edited by dapex
Link to comment
Share on other sites

Hi again. I want to change my index page som my productlisting is a little tighter. I dont want so much space between the products. For example: http://codered.se/idar3/index.php?cPath=21_23

 

I want more space to the left and right of the product listning instead. Can I set the with of the table somwhere and center it?

 

Andreas w 1000 questions :blush:

Link to comment
Share on other sites

Hi again. I want to change my index page som my productlisting is a little tighter. I dont want so much space between the products. For example: http://codered.se/idar3/index.php?cPath=21_23

 

I want more space to the left and right of the product listning instead. Can I set the with of the table somwhere and center it?

 

Andreas w 1000 questions :blush:

 

You can set that in - includes/modules/product_listing.php

Link to comment
Share on other sites

One more... I tried to install

'On the Fly' Auto Thumbnailer using GD Library

http://www.oscommerce.com/community/contributions,2226

 

And it hit me that BDP already have something like this installed. Is it the same?

 

standard BDP have Automatic Thumbnails installed.

 

But for those where automatic thumbnails do not work, 'On the Fly' Auto Thumbnailer using GD Library is also included as an alternative...

 

For info on how to use, check the readme file from BDP.

Link to comment
Share on other sites

Hi!

 

I am using the latest BDP, and the blue arrows included under categories.

1) The spacing in between categories are much apart. Where do I have to change so that it will not have so much space from each other, like the original Oscommerce? I still want to keep the blue arrows.

3) I want the item numbers be shown under categories, how do I do this?

2) Now I want the sub categories shown together with the categories from the start of the page, how do I do it?

 

 

Thanks. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...