Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

i want to remove tha categories how


3afooor

Recommended Posts

Posted

hi all how can i remove the categories and put instade of them a flash mnue ??????

 

which files should i change

 

and how can i add my mnue ?? :D

Posted

open includes/colum_left.php and:

 

1. remove:

if ( (USE_CACHE == 'true') && !SID) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

and

 

2. paste your menu html there.

 

the other boxes in includes/colum_left.php are within <tr><td></td></tr> tags, so put your menu in between <tr> tags.

 

best

Posted

you could always sniff what langauge the user is using on their browser and then based upon that show english or arabic.

Posted

hi fishy i didnt understand what u said here :::

 

"2. paste your menu html there.

 

the other boxes in includes/colum_left.php are within <tr><td></td></tr> tags, so put your menu in between <tr> tags.

"

 

should i paste my html in the colum_left.php

 

so just write <tr><td></td></tr> then paste the code in between ???

in this file or in other files plz help

Posted

One issue with replacing the menu and adding a hand-coded Flash menu would be that you'll need to update it every time you add a new category.

 

I don't use flash, so I wouldn't know, but can you not pass it some parameters on-the-fly? Such as a string of categories based on osCommerce's 'cPath'?

 

If I were calling an external file to generate my menu, I'd have to tell it what needs to be in the menu. If the external file was a PHP file, I'd probably use something like:

 

menu.php?category1[]=Hardware,1&category1[]=Software,2&category1=DVD%20Movies,3&category2=Action,2_18&category2=Simulation,2_19&category2=Strategy,2_20&selected=2_19

 

So instead of boxes/categories.php generating a box, it would gerenrate the query string to pass the the external file. The query string above would give me 2 arrays:

 

category1 => Hardware,1
             Software,2
             DVD Movies,3

category2 => Action,2_18
             Simulation,2_19
             Strategy,2_20

 

By using these arrays, I have the category name and also the cPath for the link, seperated by a comma. I have one further variable, $selected, which tells me which page is currently loaded and should be shown in the menu in bold, color etc.

 

Just a though!

 

Steve.

Posted

:( i dont know how but i will search

 

i just make a table for the new mnue and paste the java code to make the hover buttons

 

:(

 

thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...