Please, I need that checkbox checked by default. Is there a simple way doing this?
Please, I need that checkbox checked by default. Is there a simple way doing this?
Quick and dirty: Edit /includes/classes/observers/class.remember_me_observer.php. Find
and change toCode:public function create_checkbox() { return ($this->enabled) ? ('<label class="checkboxLabel" for="permLogin" title="' . TEXT_REMEMBER_ME_ALT . '">' . TEXT_REMEMBER_ME . '</label>' . zen_draw_checkbox_field ('permLogin', '1', false, 'id="permLogin"') . '<br class="clearBoth" />') : ''; }
I'll update the plugin's GitHub repository with a change-request to make a configuration setting to make it easier for you to set that default!Code:public function create_checkbox() { return ($this->enabled) ? ('<label class="checkboxLabel" for="permLogin" title="' . TEXT_REMEMBER_ME_ALT . '">' . TEXT_REMEMBER_ME . '</label>' . zen_draw_checkbox_field ('permLogin', '1', true, 'id="permLogin"') . '<br class="clearBoth" />') : ''; }
Superb. thank you.
Gettingwith planet Zen Commerce. Can PM access info if you've set it aside.Code:[01-Jan-2018 06:19:52 UTC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /home/planzen/public_html/includes/classes/observers/class.remember_me_observer.php on line 26
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
Well... that's what I get making those "simple" last minute changes. The correction is to change line 26 from
toCode:$this->enabled = (defined('PERMANENT_LOGIN') && PERMANENT_LOGIN == 'true') && !isset($_SESSION['COWOA'] && !isset($_SESSION['is_guest_checkout']));
I'll get that change booked for an update.Code:$this->enabled = ((defined('PERMANENT_LOGIN') && PERMANENT_LOGIN == 'true') && !isset($_SESSION['COWOA']) && !isset($_SESSION['is_guest_checkout']));
v1.4.6 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=332
Dear friends, today I have observed that when I use facebook login ( oneall service ), zcrm_hashstring is set to expire on 1970. This prevent module working as expected.
Please see an attached picture.
Please let me know how can I solve this issue.
Many thanks
solo
Bookmarks