Product:
Search Type:

After upgrade to HSPcomplete 3.3.2, license handling is incorrect in my customized store.

Article ID: 2281 
Last Review: Oct,23 2007
APPLIES TO:
  • HSPcomplete 3.3.x

SYMPTOMS

Customers can't order licenses in store any more. Even if license is marked as included in hosting plan, it's not being added to order.

CAUSE

License management is completely overwritten in HSPcomplete 3.3.2, so store and XML API have serious modifications in this area.


RESOLUTION

Copy the following modules from HSPcomplete default store (/var/opt/hspc-frontend in HSPc VE) to your customized store:

addons.php
templates/addons.inc
shopping_cart.php
templates/shopping_cart.inc
templates/box_shopping_cart.inc
includes/hspc_functions.php
includes/common.js

Add your customization in these modules once again, if needed. Add localization for STR_LICENSES string

in includes/languages/EN.php:

define('STR_LICENSES', 'Licenses');

in includes/languages/DE.php:

define('STR_LICENSES', 'Lizenzen');

Additional information

Other major change in HSPcomplete 3.3.2 store is ability to sell extra resources. It's not necessary to port this feature. If you want to add this, copy modules

configure.php
templates/configure.inc

If you don't need this feature, remove QoS section in templates/shopping_cart.inc and templates/box_shopping_cart.inc
Keywords: hspc store license hspcomplete

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields