pcsk Posted yesterday at 12:30 PM Share Posted yesterday at 12:30 PM (edited) Please can you help me how to make product availability in PrestaShop 9.0.2? There is working only $product.availability_message but I need to show different availability to logged in customer and not logged in customers I had before version 1.7.7.8 where was $product.available_now working (when you have them empty at products, it takes data from PrastaShop configuration) {block name='product_availability'} <div class="availability"> <span id="product-availability"> {if !$customer.is_logged} <i class="material-icons product-available"></i>{$product.available_now} {else} {if $product.quantity > 0} <i class="material-icons product-available"></i>{$product.available_now} {else} <i class="material-icons product-last-items"></i>{$product.available_later} {/if} {/if} </span> </div> {/block} Edited yesterday at 12:33 PM by pcsk (see edit history) Link to comment Share on other sites More sharing options...
wepresta Posted 4 hours ago Share Posted 4 hours ago Hello, In PrestaShop 8/9: $product.available_now and $product.available_later ❌ no longer exist Only $product.availability_message is exposed by default 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