From 50b756a5aeb36bd5ac875625e1810d4297d095ca Mon Sep 17 00:00:00 2001 From: JT Smith Date: Wed, 30 Mar 2005 20:28:03 +0000 Subject: [PATCH] 6.5.6 bugfix merge and some new stylings for the slide panel --- docs/upgrades/upgrade_6.5.5-6.6.0.pl | 29 ++++++++++++++++ lib/WebGUI/Asset.pm | 2 +- lib/WebGUI/Asset/Wobject/Navigation.pm | 25 ++++++-------- lib/WebGUI/Commerce/Payment/ITransact.pm | 3 +- .../Macro/SubscriptionItemPurchaseUrl.pm | 2 +- lib/WebGUI/Operation/Commerce.pm | 31 ++++++++++-------- lib/WebGUI/Operation/TransactionLog.pm | 2 +- .../i18n/English/CommercePaymentITransact.pm | 31 ++++++++++++++++-- www/extras/slidePanel/arrowdown.gif | Bin 99 -> 252 bytes www/extras/slidePanel/arrowup.gif | Bin 100 -> 252 bytes www/extras/slidePanel/btn_bg.jpg | Bin 0 -> 327 bytes www/extras/slidePanel/panel_bg.jpg | Bin 0 -> 626 bytes www/extras/slidePanel/slidePanel.css | 17 +++++++--- 13 files changed, 103 insertions(+), 39 deletions(-) create mode 100644 docs/upgrades/upgrade_6.5.5-6.6.0.pl create mode 100644 www/extras/slidePanel/btn_bg.jpg create mode 100644 www/extras/slidePanel/panel_bg.jpg diff --git a/docs/upgrades/upgrade_6.5.5-6.6.0.pl b/docs/upgrades/upgrade_6.5.5-6.6.0.pl new file mode 100644 index 000000000..67aa91879 --- /dev/null +++ b/docs/upgrades/upgrade_6.5.5-6.6.0.pl @@ -0,0 +1,29 @@ +#!/usr/bin/perl + +use lib "../../lib"; +use File::Path; +use Getopt::Long; +use strict; +use WebGUI::Asset; +use WebGUI::Session; +use WebGUI::SQL; + +my $configFile; +my $quiet; + +GetOptions( + 'configFile=s'=>\$configFile, + 'quiet'=>\$quiet +); + +WebGUI::Session::open("../..",$configFile); + +#-------------------------------------------- +print "\tDeleting old templates\n" unless ($quiet); +my $asset = WebGUI::Asset->newByDynamicClass("PBtmpl0000000000000035"); +$asset->purge; + + +WebGUI::Session::close(); + + diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 26e9f0bb4..5132ea2f1 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -820,7 +820,7 @@ sub getAssetManagerControl { $output .= "manager.assetType='".$controlType."';\n" if (defined $controlType); $output .= "manager.disableDisplay(0);\n" if (defined $removeRank); if ($controlType eq "ManageTrash" || $controlType eq "ManageClipboard") { - #$output .= "manager.displayCrumbTrail = false;\n"; + $output .= "manager.displayCrumbTrail = false;\n"; # $output .= "manager.sortEnabled = false;\n"; } $output .= "manager.renderAssets();\n"; diff --git a/lib/WebGUI/Asset/Wobject/Navigation.pm b/lib/WebGUI/Asset/Wobject/Navigation.pm index 7e78db640..8eeb6f80e 100644 --- a/lib/WebGUI/Asset/Wobject/Navigation.pm +++ b/lib/WebGUI/Asset/Wobject/Navigation.pm @@ -259,10 +259,10 @@ sub getToolbar { sub view { my $self = shift; # we've got to determine what our start point is based upon user conditions - my ($start,$current); - if (!exists $session{asset}) { - $start = $current = $self; - } elsif ($self->get("startType") eq "specificUrl") { + my $start; + $session{asset} = WebGUI::Asset->newByUrl unless (exists $session{asset}); + my $current = $session{asset}; + if ($self->get("startType") eq "specificUrl") { $start = WebGUI::Asset->newByUrl($self->get("startPoint")); } elsif ($self->get("startType") eq "relativeToRoot") { unless (($self->get("startPoint")+1) >= $self->getLineageLength) { @@ -281,8 +281,7 @@ sub view { $start = WebGUI::Asset->newByLineage($lineage); } } - $current = $session{asset} unless (defined $current); - $start = $session{asset} unless (defined $start); # if none of the above results in a start point, then the current page must be it + $start = $current unless (defined $start); # if none of the above results in a start point, then the current page must be it my @includedRelationships = split("\n",$self->get("assetsToInclude")); my %rules; $rules{returnQuickReadObjects} = 1; @@ -298,26 +297,22 @@ sub view { $var->{'currentPage.url'} = $current->getUrl; $var->{'currentPage.hasChild'} = $current->hasChildren; my $currentLineage = $current->get("lineage"); - my @linesToSkip; + my $lineageToSkip = "noskip"; my $absoluteDepthOfLastPage; foreach my $asset (@{$assets}) { # skip pages we shouldn't see - my $skip = 0; my $pageLineage = $asset->get("lineage"); - foreach my $lineage (@linesToSkip) { - $skip = 1 if ($pageLineage =~ m/^$lineage/); - } - next if ($skip); + next if ($pageLineage =~ m/^$lineageToSkip/); if ($asset->get("isHidden") && !$self->get("showHiddenPages")) { - push (@linesToSkip,$asset->get("lineage")) unless ($asset->get("lineage") eq "000001"); + $lineageToSkip = $pageLineage unless ($pageLineage eq "000001"); next; } if ($asset->get("isSystem") && !$self->get("showSystemPages")) { - push (@linesToSkip,$asset->get("lineage")) unless ($asset->get("lineage") eq "000001"); + $lineageToSkip = $pageLineage unless ($pageLineage eq "000001"); next; } unless ($self->get("showUnprivilegedPages") || $asset->canView) { - push (@linesToSkip,$asset->get("lineage")) unless ($asset->get("lineage") eq "000001"); + $lineageToSkip = $pageLineage unless ($pageLineage eq "000001"); next; } my $pageData = {}; diff --git a/lib/WebGUI/Commerce/Payment/ITransact.pm b/lib/WebGUI/Commerce/Payment/ITransact.pm index e598683e9..52b0942ff 100644 --- a/lib/WebGUI/Commerce/Payment/ITransact.pm +++ b/lib/WebGUI/Commerce/Payment/ITransact.pm @@ -5,6 +5,7 @@ use WebGUI::Session; use WebGUI::HTMLForm; use WebGUI::Commerce::Payment; use WebGUI::Commerce::Item; +use WebGUI::URL; use Tie::IxHash; use WebGUI::International; use LWP::UserAgent; @@ -208,7 +209,7 @@ sub configurationForm { -value => '
' ); $f->readOnly( - -value => $i18n->get('extra info').'
'.$session{setting}{companyURL}.'?op=confirmRecurringTransaction&gateway='.$self->namespace + -value => $i18n->get('extra info').'
https://'.$session{config}{defaultSitename}.WebGUI::URL::getScriptURL().'?op=confirmRecurringTransaction&gateway='.$self->namespace ); return $self->SUPER::configurationForm($f->printRowsOnly); diff --git a/lib/WebGUI/Macro/SubscriptionItemPurchaseUrl.pm b/lib/WebGUI/Macro/SubscriptionItemPurchaseUrl.pm index a907f2aa7..a86cf8822 100644 --- a/lib/WebGUI/Macro/SubscriptionItemPurchaseUrl.pm +++ b/lib/WebGUI/Macro/SubscriptionItemPurchaseUrl.pm @@ -6,7 +6,7 @@ use WebGUI::URL; sub process { my ($subscriptionId) = WebGUI::Macro::getParams(@_); - return WebGUI::URL::page('op=purchaseSubscriptionItem&sid='.$subscriptionId); + return WebGUI::URL::page('op=purchaseSubscription&sid='.$subscriptionId); } 1; diff --git a/lib/WebGUI/Operation/Commerce.pm b/lib/WebGUI/Operation/Commerce.pm index 63cec3356..4fdf0ff4f 100644 --- a/lib/WebGUI/Operation/Commerce.pm +++ b/lib/WebGUI/Operation/Commerce.pm @@ -12,6 +12,7 @@ use WebGUI::TabForm; use WebGUI::Style; use WebGUI::Commerce; use WebGUI::Operation; +use WebGUI::Operation::Shared; use WebGUI::URL; use WebGUI::International; use WebGUI::Asset::Template; @@ -55,7 +56,7 @@ sub www_cancelTransaction { $var{message} = WebGUI::International::get('checkout canceled message', 'Commerce'); - return WebGUI::Asset::Template->new($session{setting}{commerceCheckoutCanceledTemplateId})->process(\%var); + return WebGUI::Operation::Shared::userStyle(WebGUI::Asset::Template->new($session{setting}{commerceCheckoutCanceledTemplateId})->process(\%var)); } # This operation is here for easier future extensions to the commerce system. @@ -74,7 +75,7 @@ sub www_checkoutConfirm { # If the user isn't logged in yet, let him do so or have him create an account if ($session{user}{userId} == 1) { WebGUI::Session::setScratch('redirectAfterLogin', WebGUI::URL::page('op=checkout')); - return WebGUI::Operation::execute('displayLogin'); + return WebGUI::Operation::execute('auth'); } # If no payment gateway has been selected yet, have the user do so now. @@ -103,7 +104,7 @@ sub www_checkoutConfirm { $var{form} = $f->print; $var{title} = $i18n->get('checkout confirm title'); - return WebGUI::Asset::Template->new($session{setting}{commerceConfirmCheckoutTemplateId})->process(\%var); + return WebGUI::Operation::Shared::userStyle(WebGUI::Asset::Template->new($session{setting}{commerceConfirmCheckoutTemplateId})->process(\%var)); } #------------------------------------------------------------------- @@ -212,7 +213,7 @@ sub www_checkoutSubmit { return WebGUI::Operation::execute('viewPurchaseHistory') unless ($checkoutError); # If an error has occurred show the template errorlog - return WebGUI::Asset::Template->new($session{setting}{commerceTransactionErrorTemplateId})->process(\%param); + return WebGUI::Operation::Shared::userStyle(WebGUI::Asset::Template->new($session{setting}{commerceTransactionErrorTemplateId})->process(\%param)); } #------------------------------------------------------------------- @@ -359,7 +360,7 @@ sub www_editCommerceSettingsSave { } } - return WebGUI::Operation::execute('adminConsole'); + return WebGUI::Operation::execute('editCommerceSettings'); } #------------------------------------------------------------------- @@ -400,13 +401,17 @@ sub www_selectPaymentGateway { $i18n = WebGUI::International->new('Commerce'); $plugins = WebGUI::Commerce::Payment->getEnabledPlugins; - - foreach (@$plugins) { - push(@pluginLoop, { - name => $_->name, - namespace => $_->namespace, - formElement => WebGUI::Form::radio({name=>'paymentGateway', value=>$_->namespace}) - }); + if (scalar(@$plugins) > 1) { + foreach (@$plugins) { + push(@pluginLoop, { + name => $_->name, + namespace => $_->namespace, + formElement => WebGUI::Form::radio({name=>'paymentGateway', value=>$_->namespace}) + }); + } + } else { + $session{form}{paymentGateway} = $plugins->[0]->namespace; + return WebGUI::Operation::execute("checkoutConfirm"); } $var{pluginLoop} = \@pluginLoop; @@ -417,7 +422,7 @@ sub www_selectPaymentGateway { $var{formSubmit} = WebGUI::Form::submit({value=>$i18n->get('payment gateway select')}); $var{formFooter} = WebGUI::Form::formFooter; - return WebGUI::Asset::Template->new($session{setting}{commerceSelectPaymentGatewayTemplateId})->process(\%var); + return WebGUI::Operation::Shared::userStyle(WebGUI::Asset::Template->new($session{setting}{commerceSelectPaymentGatewayTemplateId})->process(\%var)); } #------------------------------------------------------------------- diff --git a/lib/WebGUI/Operation/TransactionLog.pm b/lib/WebGUI/Operation/TransactionLog.pm index b28542854..63cd8b1fe 100644 --- a/lib/WebGUI/Operation/TransactionLog.pm +++ b/lib/WebGUI/Operation/TransactionLog.pm @@ -28,7 +28,7 @@ sub www_viewPurchaseHistory { $var{purchaseHistoryLoop} = \@historyLoop; - return WebGUI::Asset::Template->new("PBtmpl0000000000000019")->process(\%var); + return WebGUI::Operation::Shared::userStyle(WebGUI::Asset::Template->new("PBtmpl0000000000000019")->process(\%var)); } #------------------------------------------------------------------- diff --git a/lib/WebGUI/i18n/English/CommercePaymentITransact.pm b/lib/WebGUI/i18n/English/CommercePaymentITransact.pm index 261f193d3..adc9e10e9 100755 --- a/lib/WebGUI/i18n/English/CommercePaymentITransact.pm +++ b/lib/WebGUI/i18n/English/CommercePaymentITransact.pm @@ -156,8 +156,35 @@ See the information toward the bottom of this page to set up your merchant accou Contact your hosting provider to install your certificate or install it yourself.

+

-Step 5: Optionally Accept eChecks
+Step 5: Enable IP Address
+For added security the system will not allow just anyone to post requests to the merchant account. We have to tell the merchant account what the IP address of our site (or sites) is. To do this go to your virtual terminal and log in. Go to Account Settings > Fraud Control > and click on the "IP Filter Settings" link. There enter the IP address of your server Set the status to Active and set the module to XML, then hit go. Contact your system administrator for your server IP address. You'll also need to send an email to support@cdgcommerce.com to let them know that you wish to enable the XML API. +

+ +

+Step 6: Enable The Commerce System
+Set the enabled field to "Yes" in your WebGUI commerce settings. +

+ +

+Step 7: Optionally Accept American Express, Discover, and Diners Club
+By default you'll only be able to accept MasterCard and Visa. If you want to accept others you'll need to follow these steps: +

    +
  1. Call the credit card vendor to apply: +
      +
    • American Express: (800) 528-5200
    • +
    • Discover: (800) 347-2000
    • +
    • Diners Club: (800) 525-7376
    • +
    +
  2. +
  3. Send the account numbers that you get from those companies to merchantchanges@cdgcommerce.com to get them registered with your merchant account.
  4. +
  5. Go to your virtual terminal and enable these cards under your Account settings.
  6. +
+

+ +

+Step 8: Optionally Accept eChecks
After you have your iTransact/CDGCommerce merchant account set up, you can optionally add the ability to accept eChecks by filling out this application.

@@ -209,7 +236,7 @@ Please note that some of these recipe's are only roughly correct. They don't 'fi
  • yearly (differs 1 day each leap year)

  • Also set the 'RECURRING POST-BACK URL' field in the Account Settings part of the virtual terminal to:|, - lastUpdated => 0, + lastUpdated => 1112200925, context => q|An informational message that's shown in the configuration form of this plugin.| }, }; diff --git a/www/extras/slidePanel/arrowdown.gif b/www/extras/slidePanel/arrowdown.gif index 904f99864538ccf2c30ba1e6929d74c8a700688d..9cb3c27079370d9eda79fb708366b42302f95841 100644 GIT binary patch literal 252 zcmVCd7y1LKL&$+p|y}iB4%F4C1wZ6W-mzS5>+1a+X zw!FN&!NI}A#KhLt*2~Mwx3{<2+S=yk=F`*D;NalH!^7(8>dno~$H&KSZ*R1;wAUc0!ZQsl> z5)J16zy@Koz+8^VBxW%RJSLM&1}cR<0;7Q-5|MJf5y4;tnNZFYDVj2Yj1&%uTq2!I z9Ey=4Vd?w-2?iq?8ytp*h#MM%g@}%dBLD>(l$DkR03!$h8l9e>00jEB+I8E=o--Nlj5G&n(GM2+2rQaQE~LU{L(Y!pOzI z$e;sK2-3p9q}bBWxp42Bpcx;1qVBIPKmJZLL8Dh9X_A}QrnTJ%=gIW5GFSrusk9&C diff --git a/www/extras/slidePanel/arrowup.gif b/www/extras/slidePanel/arrowup.gif index 5598a7b1696527c6dcae5323c7d8d660b84cb528..98123cf8f77ce598c8163b6207a7494eb6f8262b 100644 GIT binary patch literal 252 zcmVCd7y1LKL&$+p|y}iB4%F4C1wZ6W-mzS5>+1a+X zw!FN&!NI}A#KhLt*2~Mwx3{(#!^7(8>dno~$H&KSZ*R1;wAUc0!ZQsl> z5)J16zy@Koz+8^VBxW%RJSb2~CKIJR0;7Ro!ktXJ6Tx5vp-3dtb6P@yj1-PYWGbge z9Ey=4Vd?w-2?iq?8ytp*h#MM%g@}%dBLD>(l$DkR03!$h8l9e>00jEB+I8E=o--Nlj5G&n(GM2+2rQaQE~LU{L(Y!pOzI z$e;sK2-3p9q|_tNaAFPbR`0LQi= AMF0Q* diff --git a/www/extras/slidePanel/btn_bg.jpg b/www/extras/slidePanel/btn_bg.jpg new file mode 100644 index 0000000000000000000000000000000000000000..380e3899266566c88f5e49c51c7bb3d90b3ff8a2 GIT binary patch literal 327 zcmY+9y=p>15QWd&*&kQ0UKhb$e1`<9U=SfziG_uwUMmZ+un1}MAOS6W0;?1jK18C8 z4-kBXb-WSrehag64rkb%@Dq-x_PQ@!Pz0oM5dPphi}Caw1O?z#tP?8jbT*nG-HJou zfKNm>SUOfxS!s1a8=YZ{wFPU9bH$=_aUNo3t+X@7l}oNvPAWo@WTER7|Ev7mO@%Fd z0X1kQkH`~y3Oft{mOtL1ts}bASzDEbZO&~p>22QUWm@++{}K;-#7y!Cdpu!v8h$-| OZ(7f5di+>W_&o#E4kvT~ literal 0 HcmV?d00001 diff --git a/www/extras/slidePanel/panel_bg.jpg b/www/extras/slidePanel/panel_bg.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8da764bb24518046dae1047bee1a08ca434faf43 GIT binary patch literal 626 zcmb_YJxc>Y6r6W^x0g*WA1jCi(N;mLU}2|%1Qd~IV<)1QN>GakULzOrA1DZ7k)L2| zcZH3er5{bIRAOh5YJIm#;vsguazAu%^=amYwAR&b3dP+)FET}@U zTw;{Vw(0u{zN+lppfU+`&Y3|~kcOj4XfpTM1f}4Z12`m9R!N^KzxqgTjOff{+Gk!6 z2x0@Fv4D>_)!?t)h$%cIwIeP@du_|J7&vIu+LuA+78t*Zo89V(+;);b<*jSqGS5Ht zbZ63Xj<+xJIB#i+=~=+*$C2eDFu`_1i?JSA3hr;EVFFG?ckD^2InOfevY%O4YuOiy b=H)tF#9@~`Wxo?ya&*Sf-j@G!_~!W&$jN0< literal 0 HcmV?d00001 diff --git a/www/extras/slidePanel/slidePanel.css b/www/extras/slidePanel/slidePanel.css index 52f832940..e20f14a1b 100644 --- a/www/extras/slidePanel/slidePanel.css +++ b/www/extras/slidePanel/slidePanel.css @@ -18,13 +18,14 @@ font-family:arial; font-size:11px; cursor:hand; - border-width:2; - border-style:outset; - border-color: #dddddd; + border-width:1; + border-color: #ACACAC; background-color:#dddddd; + background-image: url(btn_bg.jpg); position:absolute; left:0; top: 0; + border-style: solid; } .panelButton A { @@ -46,12 +47,15 @@ .slidePanel { position:absolute; background-color: #eeeeee; + } .panel, .panelLinkHolder { position:absolute; left:0; background-color: #eeeeee; + background-image: url(panel_bg.jpg); + background-repeat: repeat-x; } .panelLinkOut { @@ -60,9 +64,10 @@ height: 20px; cursor: hand; left:0; - border: 1px solid #eeeeee; + /*border: 1px solid #eeeeee; */ font-size: 11px; font-family: helvetica, arial, sans; + padding: 5px; } .panelLinkIn { position:absolute; @@ -70,8 +75,10 @@ overflow: hidden; cursor: hand; left:0; - border: 1px solid orange; + border: 1px solid #DEDCDC; font-size: 11px; font-family: helvetica, arial, sans; + background-color: #F5F5F5; + padding: 5px; }