Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Dropdownmenu


euskopc

Recommended Posts

  • Replies 248
  • Created
  • Last Reply

Top Posters In This Topic

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

Link to comment
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.

Link to comment
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.

Link to comment
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"?>);

Link to comment
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.

Link to comment
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 :)

Link to comment
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!

Link to comment
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 ;-)

Link to comment
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

Link to comment
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.

Link to comment
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!!

Link to comment
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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

  • 2 weeks later...

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...