Zen Cart Logo

Buyer Info

Locked

Views: 1,046

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
22 Nov 2007, 8:10 AM
#1
xaria avatar

xaria

New Zenner

Join Date:
May 2007
Posts:
92
Plugin Contributions:
0

Buyer Info

I need to send buyer info to the payment gateway. Basically just the First name and last name. How can I concatenate these two fields?

zen_draw_hidden_field('first_name', $order->billing['firstname']) .
zen_draw_hidden_field('last_name', $order->billing['lastname']) .

Is this code correct

zen_draw_hidden_field('buyer', $order->billing['firstname']['lastname']) 

Also how do I include space between first name and last name.

I have another problem not so important though:
I wrote a payment module for Eximbay
In the admin section
When I install the payment module I see 2 blank input boxes without any heading

Here is the HTML source:

<td class="infoBoxContent"><b>Enable Exim Module</b><br>Do you want to accept Exim gateway payments?<br><br><input name="configuration[MODULE_PAYMENT_EXIM_STATUS]" value="True" checked="checked" id="true-configuration[module_payment_exim_status]" type="radio"> 
<label for="true-configuration[module_payment_exim_status]" class="inputSelect">True</label><br>
<input name="configuration[MODULE_PAYMENT_EXIM_STATUS]" value="False" id="false-configuration[module_payment_exim_status]" type="radio"> <label for="false-configuration[module_payment_exim_status]" class="inputSelect">False</label><br>
<b>Payment Zone</b><br>If a zone is selected, only enable this payment method for that zone.<br><select rel="dropdown" name="configuration[MODULE_PAYMENT_EXIM_ZONE]"><option value="0">--none--</option><option value="1">Florida</option><option value="3" selected="selected">Singapore</option></select><br><br>
<b>Sort order of display.</b><br>Sort order of display. Lowest is displayed first.<br><input name="configuration[MODULE_PAYMENT_EXIM_SORT_ORDER]" value="1" type="text"><br><br>
<b>Merchant ID</b><br>EXIM Merchant ID<br><input name="configuration[MODULE_PAYMENT_EXIM_MERCHID]" type="text"><br><br>
<b></b><input name="configuration[MODULE_PAYMENT_EXIM_SUCCESSURL]" type="text">
<b></b><br><br><input name="configuration[MODULE_PAYMENT_EXIM_FAILURL]" type="text"><br><br><b>Set Order Status</b><br>Set the status of orders made with this payment module to this value<br><select rel="dropdown" name="configuration[MODULE_PAYMENT_EXIM_ORDER_STATUS_ID]"><option value="0">default</option><option value="1">Pending [1]</option><option value="2" selected="selected">Processing [2]</option><option value="3">Delivered [3]</option></select><br></td>

The code that I highlighted in red is not defined in my configuration TABLE but still I get those values.
How can i get rid of it. Although it does not create any problems, it would be nice if i could get rid of them

22 Nov 2007, 8:34 AM
#2
xaria avatar

xaria

New Zenner

Join Date:
May 2007
Posts:
92
Plugin Contributions:
0

Re: Buyer Info

Xaria:

I have another problem not so important though:
I wrote a payment module for Eximbay
In the admin section
When I install the payment module I see 2 blank input boxes without any heading

Here is the HTML source:

<td class="infoBoxContent"><b>Enable Exim Module</b><br>Do you want to accept Exim gateway payments?<br><br><input name="configuration[MODULE_PAYMENT_EXIM_STATUS]" value="True" checked="checked" id="true-configuration[module_payment_exim_status]" type="radio"> <label for="true-configuration[module_payment_exim_status]" class="inputSelect">True</label><br> <input name="configuration[MODULE_PAYMENT_EXIM_STATUS]" value="False" id="false-configuration[module_payment_exim_status]" type="radio"> <label for="false-configuration[module_payment_exim_status]" class="inputSelect">False</label><br> <b>Payment Zone</b><br>If a zone is selected, only enable this payment method for that zone.<br><select rel="dropdown" name="configuration[MODULE_PAYMENT_EXIM_ZONE]"><option value="0">--none--</option><option value="1">Florida</option><option value="3" selected="selected">Singapore</option></select><br><br> <b>Sort order of display.</b><br>Sort order of display. Lowest is displayed first.<br><input name="configuration[MODULE_PAYMENT_EXIM_SORT_ORDER]" value="1" type="text"><br><br> <b>Merchant ID</b><br>EXIM Merchant ID<br><input name="configuration[MODULE_PAYMENT_EXIM_MERCHID]" type="text"><br><br> <b></b><input name="configuration[MODULE_PAYMENT_EXIM_SUCCESSURL]" type="text"> <b></b><br><br><input name="configuration[MODULE_PAYMENT_EXIM_FAILURL]" type="text"><br><br><b>Set Order Status</b><br>Set the status of orders made with this payment module to this value<br><select rel="dropdown" name="configuration[MODULE_PAYMENT_EXIM_ORDER_STATUS_ID]"><option value="0">default</option><option value="1">Pending [1]</option><option value="2" selected="selected">Processing [2]</option><option value="3">Delivered [3]</option></select><br></td> ``` > > The code that I highlighted in red is not defined in my configuration TABLE but still I get those values. > How can i get rid of it. Although it does not create any problems, it would be nice if i could get rid of them

I figured this part, it was the remove function I was modifying a payment module and forgot to delete those fields from the function.