Shopping Cart Creator Pro. Tips and Tricks - Post ID 239310


Registered User
252 posts

Modifying Cart Message before going to PayPal

WARNING:
This is a post export/upload modification. Test before using on a live site. What works for me may not always work for you.

This little edit allows you to customize the cart page your customers will see after they click on Check Out With PayPal button. The first image is the basic look for this cart message. After the edit my page looks similar, but I changed the wording and updated the PayPal logo and modified the look of the buttons.

To do this open the file goppwps.inc.php (found inside ccdata>data folder). You will have the following code:

<div class="paypal_feedback">
<a href="http://www.paypal.com" target="_blank"><img src="ccdata/images/PPLogo.png" align="right" border="0"></a>
<h3>Proceed to secure credit card checkout with PayPal</h3>
<p>Thank you for shopping with us!</p>
<p>We will now transfer you to the secure payment gateway where you can enter your credit card data.</p>
<br/><br/>
<form style="display:inline;" action="<?php echo $myPage->getUrl('cancel'); ?>" method="POST">
<input type="submit" name="return" value="Return to the Shop" />
</form>&nbsp;&nbsp;&nbsp;
<form style="display:inline;" action="<?php echo $myPage->getConfigS('PayPalWPS', 'URL'); ?>" method="POST">
<?php echo $checkout->getCheckoutFields() ?>
<input type="submit" name="_xclick" value="Proceed to Checkout" />
</form>
</div>


I changed mine to this (bold text is what was changed, italicized text shows what was added):

<div class="paypal_feedback">
<!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="right"><tr><td align="center"></td></tr><tr><td align="center"><a href="https://www.paypal.com/webapps/mpp/paypal-popup" title="How PayPal Works" onclick="nojavascript...window.open('https://www.paypal.com/webapps/mpp/paypal-popup','WIPaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=1060, height=700'); return false;"><img src="https://www.paypalobjects.com/webstatic/mktg/logo/AM_SbyPP_mc_vs_dc_ae.jpg" border="0" alt="PayPal Acceptance Mark"></a></td></tr></table><!-- PayPal Logo -->
<p>By clicking on "Proceed to Checkout" we will transfer you to the PayPal secure payment gateway where you can enter your billing and shipping information.</p><br />
<p>Thank you for shopping with Decals and Tees!</p>

<br /><br/>
<form style="display:inline;" action="<?php echo $myPage->getUrl('cancel'); ?>" method="POST">
<input type="submit" name="return" style="background-color:#ed2f59; padding:5px; color:#000; font-weight:bold; cursor:pointer; border-radius: 10px;" value="Return to Cart" />
</form>&nbsp;&nbsp;&nbsp;
<form style="display:inline;" action="<?php echo $myPage->getConfigS('PayPalWPS', 'URL'); ?>" method="POST">
<?php echo $checkout->getCheckoutFields() ?>
<input type="submit" name="_xclick" style="background-color:#0c9200; padding:5px; width:30%; color:#fff; font-weight:bold; cursor:pointer; border-radius: 10px;" value="Proceed to PayPal" />
</form>
</div>


I keep this chunk of code as a Snippet in the HTML editor for quick and easy changing after export/upload.
Attachments:
Scott
I do what I love, and I love what I do!


Registered User
3 posts

Eric Rohloff wrote:
Redirect users from your shop pages to a URL of your choice.
This is handy for custom pages added to your shop like a blog then redirect the user to a blog you already have. Don't forget to put a link back to your shop on the page you redirect to.
This code will force the users browser to refresh and load the entered url. If you want a delay change the content="0; to content="3; or whatever you want for the number of seconds.:)
Change the URL to your liking.
Paste this into your page in SCCP.
[[[<meta HTTP-EQUIV="REFRESH" content="0; url=http://coffeecup.com/">]]]


Paste this into the your product, catagory, subcatagory or Page to use it as an automatic link:[[[<script>window.location.replace("url to new page");</script>]]]

I use this to link to other shops as if they were subcatagories.

www.expresscustom.ca

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.