Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Dropdownmenu


euskopc

Recommended Posts

 ?return false;
}
br>');
? ?doc.write( '<table border="1"><tr><td>' + contextObj.container.document.body.innerHTML + '</td></tr></table>' );
?}
?doc.write('</table>');
?doc.close();
?return false;
}

 

This is the last code of the  jsrsClient.js.

Is this correct?

 

This is what i read in my server logs:

 

[Thu Sep 30 23:03:23 2004] [error] [client 80.x.x.67] File does not exist: /home/websites/www.prosolit.nl/html/images/default, referer: http://www.prosolit.nl/ltfnew//index.php?o...1e0cc653149bc51

Link to comment
Share on other sites

  • Replies 248
  • Created
  • Last Reply

Top Posters In This Topic

Nope not working

I don't understand anything, are you changing the code?

See at your categories_js.php you have this:

style="\"'width:98%; background-color= #ffffff;\'

Why??????????????????????????

 

 

The correct one is:

style="\'width:98%; background-color= #ffffff;\'><\/

 

 

I'm going to be mad :'(

Link to comment
Share on other sites

I don't understand anything, are you changing the code?

See at your categories_js.php you have this:

style="\"'width:98%; background-color= #ffffff;\'

Why??????????????????????????

The correct one is:

style="\'width:98%; background-color= #ffffff;\'><\/

I'm going to be mad  :'(

 

 

I did not change the code! :'(

Link to comment
Share on other sites

I have added the drop down to my site but for some reason it is putting all the catagories into one dropdown.

 

Any thoughts on what I could be doing?

 

The link is: http://myteamstuff.com/retail/

 

 

Thanks for the help.

 

 

Bob

 

 

########################

 

 

This code repair the bug but disable the history back (back button) with the reloads. This is only a patch, I think that is important the back button.

 

<?php
$javascript="";
$javascript = $_POST['javascript'];

if ($javascript=="")
?{
?$javascript="0";
?>
? <form name="js_habilitado" ?method="post">
? <input type="hidden" name="javascript" value="1">
? </form>
? <script><!--

document.js_habilitado.submit();

? //-->
? </script>
<?php
? }
?>

Link to comment
Share on other sites

Hi,

 

with the changes come with version 2.5 the dropdown menu needs up to 6 seconds to fill in the models after choosing the manufacturer.

 

I have delete the code from version 2.5 in select_rs.php and now the menu is very fast. But delete code is not the best solution.

 

When you need to see it on www.tonermodule.de/osc/catalog/ i will swap the select_rs.php for you. At the moment the fast version run.

 

Greetings

Martin

 

I hope you understand my horrible english :-)

Link to comment
Share on other sites

hi there,

 

I did a complete new install, and guess what ... it works.

It probably conflicted with another contribution.

 

But only one thing:

 

Upon starting the oscommerce-shop in the browser, IE reports a runtime error (line 147), after continuing it does not load the search box.

Only after reloading the page it works ok.

 

Does this ring a bell ?

Link to comment
Share on other sites

Hi,

 

Well done for this contribution... it's now really funny to find something...

For me, this contribution works perfectly, but not for Safari browser (the Apple Browser).

 

MY QUESTION:

I would like to add a filter (in the same way of 'manufacturer', 'cat' and 'subcat') but for another field called 'region'. I would lik eto put this filter just before 'manufacturer' or after 'sub_catergory')

 

'region' come from TABLE 'region' with 2 fields ('region_id' and 'region_name')

and there is a field in TABLE 'products' -> 'region_id'

 

My knowledge in script is not enough for devellopping it, thanks for your help.

 

Sorry for my poor english.

Link to comment
Share on other sites

Hi,

 

Allthough not (yet) seen a reaction on my last post, I have some other questions/suggestions:

 

1.

In this contribution you allways start to select the manufacturer, then choose the catagory, and afterwards the subcatagory.

Is is possible to change this contibution a little to make it possible to start choosing a catagory first, or even a subcatagory, than choosing a manufacturer (limited to the ones which are available in that catagory). I think it would make everything more functional.

 

2.

Is it possible to make a separate reset button instead of the reset function in the first line.

 

3.

It would be nice if the order of the lines could be changed in the admin section.

Manufacturer (0), catagory (1), subcatagory (2) or Catagory (0), subcatagory (1),

manufacturer (2),

 

I have no knowledge about the code myself, so I post this as a suggestion.

Link to comment
Share on other sites

Please, forgive my absence for so many days (mini-holidays). unfortunately I'm trying to end my webpage in the next days and for this reason I cannot help you a lot :'(

 

 

pixelegg, when I'll work in your problem when I've finished the web.

 

FOL, a lot of days have been passed... have you solved the problem? I've have read your beatifull suggestions... but it requires a lot of work. I've done this contrib for my web and it makes me very happy seing that more people use it, I cannot promise you that I'll code it (could be, but not in a short period of time).

 

BIP I think that konqueror have problems and I've to solve it, but I don't know how to solve the safary problems :-(

The regions... please read the FOLs answer.

 

 

I Would like to be able to help you much more with everything what you need, but I do not have enought time at the momment

Link to comment
Share on other sites

Hi Ivan,

 

I hope you enjoyed your holiday.

 

Thanks for your reply. Yes my problem stil exist.

 

Upon starting the oscommerce-shop in the browser, IE reports a runtime error (line 147), after continuing it does not load the search box.

Only after reloading the page it works ok.

 

Regarding my other mail (all the suggestions): I really like your contibution a lot.

Allthough my shop is not online yet (I'm working hard on it), I would like to use your contribution instead of the categorybox. When it would be possible to implement my suggestions I could do without the space-consuming category-box and use your contribution.

 

I hope you can solve my problem first. If you need any extra info, please let me know. There is one little problem, you cannot reach my site yet.

Link to comment
Share on other sites

Hello everyone

I want to make a change to this contribution

I would like to make it to show the products for a manufacturer and category instead of the subcategories

 

To be like:

 

Manufacturer

Category

Products

 

and when click search to go to the selected product info page

 

I really need this change so any help is very much apreciated

 

Thank you

Link to comment
Share on other sites

Hi,

 

on default page the box works fine. But when you go to login and the page switch to ssl the fields in the box have no funktion and with IE comes the message that the page contains secure and unsecure content.

 

I have remove the box from all pages with ssl. Now IE is ok but the customers can not use the search at these pages.

 

Do you have an idee why the box not work with ssl?

 

Thank you f?r help.

Link to comment
Share on other sites

:o

As I said in other posts I have not enought time for all your requests by the moment.

 

Pixelegg, I've fixed your problem but I don't send it to the oscommerce contributions page because I want a better install instructions to the dropdownmenu contribution and my english is horrible (If anybody have a momment for update this install instructions, please mail me!) .

 

This is not the final code but it works fine:

 

1.-Create a file named blank.php (nothing in this file) and copy it in the catalog directory (http and https)

 

2.-Open catalog/jsrsclient.js (http and https) and search this:

case 'IE':
document.body.insertAdjacentHTML( "afterBegin", '<span id="SPAN' + containerName + '"></span>' );
var span = document.all( "SPAN" + containerName );
var html = '<iframe name="' + containerName + '" src=""></iframe>';
span.innerHTML = html;
span.style.display = 'none';
container = window.frames[ containerName ];
break;

 

Change it with this:

case 'IE':
document.body.insertAdjacentHTML( "afterBegin", '<span id="SPAN' + containerName + '"></span>' );
var span = document.all( "SPAN" + containerName );
var html = '<iframe name="' + containerName + '" src="blank.php"></iframe>';
span.innerHTML = html;
span.style.display = 'none';
container = window.frames[ containerName ];
break;

 

3.-Open catalog/includes/boxes/categories_js.php (https only) and search this:

var dropdownmenu_path = "<?php echo DIR_WS_HTTP_CATALOG ?>";

 

Replace with this:

var dropdownmenu_path = "<?php echo HTTPS_SERVER . DIR_WS_HTTPS_CATALOG ?>";

 

 

The Opera browser fails with dropdownmenu contribution if Panda Internet Security is active, I've talked about this problem with Panda Labs and they've said me that It will be fixed In the next release of the panda software.

Link to comment
Share on other sites

:o

As I said in other posts I have not enought time for all your requests by the moment.

 

Pixelegg, I've fixed your problem but I don't send it to the oscommerce contributions page because I want a better install instructions to the dropdownmenu contribution and my english is horrible (If anybody have a momment for update this install instructions, please mail me!) .

 

This is not the final code but it works fine:

 

1.-Create a file named blank.php (nothing in this file) and copy it in the catalog directory (http and https)

 

2.-Open catalog/jsrsclient.js (http and https) and search this:

case 'IE':
document.body.insertAdjacentHTML( "afterBegin", '<span id="SPAN' + containerName + '"></span>' );
var span = document.all( "SPAN" + containerName );
var html = '<iframe name="' + containerName + '" src=""></iframe>';
span.innerHTML = html;
span.style.display = 'none';
container = window.frames[ containerName ];
break;

 

Change it with this:

case 'IE':
document.body.insertAdjacentHTML( "afterBegin", '<span id="SPAN' + containerName + '"></span>' );
var span = document.all( "SPAN" + containerName );
var html = '<iframe name="' + containerName + '" src="blank.php"></iframe>';
span.innerHTML = html;
span.style.display = 'none';
container = window.frames[ containerName ];
break;

 

3.-Open catalog/includes/boxes/categories_js.php (https only) and search this:

var dropdownmenu_path = "<?php echo DIR_WS_HTTP_CATALOG ?>";

 

Replace with this:

var dropdownmenu_path = "<?php echo HTTPS_SERVER . DIR_WS_HTTPS_CATALOG ?>";

The Opera browser fails with dropdownmenu contribution if Panda Internet Security is active, I've talked about this problem with Panda Labs and they've said me that It will be fixed In the next release of the panda software.

 

 

Thank you very much.

 

IE is now OK.

 

SSL: The shop is running on a shared web space. So i have only one catalog directory. Only the login, account and checkout pages run with ssl. But i have made a copy from categories_js.php and named it categories_js_ssl.php. With an extra column_left_account.php it works fine with the new code.

 

Mozilla and Firefox: Please have a look with Mozilla or Firefox at www.tonermodule.de/osc/catalog/login.php

When you use the box an klick search a new security warning comes up.

 

Many greetings from Germany :-)

Martin

Link to comment
Share on other sites

Thank you very much.

 

IE is now OK.

 

SSL: The shop is running on a shared web space. So i have only one catalog directory.  Only the login, account and checkout pages run with ssl. But i have made a copy from categories_js.php and named it categories_js_ssl.php. With an extra column_left_account.php it works fine with the new code.

 

Mozilla and Firefox: Please have a look with Mozilla or Firefox at www.tonermodule.de/osc/catalog/login.php

When you use the box an klick search a new security warning comes up.

 

Many greetings from Germany :-)

Martin

 

When I go to www.tonermodule.de/osc/catalog I don't see links to http://www.tonermodule.de/osc/catalog/login.php the links go to https://www.tonermodule.de/osc/catalog/login.php and the page loads without errors

Link to comment
Share on other sites

  • 4 weeks later...

hello! i have installed this contrib and all seemed fine until i checked the index page and although the infobox loads fine and all dropdowns are seen - no data is populated in any dropdown and they are all greyed out .... however the search box works fine....

 

dropdowns.jpg

 

any ideas?

Edited by rubygirl
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...