Question Variable replacement does not work during generation

Status
Not open for further replies.

NikitOS

Customer
As a test, I created a new product with the «generate» download type, created one file:
PHP:
<?php

$licenseKey = "%LICENSEKEY%";
$version = "%VERSION%";
$versionNumber = "%VERSIONNUMBER%";

I expected that when downloading the product these values will be replaced, but I get the source file.
What am I doing wrong?
 
You need a file called build.json which needs to contain at least the following:
JSON:
{
    "replaceTokens": true
}
This is to save performance since scanning files for tokens to replace can be resource intensive.
 
Hello @NikitOS,

We hope your ticket regarding DragonByte eCommerce has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Hello @NikitOS,

As we have not heard back from you, your ticket regarding DragonByte eCommerce has now been closed.

If your ticket has not been resolved, please feel free to start a new support ticket and link back to this ticket.

If you have time, please leave a review on XenForo.com's Resource Manager.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte eCommerce

XenForo 2.0.6+ XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
2,430
Customer rating
4.83 star(s) 6 ratings
Back
Top