Donation Plugin

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #162829

Hi,

To do that, usually, we recommend to add a characteristic with the two possibilities as values to the product. That way you can configure the subscription plan only for the monthly donation variant of the product via the "manage variants" button after adding your characteristic to the product.
That way, the system will handle the switch automatically.
It's normal that you don't get anything in the POST in the views as there is a redirect done to the checkout after the add to cart process. If you want to get the products in the cart, you should use such code:

$class = hikashop_get('class.cart');
$cart = $class->loadFullCart();
You'll find the products in $cart->products

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

  • Posts: 147
  • Thank you received: 6
10 years 4 months ago #162923

Hi Nicolas, thanks for your suggestion.
I tried the characteristics, but I came across two products.
1 - Characteristics created, Saved (Variants created), clicked manage variants to edit one of them. But I can't figure out how to configure the recurring payment method for that variant or normal paypal for the single.
The only option close to this is the ability to block a shipping method under 'Shipping Prices' but it has not effect.

eway still come up pre selected.

2 - Characteristics are not displayed in the content module plugin. Or is it?

thanks

Last edit: 10 years 4 months ago by maujbigo.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #163206

Hi,

1.I though that you were using Akeeba Susbcriptions in order to have subscriptions and in that case, you can attach the subscription plan to the variant/product so that the recurring can apply to the variant/product or not.
But now, read your older posts, I see that you're just using the PayPal recurring plugin. In that case, what I proposed won't help.
Instead, it will be more complex.
You would have to create two warehouses one for each type of variant. Then, assign each variant to a different warehouse.
Duplicate your shipping methods, one set for each warehouse (with the warehouse restriction option of the shipping methods). And finally restrict your payment methods based on the shippin methods. That way, you'll see the payment methods corresponding to the warehouse of the product in the cart.

2. Characteristics selection is not possible on listings or in the HTML output of the product content plugin.

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

  • Posts: 63
  • Thank you received: 3
10 years 4 months ago #163437

Are their any front end links showing this "donation" or "custom price" plugin working? Or any non-profit site that I can visit using this plugin?

Does this plugin have the ability to set a minimum donation amount? (such as some of the examples on this link?

Thank you

Last edit: 10 years 4 months ago by sedonasky.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #163449

Yes. You can see it in action on our own demo website:
demo.hikashop.com/index.php?option=com_h...ct&task=show&cid=214
And as you can see there, you can enter the price you want to donate int he field above the add to cart and it will be used as the price to pay in the checkout.

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

  • Posts: 63
  • Thank you received: 3
10 years 4 months ago #163524

Does the plugin provide the option to set a minimum donation amount? The demo does not appear to have that in place.

Our site needs that option.

Thank you

Last edit: 10 years 4 months ago by sedonasky.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 4 months ago #163527

Hi,

There is not this option in the plugin, so you will have to edit the plugin and add this kind of code at the beginning of the function "hikashop_product_price_for_quantity_in_cart()":

if(empty($product->amount) || $product->amount < XX) $product->amount = XX;

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

  • Posts: 63
  • Thank you received: 3
10 years 4 months ago #163745

We will need different minimum donation amounts for different products, so it sounds like this donation plugin will not work for us?

Thank you

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 4 months ago #163746

It could be adapted quite easily.
For example:

if(in_array($product->product_id, array(AA,BB)) && (empty($product->amount) || $product->amount < XX)) $product->amount = XX;
if(in_array($product->product_id, array(CC,DD,EE)) && (empty($product->amount) || $product->amount < YY)) $product->amount = YY;
So the minimum would be XX for products with the id AA or BB and the minimum would be YY for products with the id CC, DD or EE

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

  • Posts: 63
  • Thank you received: 3
10 years 4 months ago #163828

In your demo, would it be easy to remove the +/- option?

Thank you

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 4 months ago #163832

Hi,

I update the demo website in order to remove the "template override" for the quantity butttons.
It allows to use the option "Layout on product page". I set the value "simple" for the donation product and not you could see the result.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 59
  • Thank you received: 0
9 years 10 months ago #185716

i am trying to use the donation plug in but failing fristratingly. i have enabled the donatoon plug in created the custom field and catorgary but cant see how to make a donation to frount end... i must have missed spmething :(

please help

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

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #185773

Hi,

Do you have named the custom field "amount" ?
Please give us more details on the settings, etc.

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

  • Posts: 59
  • Thank you received: 0
9 years 10 months ago #185789

Yes here is a screen capture

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 10 months ago #185796

So did you configure a product in that "donation" category ? Can you provide a link to that product's product page ?

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

  • Posts: 59
  • Thank you received: 0
9 years 10 months ago #185904

Great, I am getting some where. www.scfa.edu.au/j3/skin-hospital/donate


Now is it possible to restrict donation payment to go to a specified payment type instead of the one ecommerce account ?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #185928

Hi,

For what I tested in your website, the donation plugin seems to work. I can enter an amount and the product amount in the checkout is the right one.
But, I am sorry, I don't understand your last question.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 59
  • Thank you received: 0
9 years 10 months ago #185959

The plugin is working but it showers the price of $1 to work. If I put zero as in the instructions the variable input disappeared. Do I need to change a setting?
www.scfa.edu.au/j3/skin-hospital/donate

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 10 months ago #185967

Hi,

I'm not able to access your link anymore ( take.ms/SabSk ) and I don't see what you mean in your question.
Could you maybe do some screenshot so that we can see what you're talking about more easily ?

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

  • Posts: 59
  • Thank you received: 0
9 years 10 months ago #186044

That's right I tried changing some settings now the product won't appear. I will try again by copying the demo example.. then send a screen shot.

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

Time to create page: 0.111 seconds
Powered by Kunena Forum