Post by rgbworld » Sun Feb 12, 2017 6:54 am

Hello,
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;
		}
I can easily remove the

Code: Select all

hasDownload()
condition, but before I do, I am trying to understand the purpose of preventing downloads with PayPal Express.

Thank you.

RGB World - FREE and Commercial Extensions
For custom work or support, please use our Contact Form or visit our Support Forum.

Favorite Quote: There are 10 types of people in the world. Those who understand binary and those who don't. 8)


User avatar
New member

Posts

Joined
Wed Aug 08, 2012 6:11 am

Post by rgbworld » Sun Feb 19, 2017 1:27 am

Anybody?

RGB World - FREE and Commercial Extensions
For custom work or support, please use our Contact Form or visit our Support Forum.

Favorite Quote: There are 10 types of people in the world. Those who understand binary and those who don't. 8)


User avatar
New member

Posts

Joined
Wed Aug 08, 2012 6:11 am
Who is online

Users browsing this forum: No registered users and 2 guests