Custom prices and fields

  • Posts: 7
  • Thank you received: 5
12 years 9 months ago #35672

I am the devloper of JEvents and the associated event registration addon (RSVP Pro) and am looking at using HikaShop as a payment mechanims and shopping cart for event registrations.

The idea is that the visitor makes all their registration selections in the event detail page and when they register a product is automatically added to their shopping cart. The product links back to the registration and when their purchase is completed in HikaShop then their event registration is automatically completed.

I have already done this with Virtuemart and am evaluating HikaShop as an alternative shopping cart.

I can see how I can add item based custom field to link back to the event and user specific registration (I'm sure I can figure out how to add the item to the cart remotely using $cartClass = hikashop_get('class.cart'); and its methods) and am now working on the dynamic pricing aspect.

I found the reference to the hikashop_product_price_for_quantity_in_cart and hikashop_product_price_for_quantity_in_order methods and wanted to make sure if this was the correct way to adjust an item's price dynamically within a cart?

Am I right that these methods are 'global' functions so you can only have one such override in an installation otherwise you get a function redeclaration error?

thanks

Geraint

The following user(s) said Thank You: joomleb, NigelPeck

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
12 years 9 months ago #35710

Hi,

That's a great news.

These are indeed global functions. Usually, they are only used for specific customizations so no one had a conflict on them so far.

That's indeed the functions you should define if you want to have a dynamic price for products. We usually define them in a system plugin so that they are loaded all the time.

If you have any questions for your implementation, do not hesitate to ask and we'll try to help you as much as we can.

The following user(s) said Thank You: NigelPeck

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

  • Posts: 7
  • Thank you received: 5
12 years 9 months ago #35747

Hi Nicolas

Did you consider putting these functions into hikashop plugin event handlers - then this would be the start of a custom fields plugin architecture (VM2 does this and its very helpful).

I have another question:

For the paypal IPN plugin you only handle completed and pending payments automatically and all other paypal actions (Refunded, reversed etc.) have to be handled manually. Is that correct? The sandbox site is not working at the moment so the question is from looking at the code and not from testing directly.

Additionally you don't a 'payment transactions' report associated with an order or a general list of payment transactions? This means when fulfilling an order or checking an order status you have to rely on manual processing of the emails received since there is no ling from the order page to the payment details at Paypal. Is that correct?

thanks

Geraint

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
12 years 9 months ago #35797

Hi,

We didn't think about it so far, but it definitely makes sense to have plugin triggers for that. We'll add that in next release of HikaShop.

All the status are handled and an email is sent to the administrator. However, the order status is not changed in such cases. These are special events and we think that it's better that the administrator checks for himself what to do.

To correlate orders and payments on PayPal, you can use the order id which is specified in all the PayPal emails and in the PayPal transactions. The transaction number is indeed not stored in the order information with the PayPal plugin but it would be easy to add. It's just that no one told us that this was a problem so far.

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

  • Posts: 7
  • Thank you received: 5
12 years 9 months ago #35869

To correlate orders and payments on PayPal, you can use the order id which is specified in all the PayPal emails and in the PayPal transactions. The transaction number is indeed not stored in the order information with the PayPal plugin but it would be easy to add. It's just that no one told us that this was a problem so far.


I have found (from my experience with Virtuemart) that matching up orders to paypal payments can be a real pain - Joomla usernames/names often don't match names in Paypal and often its a matter of looking through 5-6 possible matches to find the correct one.

Our event registration component has a couple of native payment engines and one of the features of the component and these plugins is a linkage between the order and the payment engine transactions/activity. The plugins generate the output/links (which are payment engine specific) making it easy to view all the payment activity related to an order directly from the order detail page. Direct access to log messages would also be good. An invoice/payment receipt generating system could also tap into these plugins to include payment defails in an invoice/receipt.

I think incorporating this feature would be a good idea - personally I am not happy to rely on an email notification of a cancelled/reversed payment especially for virtual transactions (downloads and other non-physical delivery items). Emails get lost, they get read by a different person to the one processing an order etc.

thanks

Geraint

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
12 years 9 months ago #35936

Hi,

If you want to get all the paypal payment information in your orders, you should turn on the "debug" option of the paypal plugin.
You will get it in the history area for the payment notification.

You might need to remove the line:
"test_ipn" => $debug,
from the plugins/hikashoppayment/paypal.php file if you have a problem with the validation of the orders but I think it should be ok even without that modification.

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

  • Posts: 7
  • Thank you received: 5
12 years 9 months ago #35999

I'm surprised that your users haven't encountered financial auditors (accountants) who need the audit trail linking orders and payments from within the online system.

What I will probably do is:
1. Create a custom text field for orders
2. Create my own version of the paypal plugin that appends payment details into this custom text field and also responds to cancellations/refunds/reversals by changing the order status

Geraint

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
12 years 9 months ago #36039

Our own accountant uses the order id (which is both on our website and on PayPal) to audit trail orders on our website and payments on PayPal.

1. You could indeed do that. In fact, I think that it's a good idea to add the transaction id in the history data so we'll add that for next version.

2. I don't feel that handling automatically cancellations/refunds/reversals should be by default in the plugin. However, adding an option to activate that would be great.
If you happen to do it and want to share it with the community, let us know and we'll review the modifications and add them to the plugin.

The following user(s) said Thank You: joomleb

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

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
10 years 4 months ago #162009

Hi Geraint,

I have a site using JEvents and HikaShop, and wondering if this integration work you did is something I can make use of? As it's pretty much exactly what we need to do, have events available for purchase and an item be automatically added to the cart after registration.

Thanks,
Nigel


Professional website services including website management, Linux server admin and web hosting.
www.sharphosting.uk/

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

  • Posts: 7
  • Thank you received: 5
10 years 4 months ago #162013

This is now possible using RSVP Pro ( www.jevents.net/products-new/addons/rsvp-pro ) and

The full download package should be available in the next couple of days - in the meantime see www.jevents.net/forum/viewtopic.php?f=24...588&start=10#p131678

The following user(s) said Thank You: Xavier

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

  • Posts: 7
  • Thank you received: 5
10 years 4 months ago #162115

I've uploaded a full compatible package in the gold member forum - see www.jevents.net/forum/viewtopic.php?f=24&t=24934

Last edit: 10 years 4 months ago by nicolas.
The following user(s) said Thank You: nicolas, NigelPeck

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

  • Posts: 56
  • Thank you received: 1
  • Hikashop Business
10 years 4 months ago #162220

Thanks, that's great, appreciate you getting on to it so quickly.


Professional website services including website management, Linux server admin and web hosting.
www.sharphosting.uk/

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

Time to create page: 0.085 seconds
Powered by Kunena Forum