We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Cartthrob and Credits (DevDemon)

How Do I?

restos's avatar
restos
54 posts
9 years ago
restos's avatar restos

Hi,

I’m using devdemon credits to allow customers to buy credits with cartthrob and EE 2.10

In Cartthrob settings I’ve two gateways: credits and stripe. My goal is force users to buy credits in order to purchase regular products in Cartthrob. Credits is the primary payment gateway in cartthrob.

To buy credits I’ve created an additional checkout template with stripe gateway fields, so credits can only be purchased with card. That’s ok for me.

To buy regular products the defaut checkout template only includes credits gateway fields, so customers can only completed checkout using credits.

But…

If one customer add regular products to cart and after that go to purchase credits to complete the checkout, shopping cart shows all products: Credits purchase + regular products in the checkout template with stripe gateway fields. So, customers can purchase with card regular products. If first add credits to cart and then regular products, the same happends with default gateway fields in checkout template.

Is there any way to fix? Maybe bypass add to cart for credits purchase? is that possible?

Thank you.

       
restos's avatar
restos
54 posts
9 years ago
restos's avatar restos

HI,

I’ve just resolved with this tag in add to cart template:

{exp:cartthrob:clear_cart}

Thanks.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.