Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stopping a drop down on input ...


Ajeh

Recommended Posts

Posted

I have a groovy new feature on the Attribute Sorter ...

 

Click on an existing Product and say Copy attributes to ...

 

You fill in the blank, voila ... all attributes go to another existing product. :D

 

Now this is all fine and dandy in testing ... but that little auto fill thingy is gonna make that drop down on the fill in the blank grow awfully large.

 

What's the trick to making it not grow? :?

Posted

Splitting it up into multiple dropdowns?

Perhaps I do not understand correctly but a dropdown will be as big as it's contents. It will just add a scroll bar to it...

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

I worded that poorly ...

 

It's a click on the product on the left for the copy from ... then click a button to say copy attributes and you fill in the product id#

 

Problem is the product id# starts the auto complete on the browser. This will get too long.

 

I want to take the input but not let the auto complete work.

 

Actually what I really want is a list of all the products id# and product names except for the product I am sitting on when in categories.php

 

Then, be able to select from that drop down the product id to copy to ...

 

Unfortunately, this is where I get lost sometimes. I am on the right side of the categories.php and click the Copy Attributes button. This changes the right side to say Copy from (it shows current info) and askes Copy to ... where you fill in the blank. I would love that to be a drop down that includes all products *except* the product I am about to Copy from.

 

But, this will have to be optional. As some folks with 10,000 products may not like the drop down.

Posted

I have not seen your Attrib copier in action but to drop all the prod's with their ID's in a dropdown on itself shouldn't be too hard....

Another perhaps better approach would be to implement an additional step, you first select the category and then the products (for the >1000 product people).

 

Again I have not seen the contrib but I think the most ideal approach would be to poor it into something like the layout of quick_deactivate where you can select multiple products at once to perform the copy on.

As I understand it the copier is one to one right now?

 

Do you have an Admin demo somewhere I can see? PM me if that's ok.

Will be tomorrow though as I am going to bed now, to dream of Steve's golden padlock ;)

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

In Internet Explorer, just add AUTOCOMPLETE="OFF" to any field you don't want to use it on. Or the entire form if you wish.

Posted

Okay ... site is open for a few minutes do not abuse the priveledge ...

 

http://www.thewebmakerscorner.com/snap_att...ttribtues/admin

 

Go to the Categories ... Click a product ... notice the extra button on right screen bottom.

 

Click it when on a product ... tell it the product # to copy to.

 

Working on all the bad things ... like wrong product # etc.

 

Debating if a drop down menu is the solution less the current product id# or what.

 

Imagin 1,000-10,000 products and you want to copy attributes.

 

There is also the Copy Attributes on Copy Duplicate Products ...

 

Then the Attributes table with the Sorter on the Products page and new attribute features not yet ready for prime time players coming soon there ...

 

Play nice ... and do not break things. :roll:

Posted
In Internet Explorer, just add AUTOCOMPLETE="OFF" to any field you don't want to use it on. Or the entire form if you wish.

 

And for those of us who read really slow ... we add that where? :D

Posted
In Internet Explorer, just add AUTOCOMPLETE="OFF" to any field you don't want to use it on. Or the entire form if you wish.

 

And for those of us who read really slow ... we add that where? :D

 

It is to turn off the Browser's Auto-complete feature. You add it to the form field. For example:

 

<input type="text" size="25" maxlength="50"... autocomplete="off">

 

As for your other issue, a drop down would be unwieldy in a shop with a few hundred products let alone thousands. Maybe a different approach that would probably be less resource intensive and actually easier to maintain.

 

You should have a input box there with a link next to it of "find" when clicked the link pops up a window with all the categories then individual products within the categories so the user can drill down if they don't know the exact product they have. Little more work on the admin's part but probably more scalable and ultimately user friendly.

 

After they find the product, they can click on the product number and a little javascript will copy it back to the input box and close the window.

Posted

The popup idea would be best ... I will add that in there and let you then pick the number off of that.

 

On the autocomplete="off" can that be done field by field? Or is that global on the form?

Posted
You should have a input box there with a link next to it of "find" when clicked the link pops up a window with all the categories then individual products within the categories so the user can drill down if they don't know the exact product they have. Little more work on the admin's part but probably more scalable and ultimately user friendly.  

 

After they find the product, they can click on the product number and a little javascript will copy it back to the input box and close the window.

 

And then it will get up and make the coffee too, eh? 8)

 

Let me see how far I take this ... maybe fooling with mattice's last contribution I can use that to get the listings rather than turning off status etc. have it quick find things.

Posted
And then it will get up and make the coffee too, eh? 8)  

 

I thought the JINI implementation of JAVA was going to do that.

Posted

Okay ... need some folks with their thinking caps on.

 

I have open my Admin at:

 

http://www.thewebmakerscorner.com/snap_att.../categories.php

 

Let's not abuse the site, thanks.

 

Here is what needs testing out.

 

1 When on a Product, you can click on the main Copy To button for a Copy as a Link or Duplicate ...

 

I have added: Copy Attributes?

 

2 You also have another Copy To button (I will eventually change it be calm) at the bottom with a text link Product Attribute Copier

 

Click that ... and it asks for a product id# to copy the attributes of the current product to an existing product.

 

If you do not know the product id# there is a nice popup:

[ Quick List Product ID# ]

 

This will let you find the product id you want to copy to. This is a hack off of mattice's quick deactivate that I am not quite done tearing apart and putting back together for this usage. Thanks mattice, that has been a real help on this.

 

Meanwhile the dilema ...

 

1 You want to copy products from Product ID# 32 to Product ID# 75

 

But, Product ID# 75 has 1 of those attributes already. I am assuming *always* skip the copy on pre-existing attribute duplicates.

 

2 You want to copy products from Product ID# 32 to Product ID# 75

 

But Product ID# 75 has downloads ... should these be 1 totally skipped? 2 Copy the attribute settings but not the download filename 3 packup my toys and go home

 

Anyone wishes to try this out, feel free. I am working on it so it may be in test mode where it just says what it is going to do, or it may actually do what it is suppose to.

 

Please try not to break things. And if you could be so kind to keep stuff in Extras, Test 1-Test 3 or make your own folder and not mess up the existing products in the standard catagories I would appreciate it.

Posted

I just played around with this, it's nice!

 

My thoughts on the copy/overwrite attributes are quite simple:

 

Test for it and let the user decide.

 

Again I haven't seen the code (but I did see the contrib, things are improving on my side :D ) but couldn't you just use tep_product_has_attributes() (I think it's called something like that) and if that returns true fetch the existing attribs and spit out a message saying

 

'Product #75 already has the following attributes:'

size: [medium]

color: [blue]

 

and then two radiobuttons, either

 

O overwrite

O append

 

Where overwrite would mean you delete the existing attrib first and then add the copied stuff....

 

I know you're not finished with this but I'll say it anyway (at the risk of getting burned ;) )...

shouldn't you be able to see which attributes you are actually about to copy?

I think they should be listed along with the [Copy Attributes] button.

 

HTH

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

Yeps ... I am working on the See it before you copy it ... :D

 

I often work things backwards ... I want to get the copy ability and testing for dups etc. working before I get the pretty extras working like see what the heck you are about to do before you do it.

Archived

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

×
×
  • Create New...