Ecommerce new product defaults
You'd want to copy this to /elements/product/form.php and edit it there.
To change the defaults, the best way to do it I believe is to set things before the line:
so that you're not inferring with the form when it's used for editing an existing product.
So in your case, above that line you could add:
$prStatus = true; $prQuantityUnlimited = true;
to set the product to enabled and unlimited stock by default.
I recently used this, however it does not appear to work.
When we import, the checkbox for Unlimited Quantity is checked, but if you try to add an item more than once it says there is not enough stock.
If I go to the product attributes, I can see the Unlimited Quantity is checked, I uncheck, re-check and click save, now it is set to unlimited and I can add multiples of an item.
I did exactly as was mentioned here, except "You'd want to copy this to /elements/product/form.php and edit it there." As I wasnt entirely sure where to copy it too.
Can you advise?
all that this edit does is modify the defaults for the form to add new products - it doesn't change anything else to do with importing product data.
Since you've used the word 'import' instead of add, I'm assuming you're using this add-on to do your product import -http://www.concrete5.org/marketplace/addons/ecommerce-import/... ?
If that's the case, it sounds like you're missing a piece of import data, perhaps it's a question to ask via the support for the add-on.
Regarding the path /elements/product/form.php, this means you should find the highest elements folder you can find (they'll be an index.php file at the same level, that's the site 'root'), put a product folder in that, and copy the file from the package into there. The top level empty folders are all the override folders that you use when you want to make a change to something in the core or an add-on.