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 03-24-2020 12:22:18

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

V6-V8: Checkout Disabled Message Mod

We have received several requests by clients to provide a modification for versions 6 through 8 which disables checkout but does not affect the catalog or search engine optimization. 

We have released a mod for K9 which does this by using a setting, allowing you to control a Checkout Disabled Message using the software management interface to update a setting.  As versions 8 and lower are no longer officially supported, this modification is less elegant. 

Implement this modification to disable checkout by hard-coding a message into the checkout function.  Please note the modification is different depending on your software version:

### Version 6

To implement on version 6, open the file {private}/apps/ccp0/CCP_Checkout/CCP_Checkout.php and edit the docheckout() function.  At the top of the function, add this, and remove it when no longer necessary:

Code:

print '<div style="border: 1px solid #FF6600; font-weight: bold; padding: 1em; color: #FF6600;">';
print 'Checkout is disabled.  Add a custom message here.';
print '</div>';
return 1;

### Versions 7 and 8

To implement on versions 7 and 8, open the file {private}/apps/ecom/ECOM_Checkout/ECOM_Checkout.php and edit the docheckoutfn() function.  At the top of the function, add this, and remove it when no longer necessary:

Code:

print '<div style="border: 1px solid #FF6600; font-weight: bold; padding: 1em; color: #FF6600;">';
print 'Checkout is disabled.  Add a custom message here.';
print '</div>';
return 1;

### Version 9

See: https://forum.kryptronic.com/viewtopic.php?id=34187


Nick Hendler

Offline

 

Board footer