Article ID: 2288, created on Oct 25, 2007, last review on Apr 17, 2012

  • Applies to:
  • Odin Business Automation Standard 3.3

Symptoms

HSPcomplete Online Store is moved from default location to the separate server.

After upgrade to HSPcomplete 3.3.2-01 there is error on shopping cart page when using domain 'Registered Elsewhere'. Order can not be placed.

In the Online Store error log we can see message 'FaultString => Creation of subdomain denied' (by default store error log is /var/log/httpd/hspc_frontend_error_log).

Cause

HSPcomplete 3.3.2-01 XML API was changed in such way that it is not compatible with old Online Store.

1.  The function 'get_warning_paymethod' is replaced with 'get_warning'
2.  New value for 'dm_action' is introduced - 'domain_pointer', this action is used for domain 'registered elsewhere'. Action 'dns_hosting' is used for subdomain. Third type, 'use_existing', corresponds to 'Use one of my domains' field in the Online Store domain form.

Resolution

Fix the Online Store module includes/hspc_functions.php this way:

1. Replace 'get_warning_paymethod' call with the following:

$payment_options[$key]['warning_layout'] = call('get_warning',
                        array('order_id' => $_SESSION['order']['id'],
                                'warning_type' => 'paymethod'),
                         'HSPC/API/Fraud');

                                                                                                                                                          

2.  In the function 'place_order', instead of this code:
  'dm_action'  => ($value['dm_action'] == 'domain_pointer' && $value['dns_hosting']) ?       
                              'dns_hosting' : $value['dm_action'],

put this:
  'dm_action'  => $value['dm_action'],

b91f0e51a581aafeed4e0834068081e0 400e18f6ede9f8be5575a475d2d6b0a6 95c731ef6bb58e30865e046f2135d4c1 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF