suddenly a payment is added to our checkout.

  • Posts: 84
  • Thank you received: 3
  • Hikashop Business
3 years 9 months ago #329840

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.1.33

Hi,

We use hikashop to sell activities. In our case, we let people make a reservation (so at check out, they provide us with their information). We get notified (email from the hikashop extension) and when an activity is sure to go on, we sent our customers a payment link.
So they don't have to pay at the moment they make te reservation (purchase).

Now suddenly, at the end of our checkout procedure, our customers get a payment page.
I cannot think of anything that I changed, but I probably did..... Since COVID things are very slow, so I didn't notice this before....

Where should I change this, I cannot find the change.

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

  • Posts: 12953
  • Thank you received: 1778
3 years 9 months ago #329908

Hello,

If you want to change your checkout workflow, you can configure it via "Hikashop->System->Configuration->Checkout".

Kind regards,
Mohamed.

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

  • Posts: 84
  • Thank you received: 3
  • Hikashop Business
3 years 9 months ago #329943

That was the first place I looked....

The thing is, I cannot find the payment in there... That is why I am so surprised...

You can see the steps in the attachements. Am I overlooking something?

Attachments:

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
3 years 9 months ago #329946

Hello,

Your description of an payment that appear and your settings screenshot are quite astonishing, can you provide these elements please :
- A step by step process in order to reproduce your "issue"
=> Check how do you proceed your tests, and see your payment form
- A backend access (url to backend & admin ref with full access) in order to check your setting

Note : Use our Contact us form to provide your backend access, just add an Url link to this topic in order to keep the link.

Awaiting your returns to be able to progress on your subject.
Regards

Last edit: 3 years 9 months ago by Philip.

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

  • Posts: 84
  • Thank you received: 3
  • Hikashop Business
3 years 9 months ago #329988

OK, step by step:

- added a booking "voeg toe aan reservering" ( crux.nl/outdoor/alpine/alpineklimmen2/product/alpineweek ).
- then the checkout starts
- I provided an emailaddress (here's also something weird, I have 2 sets of buttons, green and white) an hit the white button
- then next on the next page (end of login)
- then provided address information and hit the white button (the green button gives you warnings)
- then again "next" on the pages for invoice address
- then "voltooien" on the completing screen
- and then the payment starts ...

I have turned off the paymentmethods for now, because I don't want customers to pay right now.

Can you work with this?

I know that it sounds silly 'cause things don't change by themselves, but the last time I did a test (because a customer said the process didn't work) there was no test at the end. Only things that happened in the meantime are updates...

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
3 years 8 months ago #329992

Hello,

We have recieved your backend access, but these don't allow us to access the Main HikaShop Configuration panel.
Can you increase our Access level in order to be able to access everything as previously requested please ?
We need to see your workflow part by example.

Regards

Last edit: 3 years 8 months ago by Philip.

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

  • Posts: 84
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #330019

Excuse me!! I gave you administrator rights, thinking that would be enough. Now you're superuser.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 8 months ago #330032

Hi,

The fact that a payment method appears at the end of the checkout is normal.
The cart system automatically selects a payment method for each cart all the time, unless the total amount is zero.
Removing the "payment" view from your checkout workflow will remove the payment method selection area on the checkout, but it won't change the fact that a payment method was auto selected.
What I would recommend is for you to create a payment method of the type "collect on delivery" and rename it for your needs (like for example "payment will happen later on"), and make sure that its "order" on the payment methods listing in your backend is the first one.
That way, the cart system will automatically select this payment method which won't do anything at the end of the checkout besides display some text that can be customized with view overrides.

Since you're saying that you didn't had that behavior before, I suppose that you were using the old checkout system which actually had an option to auto selcet the payment method or not but that isn't the case anymore, for reliability reasons.

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

  • Posts: 84
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #330177

HI,

Thanks that works!
But, this way I have another issue, I sent people an email with an invitation to pay and a link to do it.
And now I have an extra payment type I wish not to show than (pay on delevery).

Is there a way to show only the other 2 (the last 2)

?

translation:
- Payment invitation will follow
- Payment with IDEAL
- Manual payment

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 8 months ago #330208

Hi,

To avoid that, I think you should be able to by adding such code:

<?php
$found = false;
foreach($this->paymentPluginType->methods[$this->paymentPluginType->type][(string)@$this->order->order_id] as $k => $method) {
if($method->payment_id == $this->order->order_payment_id) {
 $found = $k;
}
}
if($found)
 unset($this->paymentPluginType->methods[$this->paymentPluginType->type][(string)@$this->order->order_id][$k]);
?>
at the beginning of the file order / pay.php via the menu Display>Views

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

  • Posts: 84
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #330444

I am not good at writing PHP.

But I think what your code is supposed to do, is check what type op payment already has been done and to unset that one from the list. Is that right?

Except it doesn't work, It shows the first two, and not the last. But the first one was already used, and should not be shown.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 8 months ago #330449

Hi,

Ah right, I made a mistake in the code. It should be like this:

<?php
$found = false;
foreach($this->paymentPluginType->methods[$this->paymentPluginType->type][(string)@$this->order->order_id] as $k => $method) {
if($method->payment_id == $this->order->order_payment_id) {
 $found = $k;
}
}
if($found)
 unset($this->paymentPluginType->methods[$this->paymentPluginType->type][(string)@$this->order->order_id][$found]);
?>
Then it should work properly.

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

  • Posts: 84
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #330503

This also doesn't give me the right result. I tried altering it, but just cannot....

This is what it shows me now:

Attachments:
Last edit: 3 years 8 months ago by ezomerdijk.

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

  • Posts: 84
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #330521

Also...

Today I put a backup on a testserver of the website, and when I walk through the same steps it still works fine!

This is the final screen:



This is the translation:


I don't get it, can it be te outdated PHP???

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 8 months ago #330511

Hi,

Ah I see, the dropdown adds back the payment method as it doesn't find it anymore. So the code works but it's the bit after which is problematic.
Try to also change the line:

echo $this->paymentPluginType->display('new_payment_method', $this->order->order_payment_method, $this->order->order_payment_id, false);
to:
echo $this->paymentPluginType->display('new_payment_method', array(), 0, false);
in that same view file.

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

  • Posts: 84
  • Thank you received: 3
  • Hikashop Business
3 years 8 months ago #330561

Ah Yes! That is working fine! Thank you.

Did you see my comment about the testversion? Can all this be because of the outdated version of PHP?
I am trying to urge my provider to upgrade...

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

  • Posts: 12953
  • Thank you received: 1778
3 years 8 months ago #330601

Hello,

If upgrading your PHP version didn't do the job, can you give us more information about it through some screenshots for example so that we can properly understand it and advise you ? Thank you.

Kind regards,
Mohamed.

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

Time to create page: 0.120 seconds
Powered by Kunena Forum