order is made before payment with ideal

  • Posts: 424
  • Thank you received: 11
  • Hikaserial Subscription Hikashop Business
10 years 1 month ago #196153

-- url of the page with the problem -- : www.margriet-bussum.nl
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.6.x
-- Error-message(debug-mod must be tuned on) -- : none

Hello,

We've installed ideal on the hikashop and we were testing, but when we order a product and go to the iDeal payment the order is already made. (invoice also sent) even when we cancel the payment or just abort the payment, the order is still confirmed in the shop how can we change this.
Order statussen doesn't work allright it is all confirmed even when it's not paid.
Hope i explained it right.
Please help.

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

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 1 month ago #196160

Hi,

Please contact the iDeal support ; the iDeal plugin are not made by the HikaShop team so we can't provide support for them (as we do not know how their are working, the code, etc)

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: 424
  • Thank you received: 11
  • Hikaserial Subscription Hikashop Business
10 years 1 month ago #196260

Thank You for your answer, i just discoverd and figured this out before reading your mail.
I do have another question,
we need to send an extra email along with the confirmation email generated by hikashop, just for one specific product.
how can we generate this from hikashop.
we already made once an custommailer for the shop we are now working with. maybe this could help u understand what i mean.
simply said: when someone order product x they will be send to the ideal to pay, along they will receive the confirmation email and next to this they need to get a welcomemail made by us.
Already many thanks.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #196277

Hi,

If it is right after the confirmation email, you can potentially use the trigger: "onAfterOrderConfirm()"
www.hikashop.com/support/support/documen...#onAfterOrderConfirm

This way you can check the content of the order confirmed and if the product X is inside, so prepare and send the email.

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

  • Posts: 424
  • Thank you received: 11
  • Hikaserial Subscription Hikashop Business
10 years 1 month ago #196368

Hi,
If i understand it correctly.. i can use the trigger "onAfterOrderConfirm()" directly in the code in the email created / confirmed at the end and then use my old code to tell the system if it's product x send the other email. ??
Thanks

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

  • Posts: 424
  • Thank you received: 11
  • Hikaserial Subscription Hikashop Business
10 years 1 month ago #196760

Hello,

I have tried several ways to get te trigger right. i would like understand this. pleas help. i only need for one product after payment is made and confirmed an extra email to be sent to the customer. do i need to trigger it in de order.php or in the emails which are sent to the customer?
Pleas help

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #196795

Hi,

The link I gave earlier give more details about the triggers.
www.hikashop.com/support/support/documen...#onAfterOrderConfirm

A trigger can be used in a plugin only, in our code we call the triggers at specific moments, so once the call is done, all the enabled plugins having this trigger are used and can do what they want.

So you have to create a plugin, use the "onAfterOrderConfirm()" function in the plugin and in that function and then use your code to do the check on the products of the order and send the other mail or not.

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

  • Posts: 424
  • Thank you received: 11
  • Hikaserial Subscription Hikashop Business
10 years 1 month ago #197062

Hello again :unsure:

i've made a plugin as u said, but it doesn't seem to work right. can u take a look please? when installed it i get the following error in the confirmation mail:
Notice: Undefined property: stdClass::$customtext_75_20_42_01 in /home/aandearbeid/public_html/media/com_hikashop/mail/order_status_notification.preload.php on line 161
and a same notice in the mail that the order is made, but then on line 158

This is my plugin so far. see attachement.
Please help

Attachments:

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

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 1 month ago #197180

Hi,

Can you please edit the file and replace the line

if(empty($item->$namekey) && !strlen($item->$namekey)) continue;
By
if(!isset($item->$namekey) || (empty($item->$namekey) && !strlen($item->$namekey))) continue;

It should fix your notice issue.
But a notice is not something which will stop the process of the PHP ; in product mode this kind of notice is not displayed so it will not affect/impact the website.

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.255 seconds
Powered by Kunena Forum