Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

 

Someone asked how i did it. It wasn't that hard. Basically all it does is show a random product each time the customer visits. This product will have a short protion of its description there. With a 'read more' link.

 

It's really basic and cut and paste. Paste the file into catalog/includes/boxes

 

then link it in your default page.

 

Either where it says:



           <td class="main"><br><?php echo TEXT_MAIN; ?></td>





replace with:



           <td class="main"><?php include(DIR_WS_BOXES . 



'display_product.php'); ?></td>



or at the greeting, it's up to you.

 

anyways, hope it helps someone. let me know if you find any errors. I tested it first though.

Posted

$new_products['products_image'], 'Newest Anime', 210, 138) .

 

that line. that 210, 138 is the pic size. you can take that part out and leave it

 

$new_products['products_image'], 'Newest Anime') .

 

or you can find out the height and width of your average pics and use that instead.

 

good luck.

  • 1 month later...
Posted

I meant to give this suggestion for the resizing some time ago and forgot. This is what I changed the line to that you suggested above ---->

 

$new_products['products_image'], 'Newest Anime', SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) .

 

It keeps all the images looking great!

 

Annette

Posted

Great mod, although I would like to remove the border from the image, how can this be done?

 

Jeff

  • 2 weeks later...
Posted
$new_products['products_image'], 'Newest Anime', 210, 138) .

that line. that 210, 138 is the pic size. you can take that part out and leave it

$new_products['products_image'], 'Newest Anime') .

or you can find out the height and width of your average pics and use that instead.good luck.

 

How can I use the big product picture instead of the thumbnail?

  • 3 years later...
Posted

I hate to dig up a dead horse, but does anyone know how to limit the category that this contribution would pull from? I would like it to only pull random products from two categories but I'm not sure how to modify the initial query to this.

 

Any help would be great!

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...