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

Sliding Menu that displays categories and sub-categories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 06-29-2003, 07:21 PM
 
dairy6888 dairy6888 is offline
 

Newbie
  
Join Date: Jun 2003
Posts: 2
 

Default a same problem

I uploaded the js to skin1, mod cutstomer/categories.tpl, and pasted into skin1.css, and when i should go check out my new feature, all my categories were lost

guess i did wrong somewhere, but cannot find out where...please help.....

thanks
Reply With Quote
  #12  
Old 07-06-2003, 08:36 PM
 
john80y john80y is offline
 

X-Adept
  
Join Date: May 2003
Posts: 459
 

Default

Hey Deals that is a sweet menu..... I would definitly implement this on my site as its MUCH better than stock...

Great work and thank you for sharing !!!
Reply With Quote
  #13  
Old 07-06-2003, 08:39 PM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default

Very nice, thanks for sharing
Reply With Quote
  #14  
Old 07-07-2003, 03:23 PM
 
dealsondeals dealsondeals is offline
 

eXpert
  
Join Date: Dec 2002
Location: Dallas, Texas, USA
Posts: 231
 

Default

Thanks bmaworld & john80y!

I haven't really had the opportunity to much more, been busy upstarting a web hosting and design business - http://www.mind-in-design.net But I hope to do some more mods in the near future. I wish you lots of fun with your x-carts.

dairy6888 - please email me so that I can assist you with the problem your experiencing. If possible please email me your categories.tpl file.

Thanks,

Glen
__________________
Never understimate stupidity.
--------
X-Cart Version: 3.5.2
Hosting:mind-in-design.net
Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14
Reply With Quote
  #15  
Old 07-08-2003, 02:41 AM
 
iCARus iCARus is offline
 

Member
  
Join Date: May 2003
Location: Slovenia
Posts: 21
 

Default

Hmm. i got problems like dairy6888.
All categories are lost.

Anyone know why ?


Thanks.

iCARus
Reply With Quote
  #16  
Old 07-08-2003, 04:44 PM
 
dealsondeals dealsondeals is offline
 

eXpert
  
Join Date: Dec 2002
Location: Dallas, Texas, USA
Posts: 231
 

Default

iCARus,

I am not sure what necessarily needs to be fixed without looking at the files in your directories. But, I would recommend checking to make sure you don't have any unintentional or unnecessary white-space, resulting from the process of copying and pasting. Also, be sure that "slidemenu.js" is placed in: xcart/skin1/ . Give it another shot and let me know how you make it. If needed I'll take alook at your set-up.

Regards,

Glen
__________________
Never understimate stupidity.
--------
X-Cart Version: 3.5.2
Hosting:mind-in-design.net
Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14
Reply With Quote
  #17  
Old 07-08-2003, 06:55 PM
 
dairy6888 dairy6888 is offline
 

Newbie
  
Join Date: Jun 2003
Posts: 2
 

Default I make it work!!!

Finally, I know where the problem is. For all beginner user like me, you have to put the followings script:

under //Image preload .......... and before the {/literal} tag. Then you can see your menu right away!!!

DealonDeals>> Do you have another new version which extract data from db and to form a slide menu?

slideMenu.makeMenu('top',"Electronics");
slideMenu.makeMenu('sub',"Televisions");
slideMenu.makeMenu('sub2',"HDTV Projection",'home.php?cat=9');
slideMenu.makeMenu('sub2',"HDTV CRT",'home.php?cat=60');
slideMenu.makeMenu('sub2',"HDTV Plasma & LCD",'home.php?cat=61');
slideMenu.makeMenu('sub2',"27in.- 36in.",'home.php?cat=62');
slideMenu.makeMenu('sub2',"14in.- 20in.",'home.php?cat=63');
slideMenu.makeMenu('sub2',"TV-DVD Combos",'home.php?cat=64');
slideMenu.makeMenu('sub2',"TV-VCR Combos",'home.php?cat=65');
slideMenu.makeMenu('sub2',"Handheld",'home.php?cat =66');
slideMenu.makeMenu('sub',"Video");
slideMenu.makeMenu('sub2',"DVD Players",'home.php?cat=67');
slideMenu.makeMenu('sub2',"VCR\'s",'home.php?cat=6 8');
slideMenu.makeMenu('sub2',"Portable Video",'home.php?cat=69');
slideMenu.makeMenu('sub',"Audio");
slideMenu.makeMenu('sub2',"Receivers",'home.php?ca t=70');
slideMenu.makeMenu('sub2',"Portable Audio");
slideMenu.makeMenu('sub3',"MP3 Players",'home.php?cat=74');
slideMenu.makeMenu('sub3',"CD Players",'home.php?cat=75');
slideMenu.makeMenu('sub2',"CD Players",'home.php?cat=71');
slideMenu.makeMenu('sub2',"Speakers",'home.php?cat =72');
slideMenu.makeMenu('sub',"Camcorders");
slideMenu.makeMenu('sub2',"Mini-DV",'home.php?cat=76');
slideMenu.makeMenu('sub2',"Hi-8",'home.php?cat=77');
slideMenu.makeMenu('sub2',"VHS-C",'home.php?cat=78');
slideMenu.makeMenu('sub',"Car-Mobile");
slideMenu.makeMenu('sub2',"Car Audio",'home.php?cat=79');
slideMenu.makeMenu('sub2',"GPS");
slideMenu.makeMenu('sub3',"Garmin",'home.php?cat=9 1');
slideMenu.makeMenu('sub3',"Magellan",'home.php?cat =92');
slideMenu.makeMenu('sub2',"Car Video",'home.php?cat=80');
slideMenu.makeMenu('sub',"Telephones");
slideMenu.makeMenu('sub2',"Corded Phones",'home.php?cat=82');
slideMenu.makeMenu('sub2',"Cordless Phones",'home.php?cat=83');
slideMenu.makeMenu('sub2',"Novelty Phones",'home.php?cat=84');
slideMenu.makeMenu('sub2',"Business Phones",'home.php?cat=85');
slideMenu.makeMenu('sub2',"Phone Systems",'home.php?cat=86');
slideMenu.makeMenu('sub',"FRS & GMRS Radios");
slideMenu.makeMenu('sub2',"FRS",'home.php?cat=87') ;
slideMenu.makeMenu('sub2',"GMRS",'home.php?cat=88' );
slideMenu.makeMenu('sub',"GPS");
slideMenu.makeMenu('sub2',"Garmin",'home.php?cat=8 9');
slideMenu.makeMenu('sub2',"Magellan",'home.php?cat =90');
slideMenu.makeMenu('sub',"Digital Cameras",'home.php?cat=16');
slideMenu.makeMenu('sub',"Game Systems",'home.php?cat=109');
slideMenu.makeMenu('top',"Computers");
slideMenu.makeMenu('sub',"Laptops",'home.php?cat=2 0');
slideMenu.makeMenu('sub',"Desktops",'home.php?cat= 21');
slideMenu.makeMenu('sub',"PDAs",'home.php?cat=22') ;
slideMenu.makeMenu('sub',"Processors",'home.php?ca t=23');
slideMenu.makeMenu('sub',"Printers",'home.php?cat= 24');
slideMenu.makeMenu('sub',"Compaq Recertified",'home.php?cat=25');
slideMenu.makeMenu('top',"Software");
slideMenu.makeMenu('sub',"Operating Systems",'home.php?cat=26');
slideMenu.makeMenu('sub',"Games");
slideMenu.makeMenu('sub2',"PC",'home.php?cat=113') ;
slideMenu.makeMenu('sub2',"X-Box",'home.php?cat=110');
slideMenu.makeMenu('sub2',"Playstation 2",'home.php?cat=111');
slideMenu.makeMenu('sub2',"Playstation",'home.php? cat=112');
slideMenu.makeMenu('sub',"Utilities",'home.php?cat =27');
slideMenu.makeMenu('sub',"Business",'home.php?cat= 28');
slideMenu.makeMenu('sub',"Training",'home.php?cat= 29');
slideMenu.makeMenu('sub',"Multimedia",'home.php?ca t=30');
slideMenu.makeMenu('sub',"Children Titles",'home.php?cat=32');
slideMenu.makeMenu('top',"Spy Center");
slideMenu.makeMenu('sub',"Hidden Cameras",'home.php?cat=33');
slideMenu.makeMenu('sub',"Micro Wired Cameras",'home.php?cat=34');
slideMenu.makeMenu('sub',"Wireless Cameras",'home.php?cat=35');
slideMenu.makeMenu('sub',"Video Systems",'home.php?cat=36');
slideMenu.makeMenu('sub',"Receivers & Monitors",'home.php?cat=37');
slideMenu.makeMenu('sub',"Personal Protection",'home.php?cat=38');
slideMenu.makeMenu('top',"Home Automation");
slideMenu.makeMenu('sub',"Starter Kits",'home.php?cat=40');
slideMenu.makeMenu('sub',"X10 Products",'home.php?cat=39');
slideMenu.makeMenu('sub',"Computer Control",'home.php?cat=41');
slideMenu.makeMenu('sub',"Security Systems",'home.php?cat=42');
slideMenu.makeMenu('sub',"Home Theater",'home.php?cat=43');
slideMenu.makeMenu('sub',"Phone & Comm.",'home.php?cat=44');
slideMenu.makeMenu('sub',"Door & Drapes",'home.php?cat=45');
slideMenu.makeMenu('sub',"Pet & Plant Care",'home.php?cat=46');
slideMenu.makeMenu('top',"Accessories");
slideMenu.makeMenu('sub',"Camcorder",'home.php?cat =47');
slideMenu.makeMenu('sub',"Digital Camera",'home.php?cat=48');
slideMenu.makeMenu('sub',"Cell Phone",'home.php?cat=49');
slideMenu.makeMenu('sub',"Game",'home.php?cat=50') ;
slideMenu.makeMenu('sub',"Cables",'home.php?cat=51 ');
slideMenu.makeMenu('sub',"Batteries",'home.php?cat =52');
slideMenu.makeMenu('sub',"Miscellanous",'home.php? cat=53');
slideMenu.makeMenu('top',"Warranty Products");
slideMenu.makeMenu('sub',"XChange Card",'home.php?cat=94');
slideMenu.makeMenu('sub',"Television");
slideMenu.makeMenu('sub2',"Carry-In Service",'home.php?cat=105');
slideMenu.makeMenu('sub2',"In-Home Service",'home.php?cat=106');
slideMenu.makeMenu('sub',"Video Equipment",'home.php?cat=96');
slideMenu.makeMenu('sub',"Home Audio",'home.php?cat=97');
slideMenu.makeMenu('sub',"Home Theater",'home.php?cat=98');
slideMenu.makeMenu('sub',"Camcorders",'home.php?ca t=99');
slideMenu.makeMenu('sub',"Digital Cameras",'home.php?cat=100');
slideMenu.makeMenu('sub',"Car Systems",'home.php?cat=101');
slideMenu.makeMenu('sub',"Computer Systems",'home.php?cat=102');
slideMenu.makeMenu('sub',"Computer Periphals",'home.php?cat=103');
slideMenu.makeMenu('sub',"Laptop-Notebooks");
slideMenu.makeMenu('sub2',"Carry-In Service",'home.php?cat=107');
slideMenu.makeMenu('sub2',"On-Site Service",'home.php?cat=108');
slideMenu.makeMenu('top',"Miscellanous");
slideMenu.makeMenu('sub',"Automotive",'home.php?ca t=58');
slideMenu.makeMenu('sub',"Health & Wellness",'home.php?cat=59');
slideMenu.makeMenu('top',"Auctions");
slideMenu.makeMenu('sub',"eBay",'home.php?cat=55') ;
slideMenu.makeMenu('sub',"Yahoo Auctions",'home.php?cat=56');
slideMenu.makeMenu('sub',"Amazon Auctions",'home.php?cat=57');
slideMenu.init();

{/literal}
Reply With Quote
  #18  
Old 07-09-2003, 03:42 PM
 
nuevojefe nuevojefe is offline
 

Member
  
Join Date: Jul 2003
Location: U.S.
Posts: 24
 

Default Re: Sliding Menu that displays categories and sub-categories

Quote:
Also very important, you are already aware that categories.tpl is referenced in the left-hand column of home.tpl, I would recommend either clearing the contents of the left-hand column to contain only categories.tpl or place some items like authbox.tpl above categories.tpl or place them elsewhere on the page.

How would I rearrange my menus? I would Like to place the "specials" menu above the "categories" and move the "help" to the right side at the bottom under news.

I'm just not sure how to edit the home.tpl to do this.

Please help, I'm anxious to try this out!

Jeff
Reply With Quote
  #19  
Old 07-09-2003, 03:47 PM
 
nuevojefe nuevojefe is offline
 

Member
  
Join Date: Jul 2003
Location: U.S.
Posts: 24
 

Default nevermind

Next time i'll just be brave and try before asking!

That was too easy.

Goooooood x-cart...
Reply With Quote
  #20  
Old 07-09-2003, 04:10 PM
 
dealsondeals dealsondeals is offline
 

eXpert
  
Join Date: Dec 2002
Location: Dallas, Texas, USA
Posts: 231
 

Default

dairy6888,

You went to "View Source" in your browser when looking at my page. What you have posted is the result of the script running and querying the DB for the category information. If you choose to hard-code the categories, that is choice you can make. But the script does query the DB and return the results. Please be sure that you have followed all steps. You still have not sent me your categories.tpl as I have requested, so that I can test it.

Regards,

Glen
__________________
Never understimate stupidity.
--------
X-Cart Version: 3.5.2
Hosting:mind-in-design.net
Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 07:55 PM.

   

 
X-Cart forums © 2001-2020