Log in

View Full Version : Add Product Version When Exporting Products


bananalive
05-13-2009, 10:00 PM
Adds the product version at end of product file name when exporting products.

For example product-yourproduct.xml would be turned into product-yourproduct-v1.2.xml where 1.2 is the product version.


Open admincp/plugin.php
Find
file_download($doc, "product-" . $vbulletin->GPC['productid'] . '.xml', 'text/xml');
Replace with
file_download($doc, "product-" . $vbulletin->GPC['productid'] . '-v' . $product_details['version'] . '.xml', 'text/xml');