#197 Donation Revisted

Posted in ‘Technical Support / Bugs’
This is a public ticket

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

Latest post by Adam Melcher on Wednesday, 26 March 2025 11:27 UTC

Abraham Tol

i am not happy with the formating of a Donation and Giftcard, but perhaps it my lack of understanding.

1. Price for a donation when set to 0 is still showing - why is there a base price and it should not be there. The person just wants to send it, as intended, via amount.

2. Qty = 1 on a donation  do not display - very confusing

3.Image of product cannot be displayed?

4. cannot surpress SKU? if i enter nodthing it still displays SKU and on product level i cannot seem to not display.

 

Also can price be set on a product set to FREE? 

Abraham Tol

When will i get an answer on my tucket?

Adam Melcher

Abraham,

 

1. Price for a donation when set to 0 is still showing - why is there a base price and it should not be there. The person just wants to send it, as intended, via amount. - please include the link to this product page so I can see what you are referring to.

2. Qty = 1 on a donation  do not display - very confusing - this is a setting that can be turned on/off in the menu item for products in that category or at the store level), if this is a one-off donation product you can also use css to hide the qty field (just make sure it still have a value of 1 - even hidden).

3.Image of product cannot be displayed? - not sure what this means - why can't the product image display?  please include the link to this product page so I can see what you are referring to.

4. cannot surpress SKU? if i enter nodthing it still displays SKU and on product level i cannot seem to not display. - this is a setting that can be turned on/off in the menu item for products in that category or at the store level), if this is a one-off donation product you can also use css to hide the sku field

Also can price be set on a product set to FREE? - When calculating the checkout total, it would be hard for any calculation to add the word FREE to a numerical value - there will always need to be a numerical value for the price field. It doesn't mean you can't create an override of the plugin itself and add some simple php code that if the value is 0 then display FREE - 

to do any sort of override for any J2 Plugin - simply create the following directory inside your template's html folder:
templates -> <your template> -> html -> plugins -> j2store -> app_donation 

then copy the contents of the tmpl folder for the app_donation plugin which can be found:
plugins - > j2store -> app_donation ->app_donation ->tmpl

this could allow you to modify the display as you see fit without losing these changes suring extension updates.

 

Adam

 

Abraham Tol

on 1 https://dharmashop.tngcentre.org/en/donate-to-tng-tibet

on 3. https://dharmashop.tngcentre.org/administrator/index.php?option=com_content&view=article&layout=edit&id=866

It is all for a single product, so i will check the other points, i rather not override in CSS.

Abraham Tol

I have checked this surpress option you meniton and at category level no option available to do this. nor menu level. Not sure, pethaps i am missing something?

Adam Melcher

Abraham,

 

I can't find a menu item for the General category that the donate product is in. I see it was created as a single article and built out using article snippets in the page builder, but without a menu item for it to be associated with, you will find many issues (as you are currently finding).

Items 2-4 can't be controlled because of this (unless I missed the menu item referenced above). 

I understand the issue you are trying to solve (I have had that issue as well) Needing a menu item to set up a single product (similar to the single article menu item for Joomla articles). This is something we  are working on adding in the second quarter, but in the mean time, if this were my site, I would create a Donate menu item, place it in a hidden menu (such as the J2Commerce menu you already have), control all the settings for the individual products from that menu item, and then add a menu url link to point to that specific page url. It's not the most ideal , but under the circumstances, this would give you the best of both worlds until there is a dedicated simple product page.

 

Adam

Abraham Tol

Sorry Adam, but you missed something on the menu item. It is setup in Footer menu!!!

Adam Melcher

Abraham,

 

I did not miss that - the menu item you have in the footer is for an article - not a j2commerce product. If you wish to use the code snippets to build a specific product page, you will not be able to use many of the additional controls you need to manage the display of your product (which is why you can't find those settings for items 2-4). Not all menu items are the same and method I provided in the previous answer is what is needed for your specific use case based on what I was able to see in your backend setup. (Product is in the General category, but I can't see a J2Store category menu item for General products)...

 

Adam

Abraham Tol

So i have to make a menu item to a J2 cat, and link product item to that? This is so confusing.  perhaps all products should not be in cat general.

So i put item Donation in a category as only item? and link then my menu item to this J2 cat?

 

Adam Melcher

Abraham,

 

If you create the menu item for Donations I can set up the footer menu to link directly to that product page. As I mentioned earlier, J2Store never had a simple product menu item so we are looking into what it will take to get this in the next couple of updates...

In the meantime, this is what is needed to ensure you have the proper menu items for the products (and can control things like showing the sku, qty button etc)

 

Adam

Abraham Tol

i made it work with menu item type category...not elegant but working.

Adam Melcher

Glad to see you got it up and running. Once we get past the 4.1.0 launch and the remaining extensions, we can start to revisit the earlier ones such as the donation extension to see what we can do to improve them based on feedback such as yours...

 

Adam

Abraham Tol

Indeed i got it haha - i imagine this is the same for Giftcards?

Perhaps not a bad idea to update you doucmentation on these, for now at least - some example would help and save you time.

Adam Melcher

Yes, all J2 Products should be in at least 1 menu item. I usually build out the store in a hidden menu with  Shop Menu item) > children (menu items) and then use alias menu items in my main menu to point back to the hidden links so I don't have to stick to the actual menu structure in the main menu , even though the products themselves are sitting in the correct menu structure in the hidden menu. 

This will always ensure that you have control over the settings of all your products regardless of how you want them to display in the menu item. 

Adam

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.