Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
Upgrading from CT 1 to 2 - will custom payment gateway still work
Posted: 07 August 2012 08:51 AM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  53
Joined  2010-06-04

Hello

I’m finally looking at moving a Cartthrob-powered site I built on EE1 to EE2. It uses a custom payment gateway which you guys coded for us a couple of years back. (It’s for SagePay but lets us use a different title than the entry title for the cart item.)

Would this payment gateway still work? Or would it need to be updated to work on EE2/CT2?

Many thanks,

Frank

File Attachments
cartthrob.title_sage_server.php.zip  (File Size: 8KB - Downloads: 61)
Profile
 
 
Posted: 07 August 2012 09:13 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10218
Joined  2008-09-29

Would this payment gateway still work? Or would it need to be updated to work on EE2/CT2?

It would need to be updated. Basically just use the provided sage_s gateway.

Find this;

$basket .= str_replace(":","",$item['title']) .":"

 
change to this:

if (!empty($item['item_options'][$this->plugin_settings('item_title')]))
                
{
                    $title 
=  $item['item_options'][$this->plugin_settings('item_title');
                
}
                
else
                
{
                     $title 
=$item['title']
                
}
                 $basket 
.= str_replace(":","",$title) .":"

 


At the top with the other settings, add this:

array(
            
'name'    => 'Product Title Item Option Name',
            
'short_name'    => 'item_title',
            
'type'        => 'text'
        
), 
 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 08 August 2012 02:32 AM   [ Ignore ]   [ # 2 ]
Is a Really Great Dancer
RankRank
Total Posts:  53
Joined  2010-06-04

Thanks Chris - that’s a great help!

Profile
 
 
   
 
 
‹‹ ---      worldpay payment response problem ››