Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Scrolling Images Carousel With Hotlinks In Header


PassionSeed

Recommended Posts

:huh: I've tried many ways to change the code to randomly select images from other categories when there's less than 8 items in the subcategory.

 

I commented out:

 

// if (DISPLAY_SCROLLING_HEADER_PRODUCTS > 0) {

 

 

added:

 

$current_category_count_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id='".$current_category_id."'");

$current_category_count = tep_db_fetch_array($current_category_count_query);

 

if ( ($current_category_count['total'] > 7) || ($current_category_count['total'] < 1) ) {

 

 

and created an alternative heading. But, I don't like the alternate heading.

 

The scrolling images span across the full page and I'd like to keep it that way. How can I modify the code to continue to scroll when there's a subcategory ID, but less than 8 products as it behaves when you're viewing a non-category page? Has anyone figured this out?

Link to comment
Share on other sites

:huh: I've tried many ways to change the code to randomly select images from other categories when there's less than 8 items in the subcategory.

 

I commented out:

 

//  if (DISPLAY_SCROLLING_HEADER_PRODUCTS > 0) {

added:

 

  $current_category_count_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id='".$current_category_id."'");

  $current_category_count = tep_db_fetch_array($current_category_count_query);

 

    if ( ($current_category_count['total'] > 7) || ($current_category_count['total'] < 1) ) {

and created an alternative heading.  But, I don't like the alternate heading.

 

The scrolling images span across the full page and I'd like to keep it that way.  How can I modify the code to continue to scroll when there's a subcategory ID, but less than 8 products as it behaves when you're viewing a non-category page?  Has anyone figured this out?

 

:( Is there anyone out there that can help me with this? A response is greatly appreciated.

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.

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