Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Conveyor belt slideshow javascript for Featured Items

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 06-11-2011, 07:28 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Conveyor belt slideshow javascript for Featured Items

I think what you are asking is beyond the scope of this modification. Its not something that really interests me, I was hoping I could have a "slideshow" of manufacturers (since we have over 100 of them) instead of the very long list in the menu or a Javascript "dropdown/select box".

After spending several hours and not getting it to function I gave up.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #52  
Old 01-09-2013, 02:02 PM
 
Nour Nour is offline
 

Member
  
Join Date: Jul 2010
Posts: 29
 

Default Re: Conveyor belt slideshow javascript for Featured Items

I did the follwing it's great
it's just not linking to the products so can any one help me
the thumb should link to the products
http://atwdiamond.com/prestigedemo


Quote:
Originally Posted by gfiebich
I wanted a way to jazz up the Featured Items display on my store's homepage without using Flash or orther plugins. The Conveyor Belt Slideshow javascript found on DynamicDrive.com fit the bill. The trick was to build the image array from the Featured Items in X-cart. Here are the steps to get this working:
Open skin1/customer/products.tpl and find
Code:
{if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")}
and replace that with
Code:
{elseif $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured ne "Y" and $config.Appearance.featured_only_multicolumn eq "N")}
Now, just above that, paste
Code:
{if $featured eq "Y"}
{literal}


{/literal}
Copy the code from DynamicDrive: http://www.dynamicdrive.com/dynamici...rightslide.htm
and paste it just between the {literal}s.
In the code you just got from DynamicDrive, find
Code:
leftrightslide[0]='[img]dynamicbook1.gif[/img]'
leftrightslide[1]='[img]dynamicbook2.gif[/img]'
leftrightslide[2]='[img]dynamicbook3.gif[/img]'
leftrightslide[3]='[img]dynamicbook4.gif[/img]'
leftrightslide[4]='[img]dynamicbook5.gif[/img]'
and replace it with
Code:
{/literal}
{section name=product loop=$f_products}

leftrightslide[{counter}]='{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}'

{/section}
{literal}
That's it - modify the variables in the DynamicDrive script as needed and feature some items in the store admin.
A couple of notes: I wasn't able to get this code to function both at the home-level and in subcategories (has to do with the $productid variable format changing), the thumbnail images are aligned=bottom, the images scroll right to left (negative numbers in the settings don't have the expected results). If you have questions about the code, please don't paste any of the DynamicDrive script in your message as that would violate their TOS. This was done in X-Cart Gold 4.0.17.

happy modding,
-Glen
__________________
x-cart-4.3.2gold
Reply With Quote
  #53  
Old 01-11-2013, 01:13 PM
 
Nour Nour is offline
 

Member
  
Join Date: Jul 2010
Posts: 29
 

Default Re: Conveyor belt slideshow javascript for Featured Items

hello
any one knows how to add the links??!!
__________________
x-cart-4.3.2gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:45 AM.

   

 
X-Cart forums © 2001-2020