Okay
  Public Ticket #1184995
"Vela Default" Remove "0 other products in the same category"
Closed

Comments

  • Louis7777 started the conversation

    As you can see at the demo,

    http://demo.fieldthemes.com/ps_vela17/default/en/fashion/2-7-blouse.html#/1-size_-s/11-color_-black

    there is a section which shows "other products in the same category" using the "Field product cate" module.

    Can I disable it for 0 products using a condition and, if yes, can you show me how?

  •  1,593
    Criss replied

    Hi Louis,

    #Can I disable it for 0 products using a condition

    -> What did you used a condition? and Where?

    Best Regards,
    Criss - FieldThemes

  • Louis7777 replied

    Hi. I haven't used anything yet.

    I was wondering if there could be a {condition} to add to the "Field product cate" module template to check for 0 products.

    But any solution you can recommend is welcome.

  •  1,593
    Criss replied

    Hi Louis,

    In this module "Field product cate"  it has helped you check that.

    http://prntscr.com/fclff1

    Best Regards,
    Criss - FieldThemes

  • Louis7777 replied

    Thank you for showing me that.

    The title "0 other products in the same category" appears because just above the code line that you marked, there is a check -for the title only- like this:

    {if $categoryProducts|@count > 1}
    {$categoryProducts|@count} {l s='other products in the same category' mod='fieldproductcates'}
    {else}
    {$categoryProducts|@count} {l s='other product in the same category' mod='fieldproductcates'}
    {/if}
    

    So I just need to remove the {else} part.

    Problem solved. :)

  •  1,593
    Criss replied

    Hi Louis,

    That's right...

    Thank you and have a nice day!

    Best Regards,
    Criss - FieldThemes