Post by L146705 » Tue Jan 22, 2013 4:10 am

Hi,
I'm using the Opencart 2checkout module. The problem I'm having is the name is completed on my the guest checkout but when the browser goes through to the 2checkout site the Full Name field is blank. The address fields get passed across good. Does anyone have any ideas as to why it isn't going across or how to solve the problem?

New member

Posts

Joined
Sun Feb 26, 2012 2:50 am

Post by Craig@2Checkout » Wed Jan 23, 2013 12:28 am

As long as the first name and last name are being entered by the buyer it should be showing up on our checkout. I setup a test install of v1.5.4.1 and cannot reproduce the issue. Please contact 2Checkout tech support directly at techsupport@2checkout.com so that we can test your site and assist you with resolving this issue.


Posts

Joined
Thu Oct 04, 2012 4:20 am

Post by L146705 » Wed Jan 23, 2013 11:22 pm

Thanks for the response Craig. I'll email support but for your info I'm on version 1.5.1.3.

New member

Posts

Joined
Sun Feb 26, 2012 2:50 am

Post by L146705 » Thu Jan 24, 2013 2:33 am

Just for anyone that has the same problem as me. I fixed it by doing the following:

Adding the code below to the file catalog/controller/payment/twocheckout.php

Code: Select all

$this->data['ship_name'] = $order_info['shipping_firstname'] . ' ' . $order_info['shipping_lastname'];
Adding to the catalog/view/theme/yourthemnamehere/template/payment/twocheckout.tpl

Code: Select all

  <input type="hidden" name="ship_name" value="<?php echo $ship_name; ?>" />
2checkout also have this guide for varaibles that is quite interesting to look at:
https://www.2checkout.com/documentation ... _Guide.pdf

New member

Posts

Joined
Sun Feb 26, 2012 2:50 am

Post by FasterThanILook » Tue Jun 11, 2013 2:02 am

Thanks for the patch code L146705 - works like a charm.
It's a shame that 4 months later this fix hasn't made it into the main codestream...


Posts

Joined
Tue Jun 11, 2013 2:00 am
Who is online

Users browsing this forum: No registered users and 61 guests