6.5.6 bugfix merge and some new stylings for the slide panel
This commit is contained in:
parent
a38817feec
commit
50b756a5ae
13 changed files with 103 additions and 39 deletions
29
docs/upgrades/upgrade_6.5.5-6.6.0.pl
Normal file
29
docs/upgrades/upgrade_6.5.5-6.6.0.pl
Normal file
|
|
@ -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();
|
||||
|
||||
|
||||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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 = {};
|
||||
|
|
|
|||
|
|
@ -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 => '<br>'
|
||||
);
|
||||
$f->readOnly(
|
||||
-value => $i18n->get('extra info').'<br><b>'.$session{setting}{companyURL}.'?op=confirmRecurringTransaction&gateway='.$self->namespace
|
||||
-value => $i18n->get('extra info').'<br><b>https://'.$session{config}{defaultSitename}.WebGUI::URL::getScriptURL().'?op=confirmRecurringTransaction&gateway='.$self->namespace
|
||||
);
|
||||
|
||||
return $self->SUPER::configurationForm($f->printRowsOnly);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
<b>Step 5: Optionally Accept eChecks</b><br />
|
||||
<b>Step 5: Enable IP Address</b><br />
|
||||
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.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Step 6: Enable The Commerce System</b><br />
|
||||
Set the enabled field to "Yes" in your WebGUI commerce settings.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Step 7: Optionally Accept American Express, Discover, and Diners Club</b><br />
|
||||
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:
|
||||
<ol>
|
||||
<li>Call the credit card vendor to apply:
|
||||
<ul>
|
||||
<li>American Express: (800) 528-5200</li>
|
||||
<li>Discover: (800) 347-2000</li>
|
||||
<li>Diners Club: (800) 525-7376</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Send the account numbers that you get from those companies to merchantchanges@cdgcommerce.com to get them registered with your merchant account.</li>
|
||||
<li>Go to your virtual terminal and enable these cards under your Account settings.</li>
|
||||
</ol>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Step 8: Optionally Accept eChecks</b><br />
|
||||
<a target="_blank" href="http://cdgcommerce.com/forms/CDGcommerce_ACH_Processing.pdf">After you have your iTransact/CDGCommerce merchant account set up, you can optionally add the ability to accept eChecks by filling out this application.</a>
|
||||
</p>
|
||||
|
||||
|
|
@ -209,7 +236,7 @@ Please note that some of these recipe's are only roughly correct. They don't 'fi
|
|||
<li><b>yearly</b> (differs 1 day each leap year)</li>
|
||||
</ul><br>
|
||||
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.|
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 99 B After Width: | Height: | Size: 252 B |
Binary file not shown.
|
Before Width: | Height: | Size: 100 B After Width: | Height: | Size: 252 B |
BIN
www/extras/slidePanel/btn_bg.jpg
Normal file
BIN
www/extras/slidePanel/btn_bg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 327 B |
BIN
www/extras/slidePanel/panel_bg.jpg
Normal file
BIN
www/extras/slidePanel/panel_bg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 626 B |
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue