The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 12-06-2012, 04:37 AM
smoothsailingco.com's Avatar
smoothsailingco.com is offline
 
Join Date: Dec 2011
Location: CA / FL
Posts: 345
Exclamation

Out of stock: Remove size/option from drop down


Is it possible to remove the size/option from the drop down instead of having it there saying the size is out of stock?

Right now Medium is out of stock and when you select it you get the Sold Out message:


Instead is it possible to have the Medium option (or any sold out option) removed like so:


Thanks!
  #2  
Old 12-06-2012, 07:59 AM
Maya's Avatar
Maya Maya is offline
Ecwid Team
 
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 5,876
Default

Unfortuntaely, Ecwid doesn’t have functionality, which allows to hide a certain product option that corresponds to an “Out of stock” variation. If you consider that this functinality should be added in Ecwid, please, vote for this idea here: http://ideas.ecwid.com/forums/22031-...y-are-out-of-s and we will email you when it is released.
__________________
Maya N., Ecwid Team

------------------
Welcome to our new Help Center!
  #3  
Old 12-06-2012, 08:13 AM
smoothsailingco.com's Avatar
smoothsailingco.com smoothsailingco.com is offline
 
Join Date: Dec 2011
Location: CA / FL
Posts: 345
Default

How many votes are needed before it is looked in to for a fix?
  #4  
Old 12-06-2012, 11:02 AM
Eugene Rimmer's Avatar
Eugene Rimmer Eugene Rimmer is offline
Senior Member
 
Join Date: Jan 2011
Location: Ecwid headquarters
Posts: 7,765
Default

Quote:
Originally Posted by smoothsailingclothing View Post
How many votes are needed before it is looked in to for a fix?
It's not exactly the number of votes that puts the requested feature into the development. It's the importance of this feature over the other requested features. The number of votes allows us to easily compare how one feature is more highly requested than another: http://ideas.ecwid.com/forums/22031-...id/filters/top - the top of this list is more likely to get into our roadmap. Then it's also the "severity" or "necessity" of the feature that matters: if there is no solution for some requested feature at the moment, and the feature itself is mission-critical for the sale process, it is considered highly important.

Regarding removing the options for the variations those are out of stock there is a following big problem: consider you sell t-shirts and have 2 options on them: one for color (black and green), one for size. Now you're out of stock on small green t-shirts and big black t-shirts. Obviously, none of the options may be removed, though there are out of stock variations. There may be even more puzzling conditions since the variations may include "any" as a field value, and they have an order of matching (their position in the list matters). This will make the requested feature applicable only for some merchants, falling back to the current behavior in the tricky cases, while our current solution already works for everyone (although the customer first has to choose the variation to get to know that it is out of stock).

So, we don't really believe this part of variations is broken or really needs a fix right now - it's now implemented in a way that works for everyone and in all cases.

For the simple case when a product only has one option over which the variations with separate stock quantities are built, it is possibleto develop a script that request the product information via the product API, walks through the product variations in the returned product record, finds the variations those are out of stock and removes the options they rely on represented as the <option> elements in the dropdown control in the page. This approach, however, will require some serious web programming skills and still is applicable for the very simple case of a single option (with more options it may block your sales).
  #5  
Old 12-06-2012, 11:24 PM
smoothsailingco.com's Avatar
smoothsailingco.com smoothsailingco.com is offline
 
Join Date: Dec 2011
Location: CA / FL
Posts: 345
Default

Thanks!

Here's what we were able to come up with to solve the problem using jquery.

Hopefully this is Okay to use. We only deal with Size as the option.

Code:
<script>
Ecwid.OnPageLoaded.add(function(page) {
   if ( page.type == "PRODUCT" ) {
        $.ajax({
            url:'http://app.ecwid.com/api/v1/STOREID/product?id=' + page.productId,
            dataType: 'jsonp',
            success:function(json){
                $.each(json.variations, function(index, product) {
                     if ( product.quantity == 0 ) {
                        $("#ecwid-productoption-" + page.productId + "-Size option:eq(" + index + ")").attr("disabled","disabled");
                        if ( (index+1) != json.variations.length ) {
                            $("#ecwid-productoption-" + page.productId + "-Size").val(index+1).trigger('change');
                        }
                     }
                });                         
            }
        });
   }
});
</script>
Removing the items caused the next item in line to say it was out of stock (If Small was out of stock and removed, Medium which was in stock would say out of stock) so we went with disabling.

Thanks again!
The Following User Says Thank You to smoothsailingco.com For This Useful Post:
Eugene Rimmer (12-07-2012)
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
delete, drop down, out of stock, remove

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:57 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.