Page 1 of 1
Default Product Options
Posted: 18 Aug 2019, 04:54
by shibumi
Just wondering if there is any way when adding new "downloadable" products to have certain parameters set as default when adding? I had issues with some products in cart that were set as Physical Product instead of Digital (Downloadable) Product - which leaves order status as pending - I have a lot of photos I am uploading and it would be nice to not have to check every single option each time I add a photo...
Things would like to have default options set for new product additions:
Stock Options -> Stock Calculation and Minimum Quantity Calculation
Download Options -> Product Type -- Default is Physical Product, only sell downloadable items, would like to be able to set Digital as default Product Type
Reward Points -> Points Needed and Points Received
Possibility to have SKU created from Title just like Alias is created when saving Product?
Re: Default Product Options
Posted: 18 Aug 2019, 11:54
by Jan
Hi, for now there are no options and I think such specificic options needs to be more customized for specific needs as adding them to the core (see similar posts in this forum, there is limitation of possible options in each system so then the amount of options will not prevent from fast loading of the component data
)
Jan
Re: Default Product Options
Posted: 18 Aug 2019, 16:07
by shibumi
Okay, so what would I have to modify so at the very least DIgital (Downloadable) Product is my default product type?
Re: Default Product Options
Posted: 19 Aug 2019, 05:21
by shibumi
Or maybe add a column to the Products list page in admin that shows the Product Type for each item?
Re: Default Product Options
Posted: 22 Aug 2019, 17:22
by Jan
Hi,
see file:
administrator\components\com_phocacart\models\forms\phocacartitem.xml
parameter: type (line cca 95):
Code: Select all
<field name="type" default="0" type="list" label="COM_PHOCACART_FIELD_PRODUCT_TYPE_LABEL" description="COM_PHOCACART_FIELD_PRODUCT_TYPE_DESC" >
<option value="0">COM_PHOCACART_PHYSICAL_PRODUCT</option>
<option value="1">COM_PHOCACART_DIGITAL_DOWNLOADABLE_PRODUCT</option>
<option value="2">COM_PHOCACART_MIXED_PRODUCT_DIGITAL_PHYSICAL</option>
<option value="3">COM_PHOCACART_PRICE_ON_DEMAND_PRODUCT</option>
</field>
and change the default="0" to default="1"
So this means that the select box will be set for new proudcts to "digital product" as default
(when this file will be edited, you need to backup it and copy it back after each upgrade)
Jan
Re: Default Product Options
Posted: 22 Aug 2019, 20:26
by shibumi
Perfect! Thanks Jan!
Re: Default Product Options
Posted: 23 Aug 2019, 05:34
by shibumi
That worked like a charm! Maybe in a future version, there would be the ability to set default product type in the options? It would also be nice to be able to display more columns in the default product list in administrator, instead of just:
Image - SKU - Title - Published - Category - Price ... to maybe include between Title and Published Product Type, Has Attributes (maybe number of attributes), and maybe drop the original price?
My thinking here is, when there is a problem, to be able to see at a glance if a product has a wrong product type set, or if there are attributes when there should not be or no attributes set when there should be...
Re: Default Product Options
Posted: 24 Aug 2019, 07:32
by shibumi
Sorry, should have said include in between Title and Published columns, add Product Type and Has (number of) Attributes
Re: Default Product Options
Posted: 24 Aug 2019, 11:20
by Jan
Hi, the problem is always resources and clarity. When adding parameters to Options, there can be more over thousands of parameters you can add but they needs to be loaded on the site so the more parameters the slower loading, the more items displayed in row the less clarity, etc
Jan