Donation button

  • Posts: 60
  • Thank you received: 0
9 years 2 weeks ago #246996

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3

Hello guys!
I want use a donation button in my website. I followed your structure.

You'll find it through your plug-in manager with the name "HikaShop Donation plugin".
If you want to configure it you'll just have to :

create a category named "donation" for example
- create a product named "donation" set the price to 0 and the category to "donation"

- go to "Hikashop -> Display -> Custom fields"
- create a new field
- set the "label" field to amount
- set the "table" field to item
- set the "Column name" field to amount
- set the "field type" to text
- set the "default value" to 0
- add the donation category

- enable the "HikaShop Donation plugin".


NOW, I want to know after doing these steps, how can I insert this donation product in an article? I used "Product" button at the bottom of editor and chose "Donation" product but I can't see the result and text field in the article.

What should I do?

Regards

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 2 weeks ago #247006

Hello,

Unfortunately, you won't be able to display custom item fields through your articles but only your Hikashop products.
To do that it will require some code customization.

Please Log in or Create an account to join the conversation.

  • Posts: 60
  • Thank you received: 0
9 years 2 weeks ago #247130

So can you please give me more details? What's the easiest way to have a donation as a product? the most important thing is that customer should be able to choose the amount.

Regards

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 2 weeks ago #247141

Hi,

The easiest is that now that you have a product with the custom item field setup, you could create a menu item of either the type "products listing" or "product page" and select in the settings of the menu item either the category of the product if it's a listing or the product itself if it's a product page, and you'll be able to access the product page of the donation product with the donation field and the add to cart button so that people can use it to do a donation.
If you want to integrate the add to cart and field in a Joomla article, you won't be able to use the content tag system of HikaShop as it doesn't support custom fields display as Mohamed pointed out. Instead, I would recommend to configure a HikaShop content module via the Joomla modules manager in order to display your product as a listing of products and then include that module in your Joomla article with the Joomla loadposition system:
docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F
That would allow you to achieve pretty much what you want without custom code.

Please Log in or Create an account to join the conversation.

  • Posts: 60
  • Thank you received: 0
8 years 11 months ago #248450

Hello guys!

Thanks for your helps. I followed your structure but what i see in output is what I attached here. Please check this screenshot. It doesn't show any textbox to insert the amount. Also I don't see "Add to card".

What should I do now?

Regards

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
8 years 11 months ago #248451

Hi,

I suppose that both issues come from the same cause: You don't have a price in your product, and you must have the "display add to cart button for free products" setting of the HikaShop configuration turned off.

Please Log in or Create an account to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum