Ah... I see... I didn't know that stuff was available to all parts of the profile - cool.
I think I can get that to work, the only downside is another potentially confusing editor on the main profile form (my free members don't even have Foxycart sales).
I think I've stumbled across another possible solution. I've discovered (by trial and error) that the create button is on the item_index.tpl page as:
{jrCore_item_index_buttons module="xxSales" profile_id=$_profile_id}
So I'm thinking if I can simply come up with an IF statement to show the button ONLY when there is no item already created in the datastore, then only one can be created. Unless the current one is deleted then the button should show again - allowing a new one to be created.
So I've done HOURS AND HOURS of experiments with statements like:
{if empty($_items)}
{jrCore_item_index_buttons module="xxSales" profile_id=$_profile_id}
{/if}
Some of my experimental statements break the page, some remove the create button on profiles that have an item created (but also on those which do not). Some don't remove it on either.
After literally dozens of attempts, I have been unable to find one that will only show the create button if the datastore is empty. I don't know if I should be trying ID, post, item or what - nothing seems to work.
What would you suggest? Can such a statement be crafted or am I "barking up the wrong tree"?
updated by @ken-rich: 03/30/16 09:23:12AM