Click on "Add to cart" to send to checkout

I am trying to mod the cart so that when I click on “add to cart,” CS cart will take me to the checkout page. I am using version 2.0.4.



Thank you in advance for your help.

Hi, you can do this by opening up the “skins/[selected_skin]/customer/views/product/components/buy_now.tpl” file. and editing around lines 33 or so


```php

{if !$hide_form}



[B]{if !$stay_in_cart}[/B]
[B][/B]
[B]{/if}[/B]

{/if}
```

to...

```php
{if !$hide_form}


[B][/B]

{/if}
```

This will redirect to the cart page after you add a product to the cart on the product page.

I couldn't find an option in the admin panel to do this, but i didn't look very hard so there may be a 'better' way to do this. Also be sure to turn off ajax add to cart. in administration ->settings -> Dynamic HTML

This works well. Thank you for your input.

Thank you for your help! :slight_smile:

No problem guys

Ummm…I believe all you need to do is uncheck ‘AJAX(Javascript)-based the “Add to cart” button’ in Settings: Dynamic HTML

[quote name=‘Tool Outfitters’]Ummm…I believe all you need to do is uncheck ‘AJAX(Javascript)-based the “Add to cart” button’ in Settings: Dynamic HTML[/QUOTE]



This was true for older versions, but it doesn’t work in my 2 new fresh installations of version 2.0.



Would this be a bug?

When I tick that on and off, I don’t see any difference.

Yeah, I think it is a bug. I cannot disable any of them.