PDA

View Full Version : Add Product Version When Exporting Products


bananalive
14 May 2009, 11:19
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');