If display_cart == true redirect to the shopping cart page for both "buy...

..._now" and "add to cart" button

if not, the page will be redirected to the product page for both buttons.

I think that also "buy now" button should redirect to the product cart if display_cart == 'true'  as this seems to me more intuitive for the customer.