Not sure why this didn't come up before...
- Updated the member_view TMs to avoid tabs and content getting in the wrong order
No. I don't mean the license. The product itself. Just like when we can reassign a resource to another one, we need now to reassign a product to another one.It's just a case of deleting or expiring the existing license and creating a new one for the new user and adjusting the dates.
class TRN_XenProduct_Model_Sales {
public static function salesQuery(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract &$response)
{
$salesQuery = XenForo_Application::get('db')->fetchAll("
SELECT license_id, license_price, purchase_date
FROM `xenproduct_license`
WHERE license_state = 'active' AND license_price != 0
ORDER BY `purchase_date` ASC");
$response->params['licenses'] = $salesQuery;
}
}
<xen:foreach loop="$licenses" value="$license" i="$i" count="$count">
<xen:if is="{$license.purchase_date} >= 1425196800">
{$i}: {$license.license_id} - {xen:datetime $license.purchase_date, html} - {$license.license_price}
<br />
</xen:if>
</xen:foreach>
Total count = {$count}
<xen:require css="xenproduct_license_index.css" />
<xen:if is="{$licenses}">
<ol class="licenseList">
<xen:foreach loop="$licenses" value="$license">
<xen:include template="xenproduct_license_list_item" />
</xen:foreach>
</ol>
<xen:else />
<div class="section">{xen:phrase xenproduct_no_licenses_could_be_found}</div>
</xen:if>
I'm planning on bundling all of this into a "Product Manager Essentials" add-on which will do reporting
If you're open for other suggestions, Categories please@LPH I've actually started writing some reporting bits which directly query the paypal transaction log to build a list of line items, with total gross revenue, fees, income post-fees.
I'm planning on bundling all of this into a "Product Manager Essentials" add-on which will do reporting (including per country revenue reporting) and also some stuff like allowing products to be only viewable to a list of user groups.
We use essential cookies to make this site work, and optional cookies to enhance your experience.