Hide Account/Customer Group Id

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeHide Account/Customer Group Id

This topic has been marked as resolved.

Hi, I went to hide customer_group_id (Account) from guest checkout, and it looks as if there’s already some logic to hide the id if the number of customer groups is <= 1. Well, that's what I think it's meant to do, however the logic doesn't work. <?php if (!count($customer_groups) > 1): ?>

Is this meant to be <?php if (!(count($customer_groups) > 1)): ?>?

I have an older version of shoppica2, but the code still exists in guest.tpl in 2.2.3.

I've changed it to what I think it's trying to do. It achieves what I want anyway :-) .

Is my understanding correct?

Thanks!

  • This reply was modified 3963 days ago by  boonga.
 boonga
June 28, 2013 at 2:02 am #24853

Hi,

It seems we have made a wrong if statement here :) Thanks for pointing it out!

It should be easier to read as:

<?php if (count($customer_groups) < 2): ?>

Thanks again :)
Svetoslav

ThemeBurn team

July 3, 2013 at 12:45 pm #25083

Same problem exists in register.tpl ;-)

 boonga
July 6, 2013 at 3:48 pm #25221
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
July 9, 2013 at 9:33 am #25287
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.