eldonate Posted October 9, 2014 Share Posted October 9, 2014 Hello, Our eshop has been populated with around 5000 products and we now want to add a text for any product that has no text on the field "when in stock" Is it possible to add a code for doing this? We need to separate immediatly available products with the ones that are available uppon request. Any other idea how to fix this? I cant go through 5000 products and add manually a text for each one bt I can add text for the available only as these are quite much less Link to comment Share on other sites More sharing options...
Joachim Torngren Posted October 9, 2014 Share Posted October 9, 2014 I believe the setting is in catalog/products/quantities/availability - "Displayed text when in-stock". But I have no idea how to bulk update this....Perhaps by accessing the database directly would be the easiest? Link to comment Share on other sites More sharing options...
eldonate Posted October 9, 2014 Author Share Posted October 9, 2014 Well I was looking to place someting like this on product.tpl <p id="availability_statut"{if ($product_lang->available_now = "")} style="display: none;"{/if}> <span id="availability_label">{l s='Availability:'}</span> <span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span> </p> What does this need to work? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now