Jump to content

Display 'online Only' In Product List


Recommended Posts

I solved it by myself. Maybe someone could have the same necessity, so I share with you my solution:


In Product-List.tpl I put this code where I want to show the text "Online Only":

{if isset($product.online_only) && $product.online_only == true}
<p class="online_only">{l s='Online only'}</p>{/if}

Link to comment
Share on other sites

  • 7 months later...



referring to this subject,

I modified the product-list.tpl file in many ways, even like your sugestion in this topic but the only place where the result it's OK is in the site search results, but not in the product list with the other products from the same category (like in the 2 images that i attached).


For me it will be OK even if I can alterate the "available" green text or to have the extra "online only" red text, but in the long list with the all products from one category.


Thank you.

Link to comment
Share on other sites

  • 4 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...