Totally Zenned
- Join Date:
- May 2009
- Posts:
- 1,273
- Plugin Contributions:
- 3
[Done v1.6.0] customer referral snip in edit account
Hi,
Premise:
I am not a coder.
Anyhow, while trying to customize tempates/tpl_account_edit_default.php at line 68 (v 1.54)
<?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', 15), 'id="customers-referral"'); ?>
I added a class to the field like this
<?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', 15), 'text id="customers-referral" class="form-control"'); ?>
and it would not behave like the other fields, when inspecting in firebug I noticed it reported the source like this
<input type="id="customers-referral" class="form-control"" maxlength="32" size="16" value="" name="customers_referral">
so it appeared to me that the ```
type"text"
```php
<?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', 15) . 'id="customers-referral" class="form-control"'); ?>
it seems to be outputted correctly, and the styling is working fine.
In case it is hard to notice I changed the , (comma) after 'customers_referral', 15) to . (period)
Is that an error, or am I messing things up?
Thank you