close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Added a "Quick Cart" via Display Manager but the "View Cart" button doesn't link to anything, nor does it appear in the Server Behaviours panel?

Thread began 6/09/2015 3:47 am by Nathon Jones Web Design | Last modified 6/11/2015 2:38 pm by Nathon Jones Web Design | 5889 views | 5 replies

Nathon Jones Web Design

Here's what's inserted when we add a "Quick Cart" via Display Manager...

<?php
//WA eCart Include
require_once("WA_eCart/whiskyCART_PHP.php");
?>
<?php
$whiskyCART->GetContent();
?>
<?php
// WA eCart Clear Cart
if (isset($_POST["whiskyCART_Clear_100"]) || isset($_POST["whiskyCART_Clear_100_x"])) {
$whiskyCART->ClearCart();
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
$whiskyCART->redirStr = $Redirect_redirStr;
}
$whiskyCART->cartAction = "ClearCart";
}
?>
<?php
//WA eCart Redirect Check Out
if (isset($_POST["whiskyCART_Checkout"]) || isset($_POST["whiskyCART_Checkout_x"])) {
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
if (strpos($Redirect_redirStr, "?") === false) {
$Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
}
else {
$Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
}
}

$whiskyCART->redirStr = $Redirect_redirStr;
}
$whiskyCART->cartAction = "Checkout";
}
?>
<?php
// WA eCart Redirect
if ($whiskyCART->redirStr != "") {
if (function_exists("rel2abs")) $whiskyCART->redirStr = rel2abs($whiskyCART->redirStr,dirname(__FILE__));
header("Location: ".$whiskyCART->redirStr);
die();
}
?>



And the quick cart form itself, on the page..

<form action="<?php echo ($_SERVER["PHP_SELF"].(isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>" method="post">
<div class="text-center">
<input name="whiskyCART_View_100" type="submit" class="btn btn-default" id="whiskyCART_View_100" onClick="MM_goToURL('plugins/parent','');" value="View Basket" />
<input type="submit" name="whiskyCART_Clear_100" id="whiskyCART_Clear_100" class="btn btn-default" value="Clear Basket" />
<input type="submit" name="whiskyCART_Checkout" id="whiskyCART_Checkout" class="btn btn-default" value="Checkout" />
</div>
</form>



What I'm asking is why isn't the "View Cart" button working? I'm asking that Ray because if the extensions don't do what they're supposed to I don't have hours of time to waste finding that out the hard way - ie. applying them and them just not working. Are you telling me that Quick Cart doesn't work in Dreamweaver CC?

Also, your onclick suggestion...is there a reason you've added the "plugins" subdirectory to that link?

Thank you.
NJ

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...