Comparing Zipurman's video and ecartz' code, the error on line 3 seems to be the inclusion of open and close parenthesise at the end of the class declaration.
Removing them allows it to work straight away.
I've been away from the software for a while but started again this weekend.
I lost my mother to a severe stroke and it takes your mind to a different place and changes your perspective of what's important and your priorities.
The login required seems to work well but the What's new side bar shows the price of the item when not logged in.
Can anyone suggest what I should do please ?
Nigel wrote: ↑Mon Aug 30, 2021 8:42 pm
I've been away from the software for a while but started again this weekend.
I lost my mother to a severe stroke and it takes your mind to a different place and changes your perspective of what's important and your priorities.
The login required seems to work well but the What's new side bar shows the price of the item when not logged in.
Can anyone suggest what I should do please ?
So sorry to hear about your mother. My condolences.
You could edit the includes/modules/boxes/bm_whats_new.php
You could change add the following to the function execute() {
Nigel wrote: ↑Mon Aug 30, 2021 8:42 pm
I've been away from the software for a while but started again this weekend.
I lost my mother to a severe stroke and it takes your mind to a different place and changes your perspective of what's important and your priorities.
The login required seems to work well but the What's new side bar shows the price of the item when not logged in.
Can anyone suggest what I should do please ?
So sorry to hear about your mother. My condolences.
You could edit the includes/modules/boxes/bm_whats_new.php
You could change add the following to the function execute() {
function execute() {
if (($GLOBALS['customer'] ?? null) instanceof customer) {
** leave all the code in here ***
}
}
Sorry for the delay in response.
Thanks re. my mum.
Should this be added as a user template by creating modules/boxes/bm... ?
Furthermore, is your if statement surrounding everything in the execute function ?