Skip to Content

New J2Commerce 6.6.5 is out. Here is everything in the release.

See What’s New
Account
Enter the email address on your account.
Forgot your username?
Enter your password.
Forgot your password?

Or continue with

Closed Public Category: Technical Support / Bugs Ticket #357

Cannot add "Options' to a download product

This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Conversation

Chris Elliott

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 Elliott

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!

Chris Elliott

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

Olivier Buisard Staff

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 from
plugins\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.

The ticket information has been edited by Chris Elliott (Chris@tapiochre.co.uk).
The ticket information has been edited by Chris Elliott (Chris@tapiochre.co.uk).
Chris Elliott

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

Olivier Buisard Staff

Thanks Chris for the link, that will definitely help other users. 

Olivier.