Marius Bratu
Marius Bratu

Reputation: 11

How to disable Cash on Delivery for Downloadable products on Opencart 2.1.0.1

How to disable Cash on Delivery for Downloadable products on Opencart 2.1.0.1?

I want just Bank transfer and Credit card pay options for Downloadable products.

Upvotes: 1

Views: 885

Answers (1)

Vidhyut Pandya
Vidhyut Pandya

Reputation: 1619

Here is the simple solution. Just try this one. Change file catalog/model/payment/cod.php

Replace if ($status) { with if ($status && $this->cart->hasShipping()) { and it will work.

Upvotes: 1

Related Questions