Third party shipping fulfillment

  • Posts: 9
  • Thank you received: 0
11 years 2 months ago #148781

-- url of the page with the problem -- : TBD
-- HikaShop version -- : 2.2.3 Business
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Firefox 27.0.1
-- Error-message(debug-mod must be tuned on) -- : None as of yet

I am looking to implement a third party fulfillment company that will produce printed material for my products, but it is on demand. I have a process in place that includes a database with details of the items (width, length, weight) for shipping and to date have been using a separate UPS "estimate" pulled directly from thier API for shipping costs.

Once payments for the order is successfully processed i then submit the order to this third party for printing and have them ship the item. the questions I have are:

1. Can I use the UPS plugin (or USPS for that matter) to get estimates and charge customers, but not actually "ship" it via that system?
2. Is there any way to inject this third party fulfillment process into Hikashop to accommodate my current process?

Thank you,

Dan

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 2 months ago #148799

Hi,

1. Yes. That's what the UPS plugin does. It just handles the shipping rates retrieval for the products in the cart. So as long as you set the weight/dimensions of the products it should work.

2. I guess that it would be possible with a custom made HikaShop plugin.

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

  • Posts: 9
  • Thank you received: 0
11 years 2 months ago #148891

Guess i need to learn now to make plugins :) .... unless there's a way to hand off shopping cart data to a page after purchase is complete at which time i could complete the transaction post-sale.

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 2 months ago #148909

Handing off shopping cart data after purchase can be done with a HikaShop plugin, so yes, you'll have to make a plugin :)

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

  • Posts: 9
  • Thank you received: 0
11 years 2 months ago #149181

My plan was to create a payment plugin that would incorporate the onAfterOrderConfirm() API call, but have concluded that this is incorrect as i need to confirm that the payment is complete and successful. I see a lot of documentation about your API's, but they all have a tendency to refer to existing plugins as examples. Many of the variables and function calls refer to items I do not seem to have a source for. Is there a location where i can get all the features/variables/etc. that the $order variable contains so i know I will have all the information required for my 3rd party process? Perhaps i am not fluent enough with Joomla as many of these elements are unfamiliar to me. Also, to pass the order to another page I presume i would likely examine a value for the success the payment process, but I can't find a reference for where this value is kept. Pardon me for being a bit scatter brain, but i am relatively new to Joomla coding and definitely new to HikaShop/HikaMarket

Last edit: 11 years 2 months ago by delkins.

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
11 years 2 months ago #149262

Hi,

You would have to create a HikaShop plugin implementing the onAfterOrderUpdate trigger, check that the order is getting confirmed and then have your code to send the data you want where you want.
The order data probably won't be complete in the $order variable, but the $order->order_id will always be there (otherwise the order couldn't be updated...), so you could load all the order data as explained in our code sample area:
www.hikashop.com/support/support/documen...umentation.html#code
As for documentation on what variable is returned by that loadFullOrder function, simply do a var_dump of the variable and you'll get everything displayed.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum