Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-24-2013 13:43:35

Uncletim
Member
From: Boulder, CO
Registered: 08-03-2003
Posts: 375
Website

Confirmation page defaults to https://mysite.com/store/index.php

Hi:

FIRST QUESTION
I am trying to set up automatic assignment of pins (from an ebook system) and get that pin information into the confirmation page that CCP8 displays. I have an html script to insert in the page which will insert the necessary code into the page. But I am not sure where to place it. The digital delivery page for the product does not seem to have any way of handling this.

The ebook system also needs a static confirmation page in order to only display the information securely.

My system goes from https://mysite.com/store/CheckoutIntro which is the checkout screen when you submit your CCN info. But then when the sale is completed and the thank you message is posted the page seems to go back to https://mysite.com/store/index.php.

SECOND QUESTION
Is there a way to get the confirmation page to yield a url like https://mysite.com/store/orderconfirm.php or something that would always be consistent?

THIRD QUESTION
If I am missing the boat on some feature already present for this, that I may have missed somehow, please by all means enlighten me.

Thanks.

Offline

 

#2 10-25-2013 09:01:03

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Confirmation page defaults to https://mysite.com/store/index.php

I would suggest adding your generated code using {private}/apps/ecom/ECOM_Order/ext/0400_custom.php.  You could add the code to the order item's cartdata array. Like so:

Code:

foreach ($order['items'] as $num => $item) {

     if ($item['itemid'] != 'LICENSEPRODUCT') {continue;} // Only do products for which keys are needed.

     $order['items'][$num]['cartdata']['custom_licensecode'] = $this->random_key(24); // Or assign as needed.

} // End of foreach statement.

In your {private}/apps/ecom/ECOM/includes/ordersummary*.php files, you would access the code (while in an items foreach loop) to print it like:

Code:

$item['cartdata']['custom_licensecode']

To address your URL questions, the confirmation URL is POSTed to, so there's no way really to change that without a hardcoded location redirect or something of that nature.


Nick Hendler

Offline

 

Board footer