Purchase Order option

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #169606

-- HikaShop version -- : latest
-- Joomla version -- : 3.3.0
-- PHP version -- : 5.5.11
-- Browser(s) name and version -- : IE 11

I purchased the Essentials of Hikashop, and nowhere does it say the Essentials can't do a Purchase Order, yet I can't find the option. How do I add a Purchase Order option?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 2 months ago #169613

Hello,
I didn't fully understood your issue so can you give me more details about what you really want to do through some screenshots for example ?

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #169672

I chose Paypal and Credit Card as two payment options. Now I want to add a third, Purchase Order. How do I do that?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 2 months ago #169700

Hello
If you want to add a third payment method you'll just have to create another payment method using the "New" button of the page : "Hikashop->System->Payment methods".

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #169762

There isn't an option to choose a Purchase Order.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 months ago #169776

Hi,

Please explain what is "Purchase Order".
As you saw, we have a lot of payment plugins ; for sure there is no plugin called "purchase order" but one could have the same features as you required.
But please explain your problem ; because like that we can't understand what you are trying to do.

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: 60
  • Thank you received: 0
10 years 2 months ago #169857

Normally businesses buy things with a purchase order. This is the process:

Business is interested in a vendor's product.
Business asks vendor for a quote for the product.
Vendor sends quote to business.
Business sends a purchase order to the vendor. This is just a document that says the business wants the vendor's product.
Vendor sends invoice to business, referencing the purchase order number.
Business pays vendor money to complete the process.

what would be ideal is an auto-dropdown like choosing a credit card, where the purchaser would enter the purchase order number.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 2 months ago #169944

Hi,

Here is a thread which talks about setting up a "purchase order" option:
www.hikashop.com/forum/2-general-talk-ab...hase-orders-usa.html

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #170559

No, that's not what I want. Looking over the lingo used at Hikashop, I think what I need from Hikashop is a "HikaShop Purchase Order payment plugin".

It should function exactly the way the Hikashop Credit Card plugin works, but instead of asking for a name, cc #, expiration date, the HikaShop Purchase Order Payment Plugin should ONLY ask for one field (Purchase Order number).

Can this be done?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 2 months ago #170592

Hi,

Yes it can be done.
Usually, in that case, we direct you to our partners so that they can give you a quote for such development project of a new payment plugin, but as this has already been asked previously, and that I'm in a good mood tonight, I've developed the plugin:

File Attachment:

File Name: purchaseorder.zip
File Size:2 KB


Simply install it on your website via the Joomla installer and you can then configure it via the menu System>Payment methods of HikaShop.
It will be included in next version of HikaShop.

Attachments:
The following user(s) said Thank You: hikalikethat

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #170646

You da #!#%!@#% man!!! :) Awesome!

1. How can I get it to look like the credit card is formatted? I mean the credit card option has smaller text and the background is the template background with the field backgrounds in white. The purchase order option you can't tell where the field is.

2. And what is the "dot" outside of the field at the end of the purchase order option?

3. I updated the jText for display purposes:
function needCC(&$method){
$method->custom_html='<span style="margin-left:10%">'.JText::_('Purchase Order Number: ').'<input type="text" class="hikashop_purchase_order_number inputbox required" name="hikashop_purchase_order_number"/> *</span>';
}

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 2 months ago #170662

Hi,

1. I just tried on my local and the display is the same than the other payment methods. Else I think that some css can do the trick:
hikashop.com/support/support/documentati...ize-the-display.html

2. It is not really a dot but a star, it's to indicate that the field is required. You can remove it by editing the needCC function like you done for point n°3.

3. Instead of editing this JText, it's better to add the translation:

PURCHASE_ORDER_NUMBER="Purchase Order Number:"

hikashop.com/support/faq.html#tran

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #170773

So why doesn't my PO option have the text field in white and the background in a darker shade like the credit card payment option?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 2 months ago #170786

Hi,

Could you give us a link to your website in order to see directly what's happening ?

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #170931

I just sent a PM with that information.

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #171109

Been 3 days with no response. Let me know when you want to look at it again and I'll open up the website. The proof is in the attached screenshots I sent. Nothing else to look at on the website.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 2 months ago #171120

Hi,

It was the weekend ;) Having the website access will allow us to compare the classes.
Thanks to edit the frontend css file and add the following css property:

.hikashop_credit_card{
background-color: rgb(248, 248, 248) !important;
padding-top: 8px !important;
}

It was just some css ;)

The following user(s) said Thank You: hikalikethat

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #171157

Worked! I put the above code in the file: media\com_hikashop\css\frontend_default.css

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #172712

Ok, so it shows the PO# on the Checkout form, but when the order comes through, the PO is nowhere to be found in the email.

How do I get the Purchase Order number to get shown on the emails sent out?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 months ago #172741

Hi,

Yes, the data is stored in the order history so if you want to display it in the email, you need to edit the email PHP code in order to load the order history, find the right element which contain the PO (thanks to the history_type) and display the data you want.
It requires some development/PHP knowledge.

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.

Time to create page: 0.113 seconds
Powered by Kunena Forum