this "I agree Term and condition Button checked by default . i want to write the checked condition checked in its Twig file but i don't know there that file is located
this is the screen shot URL https://prnt.sc/r1l3cs

Code: Select all
<input type="checkbox" name="newsletter" value="1" id="newsletter" />
Code: Select all
<input type="checkbox" name="newsletter" value="1" id="newsletter" checked="checked" />
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
It did the same that you showed but its not working . i am using Journal theme do u know how to do that in journal 3 themexxvirusxx wrote: ↑Thu Feb 13, 2020 4:22 pmTry checkout/register.twig
ChangeTo:Code: Select all
<input type="checkbox" name="newsletter" value="1" id="newsletter" />
Code: Select all
<input type="checkbox" name="newsletter" value="1" id="newsletter" checked="checked" />
Screenshot_2020-02-13_16-09-02.png (34.39 KiB) Viewed 4493 times
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
In Journal, you obviously need to do the changes in the Journal/checkout folder..
Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...
Hi my settings are the same but
Code: Select all
<input v-model="agree" type="checkbox" />
Code: Select all
<input type="agree" type="checkbox" checked="checked" />
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Thank You Very Much It Workedxxvirusxx wrote: ↑Tue Mar 03, 2020 7:17 pmTry to contact Journal 3 support.
or you can try this...
From catalog/view/theme/journal3/template/journal3/checkout/confirm.twig
Change this:To this:Code: Select all
<input v-model="agree" type="checkbox" />
Code: Select all
<input type="agree" type="checkbox" checked="checked" />
Possible not...because of this....
Code: Select all
v-model will ignore the initial value, checked, or selected attributes found on any form elements. It will always treat the Vue instance data as the source of truth. You should declare the initial value on the JavaScript side, inside the data option of your component.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Hi its not working properly its showing the checked box checked but when i confirm it showing error that i have to check the term and condition firstxxvirusxx wrote: ↑Tue Mar 03, 2020 8:05 pmPossible not...because of this....
And I don't know if vue accept that type of code...https://vuejs.org/v2/guide/forms.htmlCode: Select all
v-model will ignore the initial value, checked, or selected attributes found on any form elements. It will always treat the Vue instance data as the source of truth. You should declare the initial value on the JavaScript side, inside the data option of your component.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 5 guests