Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Best Sellers scroll


greree

Recommended Posts

I downloaded and installed Best Sellers scroll, which has a major flaw. If I have ten best sellers, it'll divide the box into ten little windows and each bestseller will scroll in it's own section. You can see an example of the problem at http://www.puresoap.com/. The code that does this is

    $info_box_contents = array();

   $info_box_contents[] = array('align' => 'left',

                                'text'  => BOX_HEADING_BESTSELLERS

                               );

   new infoBoxHeading($info_box_contents, false, false);



   $rows = 0;

   $info_box_contents = array();

   while ($best_sellers = tep_db_fetch_array($best_sellers_query)) {

     $rows++;

     $info_box_contents[] = array('align' => 'left',

                                  'text'  => '<center><marquee direction="up" scrollAmount="1" style="width:118;height:65">' . '. <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id'], 'NONSSL') . '">' . $best_sellers['products_name'] . '</a></marquee>');

   }



   new infoBox($info_box_contents);

I want something that will generate a list and then scroll the whole thing. Any ideas?

Link to comment
Share on other sites

I am new to osCommerce. and I have yet to build a complete load with all the contributions/features. However, I do know that scolling items will be a requirement that my customer will ask for.

 

I did a similar thing that used an iframe. I modified some code from dynamicdrive.com for a scrolling box. It includes a pause (you set the delay) for each item, and variable speed for the scroll. I modified thier code to allow the items in to rotate so that it doesn't have the blank area that most scrolling boxes get at the bottom of the list.

 

I think this code (Javascript) could be modified to for use in your best sellers box. Once I get further into osCommerce, I'll try to turn this into a contribution.

 

(BTW... marquee is only supported in IE; this javascript is ok for IE4+ and NS6+)

 

You can rip the source from this page:

http://www.hipoparts.com/features.php

Link to comment
Share on other sites

(BTW... marquee is only supported in IE; this javascript is ok for IE4+ and NS6+)

 

Not anymore, Netscape 7.0 supports the marquee tag.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

I sent an email to the guy who wrote the contribution. He said he's working on a fix for the problem and he'll post it to the contributions section when it's finished. In the meantime I just took the list and manually entered it into a scrolling box. It doesn't dynamically change, but I don't suppose that's critical. In fact I may leave it like that. I might want to push certain products by calling them best sellers.

Link to comment
Share on other sites

  • 3 months later...

I have seen a few sites which are using the scrolling best sellers module, but its displaying the image of the product as well as the text....anyone know which mod des that?

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