1. After this:
Code: Select all
<td><?php echo $entry_newsletter; ?></td>
Code: Select all
<?php $newsletter = 1 ?>
2. Change this:
Code: Select all
<?php if ($newsletter) { ?>
Code: Select all
<?php if (true) { ?>
3. Change this:
Code: Select all
<input type="radio" name="newsletter" value="1" checked="checked" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" />
<?php echo $text_no; ?>
<?php } else { ?>
<input type="radio" name="newsletter" value="1" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" checked="checked" />
Code: Select all
<input type="radio" name="newsletter" value="1" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" checked="checked" />
<?php echo $text_no; ?>
<?php } else { ?>
<input type="radio" name="newsletter" value="1" checked="checked" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" />
See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart
Amazing Gift Boxes - Is an online shop specializing in unique and exclusive hand made gift packaging. Use promo code "code10" to get 10% off and free delivery on orders over £30. | Gift Bags | Gift Boxes
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Really? We'll let the guy call it a "mod" because he has his own reasons lol.straightlight wrote:I wouldn't call this one a 'MOD' but more of a 'small tweak' ... besides, template modifications ain't really about MODding. Only core files which, this time, it isn't VQModed granted but it's only 1 line to demonstrate that the required modifications for this request does work as intended.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
It's what we do here. We "teach" as well as offer support. There are no bad students, only bad teachers. No, we can't expect everyone to think like a programmer because most on here are not. However, we do our best to deliver a truthful message.samolesong76 wrote:Really? We'll let the guy call it a "mod" because he has his own reasons lol.straightlight wrote:I wouldn't call this one a 'MOD' but more of a 'small tweak' ... besides, template modifications ain't really about MODding. Only core files which, this time, it isn't VQModed granted but it's only 1 line to demonstrate that the required modifications for this request does work as intended.
There is a difference between being nit-picky and programmatic.avvici wrote:It's what we do here. We "teach" as well as offer support. There are no bad students, only bad teachers. No, we can't expect everyone to think like a programmer because most on here are not. However, we do our best to deliver a truthful message.samolesong76 wrote:Really? We'll let the guy call it a "mod" because he has his own reasons lol.straightlight wrote:I wouldn't call this one a 'MOD' but more of a 'small tweak' ... besides, template modifications ain't really about MODding. Only core files which, this time, it isn't VQModed granted but it's only 1 line to demonstrate that the required modifications for this request does work as intended.
<?phpecho $nitpicky;?>There is a difference between being nit-picky and programmatic.
The difference between that line of code and this: <?php echo $nitpicky;?> is one white space but to not have that white space would break the entire procedure. You call it nit-picky. We call it critical.
Users browsing this forum: No registered users and 96 guests