Advertisement:

Author Topic: payments plugin Return to website Button  (Read 1149 times)

derold

  • Jr. Member
  • **
  • Posts: 59
payments plugin Return to website Button
« on: January 01, 2015, 11:26:35 am »
Osclass 3.5.3
 
     If you would like to make it easier for your customers to return to your site you can add this line to your payments plugin.
    www. yoursite.com/oc-content/plugins/payment/payments/paypal/return.php
     At about line 143-add this         
Code: [Select]
<input type="hidden" name="cbt" value="Return to Store" />
   You can change the Value text  "Return to store"  to what ever you want.
    It will ad a button With text
     

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: payments plugin Return to website Button
« Reply #1 on: January 06, 2015, 08:16:16 pm »
kind of a no brainer--Ill submit this to git hub
thanks :-)

saitarion

  • Newbie
  • *
  • Posts: 1
Re: payments plugin Return to website Button
« Reply #2 on: February 05, 2015, 02:46:42 pm »
Thanks, this is great!
It however doesn't go in the file detailed, it goes into domain/plugins/payment/payments/paypal/Paypal.php

Look up these lines (in version 2.0 it's lines 142 and 143)
Code: [Select]
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="no_note" value="1" />

and insert the line inbetween

Code: [Select]
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="cbt" value="Return to Store" />
<input type="hidden" name="no_note" value="1" />