diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index de301f7f3..7ad39926c 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -2,6 +2,7 @@ - Updated captcha images to be more legible. - fixed #9285: modifing template prevents edit of syncontent - fixed #8886: Search button in Asset manager + - fixed #9154: WebGUI Shop - Checkout Caching Problem 7.6.7 - fixed #9263: Thingy possibleValues processing, and List type autodetection. diff --git a/docs/gotcha.txt b/docs/gotcha.txt index eb5222247..d4a125909 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -7,6 +7,13 @@ upgrading from one version to the next, or even between multiple versions. Be sure to heed the warnings contained herein as they will save you many hours of grief. +7.6.8 +-------------------------------------------------------------------- + * Due to an error during the 7.6.6 development cycle, an Itransact template, + for displaying the credentials screen, needs to be reimported. Any changes + that you have made to this module will be lost, so please make a back up + of this template. + 7.6.5 -------------------------------------------------------------------- * The deprecated use of Graphics::Magick has been eliminated. WebGUI uses diff --git a/docs/upgrades/packages-7.6.8/shopping-cart-collateral-items_itransact-credentials.wgpkg b/docs/upgrades/packages-7.6.8/shopping-cart-collateral-items_itransact-credentials.wgpkg new file mode 100644 index 000000000..0d23b1c56 Binary files /dev/null and b/docs/upgrades/packages-7.6.8/shopping-cart-collateral-items_itransact-credentials.wgpkg differ diff --git a/docs/upgrades/upgrade_7.6.7-7.6.8.pl b/docs/upgrades/upgrade_7.6.7-7.6.8.pl index 20b398a82..2b03b87f7 100644 --- a/docs/upgrades/upgrade_7.6.7-7.6.8.pl +++ b/docs/upgrades/upgrade_7.6.7-7.6.8.pl @@ -20,6 +20,8 @@ use Getopt::Long; use WebGUI::Session; use WebGUI::Storage; use WebGUI::Asset; +use WebGUI::Shop::Pay; +use WebGUI::Shop::PayDriver; my $toVersion = '7.6.8'; @@ -29,10 +31,31 @@ my $quiet; # this line required my $session = start(); # this line required # upgrade functions go here - +setDefaultItransactCredentialTemplate($session); finish($session); # this line required +#---------------------------------------------------------------------------- +# Describe what our function does +sub setDefaultItransactCredentialTemplate { + my $session = shift; + print "\tSet default ITransact Credentials template if it is not set... " unless $quiet; + # and here's our code + my $pay = WebGUI::Shop::Pay->new($session); + my $drivers = $pay->getPaymentGateways($session); + DRIVER: foreach my $driver (@{ $drivers }) { + ##Only work on ITransact drivers + next DRIVER unless $driver->className eq "WebGUI::Shop::PayDriver::ITransact"; + my $properties = $driver->get(); + ##And only ones that don't already have a template set + next DRIVER if $properties->{credentialsTemplateId}; + $properties->{credentialsTemplateId} = 'itransact_credentials1'; + $driver->update($properties); + } + + print "DONE!\n" unless $quiet; +} + #---------------------------------------------------------------------------- # Describe what our function does #sub exampleFunction { diff --git a/lib/WebGUI/Shop/PayDriver/ITransact.pm b/lib/WebGUI/Shop/PayDriver/ITransact.pm index ca048d361..293416fe0 100644 --- a/lib/WebGUI/Shop/PayDriver/ITransact.pm +++ b/lib/WebGUI/Shop/PayDriver/ITransact.pm @@ -368,10 +368,11 @@ sub definition { hoverHelp => $i18n->get('use cvv2 help'), }, credentialsTemplateId => { - fieldType => 'template', - label => $i18n->get('credentials template'), - hoverHelp => $i18n->get('credentials template help'), - namespace => 'Shop/Credentials', + fieldType => 'template', + label => $i18n->get('credentials template'), + hoverHelp => $i18n->get('credentials template help'), + namespace => 'Shop/Credentials', + defaultValue => 'itransact_credentials1', }, emailMessage => { fieldType => 'textarea',