type:
snippet
category:
Misc cart and checkout
name:
Removing PayPal from the Cart to force customers to FC checkout first
versions:
0.6.0, 0.7.0, 0.7.1, 0.7.2, 1.0
reference:
http://forum.foxycart.com/comments.php?DiscussionID=3497&page=1
tags:
Advance, Snippets, cart and checkout
date:
2011-05-27

Removing PayPal from the Cart to force customers to FC checkout first

Basically what you'll be doing is altering the cart template in the FoxyCart administration to hide the Paypal checkout link. You can do this by either using CSS and setting the paypal element to display:none; or using javascript to .hide(); that element. This will ensure people are funneled through the FoxyCart checkout before heading to PayPal.

Taking this approach actually makes the customer have to enter more information, and doesn't show PayPal immediately on the cart template which could hurt conversions if someone is looking specifically for PayPal.

Step 1: Add a style to your cart template

On your cart template, paste the following in the <head> section, after your <title> tag and before any javascript includes:

<style type="text/css" >
  #fc_cart_container a.fc_cart_checkout_paypal, .fc_cart_checkout_or {
    display:none !important;
  }
</style>

Site Tools