Just want to say that I've been having a blast with modifying opencart (i'm looking to launch a small store as a side hobby). And I've been doing good with making vqmods for certain things so far. Thank you to all the wonderful developers for the hard work you've put in! Anyway...
I've encountered a small stumbling block again which I hope someone can point me in the right direction for. I religiously searched for a day and a half on the forums anything related to this topic, but I could not find an answer, so I apologize if this was answered anywhere else!
I'm going to use the "fax" field in the oc customer database for company name instead. I have my reasons for this as I don't want to use address fields for it. I need to sometimes sort customers by company rather than name in my admin customers lists. Rather than messing with the database by creating a new field for it, I'm just going to substitute the fax field as my workaround which is better for my purpose here.
So... I have a VQmod that can pull up customer ID and show it to me successfully, but the same is not working for the "fax field". I just need friendly guidance again on what other file I should be looking at to be able to populate my "fax" column correctly for customers.
Here is part of the vqmod code related to this:
Code: Select all
<file name="admin/view/template/customer/customer_list.tpl">
<operation info="add customer id and company name columns">
<search position="before"><![CDATA[
<td class="text-left"><?php if ($sort == 'name') { ?>
]]></search>
<add><![CDATA[
<td class="text-left">Customer ID</td>
<td class="text-left">Company</td>
]]></add>
</operation>
<operation info="populate customer id and company columns">
<search position="before"><![CDATA[
<td class="text-left"><?php echo $customer['name']; ?></td>
]]></search>
<add><![CDATA[
<td class="text-left"><?php echo $customer['customer_id']; ?></td>
<td class="text-left"><?php echo $customer['fax']; ?></td>
]]></add>
</operation>
</file>
I guess I was thinking that:
Code: Select all
<td class="text-left"><?php echo $customer['fax']; ?></td>
So what other file do I need to look at to modify it correctly?
Again, I greatly appreciate any help.