Problems altering pages

Have A Bug With Your Webdate Script. Ask For Help Here.

Re: Problems altering pages

Postby paul on Sat Mar 22, 2008 6:07 am

all I know about what you are trying to do is modify the html for the paypal option.. please give me more details on exactly what you are trying to do with this

Paul
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA

Re: Problems altering pages

Postby axus on Sat Mar 22, 2008 7:25 am

Hi Paul
I need to integrate the affiliate code into my webpage to enable the tracking of paying members into the Post Affiliate Pro (PAP) affilate programme.

I asked PAP and got this reply :-

Hello,
your PayPal button is on this page:
http://my-amour.com/index.php?page=bill ... ng_process
you need to find PayPal button in source code and add our tracking code inside.
Best regards,
Juraj Rosa
Quality Unit

The tracking code is :-

<input type="hidden" name="notify_url" value="http://www.my-amour-affiliate.com/affiliate/scripts/paypal.php">
<input type="hidden" name="custom" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="http://www.my-amour-affiliate.com/affiliate/scripts/sale.js" type="text/javascript"></script>
<script type="text/javascript"><!--

paypalSale();
--></script>

I hope that makes sense.

Regards

Keith
axus
 
Posts: 11
Joined: Tue Feb 05, 2008 2:47 pm

Re: Problems altering pages

Postby paul on Sat Mar 22, 2008 8:19 pm

The actually area where the paypal button is created is in

templates/billing_confirm.html

on line 9 is the variable {CHECKOUT_CONFIG}
this creates the information that is sent to paypal... you could add your html on the next line after this....

I just hope your function paypalSale();

within that javascript is available to this page...

try adding it after the {CHECKOUT_CONFIG} in that file so it would look like this

Code: Select all
{CHECKOUT_CONFIG}
<input type="hidden" name="notify_url" value="http://www.my-amour-affiliate.com/affiliate/scripts/paypal.php">
<input type="hidden" name="custom" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="http://www.my-amour-affiliate.com/affiliate/scripts/sale.js" type="text/javascript"></script>
<script type="text/javascript"><!--

paypalSale();
--></script>


give that a try and let me know how it goes...

Paul
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA

Re: Problems altering pages

Postby paul on Sat Mar 22, 2008 8:20 pm

keep in mind if you are using more payment gateways this code will be added to all of them...

you can code it directly into the paypal function through php if you are using more than one gateway

Paul
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA

Re: Problems altering pages

Postby axus on Sun Mar 23, 2008 7:51 am

Hi Paul

I followed your instructions, pasted in the code to line 9. Closed it down then went back into to it to check that the code had been saved and all that comes up is the following on line 1, nothing else.

Is that correct please

Regards

Keith

Payment Confirmation {CHECKOUT_CONFIG} Billing form Is that information correct? You are ordering: {PRODUCT_NAME} for {CURRENCY_SYMBOL_DISPLAY} {AMOUNT} Payment type: On-line Credit Card payment
axus
 
Posts: 11
Joined: Tue Feb 05, 2008 2:47 pm

Re: Problems altering pages

Postby axus on Sun Mar 23, 2008 8:00 am

Hi Paul
Thought I would try a Paypal payment to see if it went through OK.
Clicked on the continue button which took me to page :- http://my-amour.com/index.php?page=bill ... ng_process. There is no longer a link on that page to continue the process

Regards

Keith
axus
 
Posts: 11
Joined: Tue Feb 05, 2008 2:47 pm

Re: Problems altering pages

Postby paul on Sun Mar 23, 2008 8:44 am

no you should see the same file as before but with the added html

something happened on your save and the file is corupt

here is what the entire templates/billing_confirm.html should look like

keep in mind only do this if paypal is your only payment processor

Code: Select all
<table width="100%" border="0" cellspacing="4" cellpadding="4" bgcolor="#FFFFFF">
   <tr>
      <td class="headline">Payment Confirmation</td>
   </tr>
   <tr>
      <td>
         <table width="100%" border="0" cellspacing="4" cellpadding="4">
            <form action="{FORM_ACTION}" method=post>
               {CHECKOUT_CONFIG}

<input type="hidden" name="notify_url" value="http://www.my-amour-affiliate.com/affiliate/scripts/paypal.php">
<input type="hidden" name="custom" value="" id="pap_dx8vc2s5">
<script id="pap_x2s6df8d" src="http://www.my-amour-affiliate.com/affiliate/scripts/sale.js" type="text/javascript"></script>
<script type="text/javascript"><!--

paypalSale();
--></script>

               <tr>
                  <td>
                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                           <td height="25" class="trth"><b>&nbsp;&nbsp;Billing form</b> </td>
                        </tr>
                        <tr>
                           <td height="25" class="trtc">&nbsp;</td>
                        </tr>
                        <tr>
                           <td height="25" class="trtc">
                              <table width="90%" border="0" cellspacing="1" cellpadding="2" align="center">
                                 <tr>
                                    <td><font size="4">Is that information correct?</font></td>
                                 </tr>
                                 <tr>
                                    <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                    <td>
                                       <b>You are ordering:</b><br>
                                       {PRODUCT_NAME} for {CURRENCY_SYMBOL_DISPLAY} {AMOUNT}<br>
                                       <br>
                                       <b>Payment type:</b><br>On-line Credit Card payment
                                    </td>
                                 </tr>
                              </table>
                           </td>
                        </tr>
                        <tr>
                           <td height="25" class="trtc">&nbsp;</td>
                        </tr>
                        <tr>
                           <td height="25" class="trth" align=center>&nbsp;
                              <input type="submit" value="Yes">
                              <input type="button" value="No" onClick="window.history.back()">
                           </td>
                        </tr>
                     </table>
                  </td>
               </tr>
            </form>
         </table>
      </td>
   </tr>
</table>
<br>
<br>
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA

Previous

Return to Have A Bug? Ask For Help Here

Who is online

Users browsing this forum: No registered users and 5 guests

cron