Configuring Payment orders, unpaid immediately

  • Posts: 45
  • Thank you received: 1
9 years 5 months ago #232622

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8

Hello!
I stuck with Payment orders, unpaid immediately ) Is it possible to do the configuration of it in this case:

  • For the fisrt customer choose payment "I whant to pay later" - and there is no other payment options on checkout page
  • Then customer confirms order on checkout page
  • Then I call him/her and ask some questions after that change manually order status to ,maybe, 'confirmed' and send to customer a letter with link to payment
  • Customer goes to checkout page with all possible payment methods and pays
It is only my approximate algorithm - I really don't know how to use the option "Payment orders, unpaid immediately" in this case... help me, please...

Thanks so much
Olga

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 5 months ago #232626

Hi,

Yes, it's possible.
You can create a payment method like "collect on delivery" and rename it for example "pay later" and set to a specific status that you can create via the menu System>Order statuses. For example "pending".
Then, you can change the status on the backend for the order to "to be paid" and notify the customer.
Then, if you have the "Payment of orders not paid immediately" and the "Allow customers to change their payment method after checkout" settings of the HikaShop configuration activated and the "Unpaid order statuses" to " to be paid", the customers will have a dropdown to select their payment method and a pay button on their orders listing for the orders with that status.

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

  • Posts: 45
  • Thank you received: 1
9 years 5 months ago #232733

Hi, Nicolas!
Thank You very much for Your advices. I did everything!

This payment method works excellently with Paypall and Robokassa plugins, but don't work with "collect on delivery" Problem is that the buyer receives the letter without link to the "payment later"


- I can't find why.. I tryed different settings of the plugin 'collect on delivery' but no result))) I send You some screenshots... sorry for they are in russian language .. but maybe You can find my mistakes in configuration even in this case

And I don't really understand mechanism of this method.. It works only when customer "Registered"? Is it possible to allow Guests to "pay after"?

Thank Yuu!
Olga




Attachments:
Last edit: 9 years 5 months ago by Displey. Reason: I fogot to write some important details

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 5 months ago #232738

Hi,

1. It's normal that the link is not added for the "collect on develiery" payment method.
Collect on delivery means that you, as a merchant, sends the goods to the customer and he will pay for his order when receiving the package. So there is no need for a payment link in the notification email since there would be nothing to display to the customer in such case.
If you want a pay link, you could use instead the "western union" payment method for example. It would work similarily but you would get the link.

2. The pay later is only available for registered users because it requires access to the order details for the customer. Allowing access to that feature to guests would mean that anyone would be able to access the order information of anyone else and that would be a problem. So it's done on purpose to avoid customer information leakage.

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

  • Posts: 45
  • Thank you received: 1
9 years 5 months ago #232834

Hi, Nicolas!
You are really genius!!!! I set Western Union and everything works excellently!!
Maybe You can advice me, how can I add the link "Pay now" in standard template of letter? I need in it because when I change the order status from Created to Pending the customer receives a letter without the link.

Thank You so much.
Olga

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 5 months ago #232849

Hi,

You can add such code at the end of the "preload" version of the "order status notification" that you can edit via the menu System>Emails:

	ob_start();
		if($data->cart->full_total->prices[0]->price_value_with_tax>0 && hikashop_level(1) && $config->get('allow_payment_button',1)) {
			$pay_url = hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=pay&order_id='.$data->order_id.$url_itemid);
			if($config->get('force_ssl',0) && strpos('https://',$pay_url) === false) {
				$pay_url = str_replace('http://','https://',$pay_url);
			}
			echo '<p><a href="'. $pay_url .'">'.JText::_('PAY_NOW') . '</a></p>';
		}
	$content = ob_get_clean();
	$vars['ORDER_SUMMARY'] .= $content;

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

  • Posts: 45
  • Thank you received: 1
9 years 5 months ago #233078

Hi, Nicolas!

I put Your code! Everything is excellent!

Thank You very much!
Olga

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

Time to create page: 0.111 seconds
Powered by Kunena Forum