Jump to content

Display customer name in template


Breees

Recommended Posts

Hello everyone,

I am new to Prestashop and tpl files so this might be verry easy for someone else...

I am creating the edit function for Specific prices.
Everything is working great, the only thing I can't get done is displaying the customer name in the update form.
Example

All I am able to retrieve is the customer id but i'd like to display the customer name instead.

			<div class="form-group">
				<label class="control-label col-lg-2" for="customer_m">{l s='Customer'}</label>
				<div class="col-lg-4">
					<input type="hidden" name="spm_id_customer" id="spm_id_customer" value="0" />
					<div class="input-group">
						<input type="text" name="customer_m" value="{l s='All customers'}" id="customer_m" autocomplete="off" />
						<span class="input-group-addon"><i id="customerLoader" class="icon-refresh icon-spin" style="display: none;"></i> <i class="icon-search"></i></span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-lg-10 col-lg-offset-2">
					<div id="customers_m"></div>
				</div>
			</div>

I was able to send an entire array full of customers to the template, but I can't figure out how to send the specific customer.

If anyone has any idea I'd love to hear it.

 

Thanks in advance!
 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...