Jump to content

Plugin "Bank Transfer" leaves products in cart


Recommended Posts

Hi,

one of my gateways is "Bank Transfer" (latest version 1.2.0)

https://www.cubecart.com/extensions/payment-gateways/bank-transfer

If a purchase is made using Bank Transfer, the products are still in the cart afterwards.

If purchased with either PayPal or "Print Order Form", the cart is empty afterwards as it should be.

How can i change this, so it works with Bank Transfer as well?

Thanks!

 

Link to comment
Share on other sites

Please verify the path to the Bank_Transfer module:

/modules/gateway/Bank_Transfer/

The file 'gateway.class.php' has a public function call().

Try adding to that function:

public function call() {
  $GLOBALS['cart']->clear();
}

(I haven't tested this as yet.)

Link to comment
Share on other sites

12 hours ago, bsmither said:

Please verify the path to the Bank_Transfer module:

/modules/gateway/Bank_Transfer/

The file 'gateway.class.php' has a public function call().

Try adding to that function:

public function call() {
  $GLOBALS['cart']->clear();
}

(I haven't tested this as yet.)

nope, sorry, products are still left in cart after changing this

Link to comment
Share on other sites

Posted (edited)

Update:

since I know now that

$GLOBALS['cart']->clear();

is the command to clear the cart, I tried moving it elsewhere in gateway.class.php.
And just like that, it works!
Thanks again mate.

 

cart.png

Edited by MostlyConfused
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...