Hi again
I note that if I create a DOWNLOADABLE product, I cannot apply any Options to it. I need this to allow me to apply the DONATION offer.
Can you help?
Chris
Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Latest post by Olivier on Thursday, 12 June 2025 14:24 UTC
Hi again
I note that if I create a DOWNLOADABLE product, I cannot apply any Options to it. I need this to allow me to apply the DONATION offer.
Can you help?
Chris
Chris,
J2Commerce doesn’t natively support options for downloadable products, since they don’t have physical variations like size or color.
However, there’s a workaround to enable options by modifying the template files.
You can fin documentation here https://docs.j2commerce.com/j2commerce/common-overrides/to-add-options-to-downloadable-products but we have not gone through this page yet to ensure all steps are still correct.
Olivier.
Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.
Great. I'll give this a whirl. If all is well but the docs are not quite accurate I'll try and send you a revised version to save you time!
Ok. Those documents are significantly out of date:
Copy /administrator/components/comj2store/views/product/tmpl/formdownloadable.php
to
*/administrator/templates/YOUR-DEFAULT-TEMPLATE/html/comj2store/product/formdownloadable.php
1. comj2store needs to be corrected to com_j2store
2. I am assuming YOUR-DEFAULT-TEMPLATE refers to (for example) ATUM?
If I am correct and I use com_j2store and atum as teh YDT above, and save, then the Options tab fails to show.
Later, the doc shows:
Copy /components/com_j2store/templates/YOUR-SUB-LAYOUT/view_downloadable.php
to /templates/YOUR-TEMPLATE/html/com_j2store/templates/YOUR-SUB-LAYOUT/view_downloadable.php
Sadly the path /components/com_j2store/templates/ does not exist in a default build?
I stopped at this point!
I'll be happy to test further if the paths info above can be resolved.
Best
Chris
Hi Chris,
when you create overrides under your template and it is not done automatically through the Joomla 'overrides' tab, you HAVE TO create the paths yourself. They won't exist by default.
Like I said, we have not gone through this part of the documenation yet so it can still be a 'hit and miss' in some places.
The default template is, when you are in the administration part, the template used for administration. When adding overrides to the site, you hit the site template.
The sublayout is a bit more complicated. It is the layout of the app you are using for layouts in J2Commerce.
So, if you are using Bootstrap 5, the sub-layout is bootstrap5.
So you need to get, in that example, the file fromplugins\j2store\app_bootstrap5\app_bootstrap5\tmpl\bootstrap5\view_downloadable.php
Add add it to
templates\[your site template]\html\com_j2store\templates\bootstrap5\view_downloadable.php
I hope this helps a bit more...
Olivier.
Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.
Thanks indeed.
The docs are of course wrong so I spent an hour fixing them, adding in teh right paths but also adding in some missing code sections that are needed for the back end. I have made the chnages to my own site and all is well.
Here is a link to the updated documention for this topic. Feel free to grab and butcher as needed for the real help pages.
https://pilotsite.co.uk/j2commerceoptions.html
Cheers
Chris
Thanks Chris for the link, that will definitely help other users.
Olivier.
Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.
Subscribe for free and be the first to know about the latest features, updates, and new additions.