Bring Your Business to Life › Support › Image Store › hook addition requests
- AuthorPosts
- March 17, 2014 at 11:38 pm #57111
Xpark Media
KeymasterWill look into, would you be able to test it before is release?
March 19, 2014 at 3:23 am #57121lch503
ParticipantThank you,
More than happy to at my usual email address!
Leon
March 31, 2014 at 9:33 pm #70191Xpark Media
KeymasterWe added the hooks in the last release, we hope it will help
April 2, 2014 at 12:55 pm #71892lch503
ParticipantGreat! They have indeed!
There is one issue in sagepay.php with the
do_action( ‘ims_sagepay_notice_error’, $ImStore->error, $cartid );
hook.
Note that one on the parameters is $cartid which is not set until after the if statement. Moving the line
$cartid = trim( $crypt_array[‘VendorTxCode’] );
to before the if statement
if( $crypt_array[‘Status’] != ‘OK’ ){
fixes the issue. Apart from that the hooks work great 🙂
Thanks again!
Leon
April 8, 2014 at 12:41 am #78237Xpark Media
KeymasterThank you, we made the change and it will be fix on the next release
April 8, 2014 at 9:42 am #78664lch503
ParticipantThanks,
Could you also make the following change to sagepay.php
in the function add_hidden_fields( $output ),
could you add a conditional statement for the lines
$crypt .= ‘BillingState=’ . $data[‘billing_state’] . ‘&’;
and
$crypt .= ‘DeliveryState=’ . $data[‘address_state’] . ‘&’;
as these are only required for the US, at the moment I must comment these out after every release.
So, for example in psuedocode
if ( currency = US dollars ) $crypt .= ‘BillingState=’ . $data[‘billing_state’] . ‘&’;
and
if ( currency = US dollars ) $crypt .= ‘DeliveryState=’ . $data[‘address_state’] . ‘&’;
Thanks!
April 26, 2014 at 11:35 pm #98437Xpark Media
Keymasterthe values were added, but the data has changed to an array to allow other plugins to remove, change or add values.
The new filter(hook) name will be ‘ims_sage_crypt_data’
- AuthorPosts
- You must be logged in to reply to this topic.