Jump to content
Sign in to follow this  
euskopc

[CONTRIBUTION] Dropdownmenu

Recommended Posts

thanks for this wonderful contribution, it is the best.

 

i am new to oscommerce, l installed it without great ease.....

 

but... l can't get it to align with my other boxes, how can l fix that....help anyone, you can see my site here www.vesbin.com

 

 

 

thanks

Share this post


Link to post
Share on other sites

1.-Well, first your web is ok but please the link to oscommerce ;-D

www.vesbin.com/catalog

 

2.-You have an error in your categories_js.php file, have you modify?

 

3.-You have installed a contribution for change the look of the boxes, the problem the width of dropdownmenu is bigger than others, the solution is add the atribute width to your boxes.

Share this post


Link to post
Share on other sites

Hi there,

 

Great contribution indeed. I have a problem with the dropdown list gets caught in a loop and keeps reloading using IE6.

 

This only happens when you list all categories within a subcategory or you sort by price any products in the product list.

 

I have the latest version of DropDownMenu but I cannot work out how or where this is happening.

 

It it possible to have the menu clear its list when a search is performed?

 

Thank you.

Share this post


Link to post
Share on other sites

Can I see a web with your errors?

If we want dropdownmenu without the "preselection" feature you need search this line in catalog/includes/boxes/categories_js.php:

 

preselect(<? print "$IDCategories,$IDSubcategories,$IDManufacturers,1"?>);

 

Replace with this:

 

preselect(<? print "-99,-99,-99,1"?>);

Share this post


Link to post
Share on other sites

*************DropDownMenu v2.0 d**************

 

This version only disable the last IE fix. It disables the back button in the browser.

 

Pardon for the inconveniences.

Share this post


Link to post
Share on other sites

The las IE fix works with a lot of problems, it have been removed. You need download the last dropdownmenu contribution (dropdownmenu v2.0 d) and replace the jsrsClient.js

You need update only this file.

When you update the contrib write a post and I'll try help u to solve other problems.

Share this post


Link to post
Share on other sites

Thanks for the recent contribution and your fast reply!

 

I have installed the jsrsClient from version D and everything seems fine until you sort the product list.

 

On our website if you clikc Canon from the manufacturers, then inkjet printers, and choose a printer of your choice. From the returned search if you sort any column the java menu then keeps trying to load itself.

 

If you can help with this that will be very much appreciated. Because your contribution is exactly what we are looking for and nothing else fits the bill :)

Share this post


Link to post
Share on other sites

OK, I see your problems.

The problem is the "search-engine safe urls".

I'll try to fix that because I think that it's important for many sites but It'll be difficult and by the moment I recommend you to disable the "search-engine safe urls" option in the admin.

 

Thanks for the bug advise!

 

If anyone can help me with this bug please post in this thread!

Share this post


Link to post
Share on other sites

Hello burtsmith, I need some help from you... my oscommerce site is very modified and I can't try this as well as I want.

With the friendly url active... can you open selectphp.js and replace all "select_rs.php" with "http://www.abcink.co.uk/select_rs.php"

 

I think that with this patch the contrib will run ok.

 

Reply as fast as you can, very thanks ;-)

Share this post


Link to post
Share on other sites

Hello again :D

 

1.-Open catalog/jsrsClient.js

Search this line:

function jsrsExecute( rspage, callback, func, parms, visibility ){

add this line after it:

var rs_page = dropdownmenu_path + rspage;

 

2.-Open catalog/includes/boxes/categories_js.php

search this lines:

<?php
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVANCED_SEARCH);

add this before it:

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

 

3.-Done!

 

 

When burtsmith confirm that this works I'll release a DropDownMenu v2.1

 

Thanks

Share this post


Link to post
Share on other sites

Sorry to not reply sooner.

 

I have made the changes you have mentioned and the website really well. Thank you very much for your help.

 

The page reloading has stopped.

Share this post


Link to post
Share on other sites
Yes, you are right.

 

You can view your fix in the contributions page.

 

I've visited your website, you need modify catalog/selectphp.js for getting all the dropdownmenu features:

 

1.-Go to the admin section an identify you language ID:

Admin -> Currencies ->Languages-> Select your language and copy your language number (Italian in this case)

 

2.-Open catalog/selectphp.js and search this:

/***********************languages*******************/
var DROPDOWNMENU_CLEAN_DATA = new Array();
var DROPDOWNMENU_CONTAINS_DATA = new Array();
var DROPDOWNMENU_SEARCH_ALL_MANUFACTURERS = new Array();
var DROPDOWNMENU_SEARCH_ALL_CATEGORIES = new Array();
var DROPDOWNMENU_SEARCH_ALL_SUBCATEGORIES = new Array();
//English
DROPDOWNMENU_CLEAN_DATA[1] = 'Clean data';
DROPDOWNMENU_CONTAINS_DATA[1] = 'Contains data';
DROPDOWNMENU_SEARCH_ALL_MANUFACTURERS[1] = 'All manufacturers';
DROPDOWNMENU_SEARCH_ALL_CATEGORIES[1] = 'All categories';
DROPDOWNMENU_SEARCH_ALL_SUBCATEGORIES[1] = 'All subcategories';
//German
DROPDOWNMENU_CLEAN_DATA[2] = 'Saubere daten';
DROPDOWNMENU_CONTAINS_DATA[2] = 'Enthalt daten';
DROPDOWNMENU_SEARCH_ALL_MANUFACTURERS[2] = 'Hersteller alle';
DROPDOWNMENU_SEARCH_ALL_CATEGORIES[2] = 'Kategorien alle';
DROPDOWNMENU_SEARCH_ALL_SUBCATEGORIES[2] = 'Subkategorien alle';
//Spanish
DROPDOWNMENU_CLEAN_DATA[3] = 'Limpiar datos';
DROPDOWNMENU_CONTAINS_DATA[3] = 'Contiene datos';
DROPDOWNMENU_SEARCH_ALL_MANUFACTURERS[3] = 'Todos los fabricantes';
DROPDOWNMENU_SEARCH_ALL_CATEGORIES[3] = 'Todas las categorias';
DROPDOWNMENU_SEARCH_ALL_SUBCATEGORIES[3] = 'Todas las subcategorias';
/***************************************************/

Add new lines for your language (the number between[] is the language ID that we see in the admin section.

 

If you want you can add an extension for your language in contributions page!!

Share this post


Link to post
Share on other sites

You must add in header.php (If you added this line in column_left.php delete it):

include(DIR_WS_BOXES . 'categories_js.php');

 

Open categories_js.php and delete this lines (at the end of the file):

 

<?php include(DIR_WS_BOXES . 'categories.php'); ?>

 

Now you'll need to do a lot of visual changes.

 

Good look, post a link to your web page when finish, I like your idea.

Share this post


Link to post
Share on other sites

DropDownMenu v2.2 is available in the oscommerce contributios page.

 

Now DropDownMenu is compatiblew with Opera.

Another little fix in the enable/disable selects.

Share this post


Link to post
Share on other sites

Hola amigo Ivan.

He intentado instalar tu magn?fica contribuci?n en la CRE Loaded 6 y no hay manera. No se si ser? por el sistema de templates o por qu?. Pero no funciona.

No se si te habr?s encontrado con ese problema o si no conoces CRE Loaded 6.

CRE Loaded 6

Un saludo.

Share this post


Link to post
Share on other sites

I've fixed a lot of bugs:

 

-Easier translations.

-Opera back button.

-Mozilla Back button is broken (This is a Mozilla's bug, it'll be fixed in the v1.8)

-Removed unnecessary code.

-Minnor requests.

-Opera crash when Panda Antivirus Internet Security is running (I've reported the bug to Panda software, I'm waiting their reply)

 

 

Please post your browsers problems, and I'll try to fix them for the next version.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×