Additional Server Data

Hi,
We need to have a Company Name field in the activation process.
For this, I edited the form:
image

We are able to activate online a subscription with this form.
The problem is that the server does not return this company name in VBA, the function:
XLSPadlock.PLEvalVar(“ValidationAddServerData”)
returns exactly the same thing as the ValidationToken function:
XLSPadlock.PLEvalVar(“ValidationToken”)
How can we read the company name from woocommerce order?

thank you
 
You must modify the MainController.php in the dovalidation() function:
echo “1\r\n”;
echo “$resp_chal\r\n”;
echo “$sec_token\r\n”;
echo “$additionalvaldata\r\n”;
Add echo “$additionalvaldata\r\n”;

Before, you must fill $additionalvaldata with the company name, retrieved from the order or if you want to get it from the form, you must also catch the provided value in getactivation($f3):
$apptitle = $f3->get(‘REQUEST.apptitle’);
$companyname = $f3->get(‘REQUEST.company’);
Then, you must store the $companyname value to the WooCommerce order, before $order_data->save();
you add:
$order_data->update_meta_data(“xlspadlock_company_name”, $companyname);
And you retrieve it in the dovalidation() function.

Hope this helps.
 
Thank you, very helpful indeed.

However, in the compiled exe I cannot get the additional data value, the image below is from dovalidation:

I can confirm that $additionalvaldata does return what we need, but when calling XLSPadlock.PLEvalVar(“ValidationAddServerData”) from exe, it still returns the same thing returned by XLSPadlock.PLEvalVar(“ValidationToken”), not the company name.

Also, adding a custom field is not needed for company name:
$order_data->update_meta_data(“xlspadlock_company_name”, $companyname);
In both getactivation and dovalidation, we get company name from $subscription_data->get_billing_company()

Waiting for the payment link to fix the ValidationAddServerData problem on Monday.

As feedback, my opinion is that you should provide in xlsPadlock checkout process an option to add to cart the cost for Server Setup for Online Activation, if we had that option we would have purchased it without a doubt, we wasted much more resources trying to fix things ourselves and sending desperate messages on forum and ticket system.

Thank you again and hope that my feedback will help you improve your product.
 

Attachments

  • image.png
    image.png
    10.7 KB · Views: 1
catalinbombea said:
Server Setup for Online Activation, if we had that option we would have purchased it without a doubt, we wasted much more resources trying to fix things ourselves and sending desperate messages on forum and ticket system.
Yes, that may be an option. Reported to our CEO. Thanks again for your feedback.
 
Back
Top