Using a custom cart

If you are using a custom shopping cart/order form we can't guarantee that the Stripe module will work correctly without some modifications. However, we recommend trying the following to see if your custom cart will work with the module.

-Download the stripe_custom_carts.php file and place it in includes/hooks

-Edit the stripe_custom_carts.php file and change the two occurances of "orderformname" to the name of your custom cart.

-Next, edit the viewcart.tpl file for your order form.

Find the credit card form div, it generally has the id of ccinputform. Delete the entire div and replace it with:
{include file="orderforms/ccforms/$cc_form_name"}

Change the checkout form post to the following:

<form method="post" action="{$smarty.server.PHP_SELF}?a=checkout&submit=true" id="mainfrm">

Remove the following hidden submit tag:
<input type="hidden" name="submit" value="true" />

If everything worked properly you should see the credit card form now on your shopping cart checkout screen. If this didn't work then there is something in your theme/custom cart that requires further modification. If you need help identifiy what the issue could be, we offer a custom template service for $50 USD.

  • Email, SSL
  • 72 Users Found This Useful
Was this answer helpful?