tag:blogger.com,1999:blog-8662105787759613580.post4329404331434546461..comments2023-05-30T06:13:14.028-07:00Comments on My tech memo: PrestaShop Tips - How to display user group name on front storeAlvinhttp://www.blogger.com/profile/07842202617495536815noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8662105787759613580.post-72531989591088916112010-10-26T17:45:22.371-07:002010-10-26T17:45:22.371-07:00From the error message, I guess you have not done ...From the error message, I guess you have not done step 1. correctly.<br /><br />You must add function getGroupName to ./classes/Group.php file as instructed in the posted.<br /><br />Please note: <br />You must add the code in STEP 1 to the bottom of Group.php file, right before following two lines<br /><br /><br />}<br /><br />?>Alvinhttps://www.blogger.com/profile/07842202617495536815noreply@blogger.comtag:blogger.com,1999:blog-8662105787759613580.post-2524742762005596582010-10-26T12:27:43.711-07:002010-10-26T12:27:43.711-07:00It throws me this error:
Fatal error: Call to und...It throws me this error:<br /><br /><b>Fatal error: Call to undefined method Group::getGroupName() in C:\xampp\htdocs\prestashop\init.php on line 162</b><br /><br />and here are my lines around 162:<br /><br /><b> 'page_name' => $page_name,<br /> 'customerName' => ($cookie->logged ? $cookie->customer_firstname.' '.$cookie->customer_lastname : false),<br /> 'groupName' => ($cookie->id_customer ? Group::getGroupName(intval($cookie->id_customer),intval(_USER_ID_LANG_)) : false),<br /> 'priceDisplay' => $priceDisplay,</b><br /><br />Any hope?<br /><br />Thank you for your valuable time :o)<br /><br />Angelo<br />WisdOM Books.com<br />angelo.pugliese@yahoo.comAnonymousnoreply@blogger.com