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.
|
|
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
|
|
Same problem exists in register.tpl
|
|
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
|
|