admin@iksi Posted August 18, 2015 Share Posted August 18, 2015 How can I replicate switch button that not only looks like the original but works too? I'm stuck at it being the default value from database Link to comment Share on other sites More sharing options...
admin@iksi Posted September 4, 2015 Author Share Posted September 4, 2015 anyone? Link to comment Share on other sites More sharing options...
NemoPS Posted September 5, 2015 Share Posted September 5, 2015 What are you having trouble with? When you get the value, just use something like{if $value == 1}checked="checked"{/if}In the radio's html, since you seem to have got to that point. You copied and pasted the html? Link to comment Share on other sites More sharing options...
admin@iksi Posted September 7, 2015 Author Share Posted September 7, 2015 What are you having trouble with? When you get the value, just use something like {if $value == 1}checked="checked"{/if} In the radio's html, since you seem to have got to that point. You copied and pasted the html? I'm having a problem with getting Boolean from database, every time i try i get blank pages in product.php i add 'course' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), every other type of data works, except for boolean Link to comment Share on other sites More sharing options...
NemoPS Posted September 7, 2015 Share Posted September 7, 2015 WHat's the db column set to? Also, did you turn on error reporting? It should tell you what the error is Link to comment Share on other sites More sharing options...
admin@iksi Posted September 10, 2015 Author Share Posted September 10, 2015 (edited) WHat's the db column set to? Also, did you turn on error reporting? It should tell you what the error is both are tinyint(1) unsigned it read correctly the value to display but when i try to save there is an error and it doesnt save the changes An error occurred while updating an object. product () error reporting is on but it doesnt show an error Edited September 10, 2015 by admin@iksi (see edit history) Link to comment Share on other sites More sharing options...
admin@iksi Posted September 10, 2015 Author Share Posted September 10, 2015 (edited) I'm not sure what I changed but it started working after 3 weeks of torturing me now there is only the question why when making a custom page smarty doesnt work even if i just copy another page Edited September 10, 2015 by admin@iksi (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 11, 2015 Share Posted September 11, 2015 Glad it works! It depends on what you do when you copy the other page. Are all needed variables assigned in the controller? Link to comment Share on other sites More sharing options...
admin@iksi Posted September 14, 2015 Author Share Posted September 14, 2015 Glad it works! It depends on what you do when you copy the other page. Are all needed variables assigned in the controller? i'm not sure how to do it all as i need a public registration page for employees. but when i copy the client registration page date of birth, page name and gender don't work the question is here https://www.prestashop.com/forums/topic/468441-creating-public-employee-registartion-page/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now