Page 1 of 1

[SOLVED] Add product/order to customer account

Posted: Fri Jan 30, 2015 9:23 am
by Greg Houston
Is there a way that I can add a product to a customer's account as if the customer had purchased that product? In other words, I want to gift a product to a customer without requiring that customer to do anything and thus have that product's downloads available to that customer in the customer's download section.

Re: Add product/order to customer account

Posted: Fri Jan 30, 2015 9:27 am
by Greg Houston
I may have found a way to do this, but am getting an error when I click on Orders > Add Order:

Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' in [...]/admin/controller/sale/order.php on line 44

Re: Add product/order to customer account

Posted: Fri Jan 30, 2015 9:33 am
by Greg Houston
If I fill in the customer details and click on continue I get a pop-up saying:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

OK

<b>Notice</b>: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' in <b>[...]/html/admin/controller/sale/order.php</b> on line <b>2342</b>

Re: Add product/order to customer account

Posted: Thu Feb 05, 2015 11:04 am
by Greg Houston
Anyone know how to fix this?

Re: Add product/order to customer account

Posted: Thu Feb 05, 2015 11:37 am
by yodapt
I've seen that error in the forum a couple days ago, try searching for "HTTPS_CATALOG"

Re: Add product/order to customer account

Posted: Thu Feb 05, 2015 12:19 pm
by Greg Houston
I needed to define HTTPS_CATALOG in my admin config.php. Working now.