I am experimenting with PayPal Express payment method and I have discovered that if a product contains any downloadable item, the PayPal Express button will not display.
Could someone try to explain the logic behind preventing checkout if a product contained in the cart has a download associated with it? To me it doesn't really make logical sense, so I must be missing something.
The code that prevents PayPal Express button from displaying resides in file:
catalog/controller/extension/module/pp_button.php
Specifically the code
Code: Select all
if ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout')) || (!$this->customer->isLogged() && ($this->cart->hasRecurringProducts() || $this->cart->hasDownload()))) {
$status = false;
}
Code: Select all
hasDownload()
Thank you.