close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

eCart not connecting

Thread began 6/23/2021 11:51 am by NWak04030229 | Last modified 6/23/2021 3:05 pm by NWak04030229 | 32 views | 4 replies

NWak04030229

eCart not connecting

I have put a couple of new pages on my website and I cannot get ecart to connect for some reason. The code on the page is:

<?php
//WA eCart Include
require_once("../WA_eCart/UsedMagic_PHP.php");
?>
<?php
$UsedMagic->GetContent();
?>
<?php
// WA eCart AddToCart
if (isset($_POST["UsedMagic_1_ATC"]) || isset($_POST["UsedMagic_1_ATC_x"])) {
$ATC_itemID = $_POST["UsedMagic_1_ID_Add"];
$ATC_AddIfIn = 1;
$ATC_RedirectAfter = "cart.php";
$ATC_RedirectIfIn = "";
$ATC_itemName = "Quarter/Chinese Coin Transformation";// column binding
$ATC_itemDescription = "";// column binding
$ATC_itemThumbnail = "";// column binding
$ATC_itemWeight = floatval("0");// column binding
$ATC_itemQuantity = floatval("1");// column binding
$ATC_itemPrice = floatval("10.00");// column binding
$ATC_itemQuantity = floatval($ATC_itemQuantity);
if (is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0) {
$UsedMagic->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemThumbnail, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice);
if ($ATC_RedirectAfter != "" && $UsedMagic->redirStr == "") {
$UsedMagic->redirStr = $ATC_RedirectAfter;
}
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];
}
else {
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF'];
}
}
}
?>
<?php
// WA eCart Redirect
if ($UsedMagic->redirStr != "") {
if (function_exists("rel2abs")) $UsedMagic->redirStr = rel2abs($UsedMagic->redirStr,dirname(__FILE__));
header("Location: ".$UsedMagic->redirStr);
die();
}
?>
<html><!-- InstanceBegin template="/Templates/items-template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Used Magic - items</title>
<!-- InstanceEndEditable -->
<link href="../styles.css" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="file:///C|/Users/nikwa/OneDrive/Documents/WEBS/js/scripts.js"></script>
<!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.--><script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/open-sans:n3:default.js" type="text/javascript"></script>
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>

<body>
<div class="background-image">
<div class="container">
<header>
<a href="/item.html"><img src="../pics/logo/logo01.jpg" alt="Used Magic items for sale" width="350" height="150"> </a>

<!-- InstanceBeginEditable name="ItemsMain" -->
<div class="items-main"><img src="../pics/large/Quarter-Chinese-(lge).jpg" width="400" height="285" alt=""/>
<div class="items-buy-button-holder items-price"><strong>£10.00</strong>








<form name="UsedMagic_1_ATC_QCCT_RB" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlentities($_SERVER["QUERY_STRING"]):""; ?>">
<input type="hidden" name="UsedMagic_1_ID_Add" value="QCCT_RB" >
<input type="image" src="../WA_eCart/Images/Pacifica/Btn1_EN_addtocart.gif" border="0" class="eC_ImageButton" value="Add to Cart" name="UsedMagic_1_ATC">
</form>
</div>

<div class="items-text">
<h1>QUARTER/CHINESE COIN TRANSFORMATION</h1>
<p>Magnetic quarter shim fits over Chinese coin. No instructions. Needs a magnetic shim to slip inside the sleeve or external magnetic source (eg a ring) to work the effect</p>
<p><br>
</p>
</div>
</div>
<!-- InstanceEndEditable --> </header>

<footer>
<div class="social-icons"><a href="mailto:nick@usedmagic.co.uk" target="_blank"><img src="../pics/buttons/facebook.png" alt="Used Magic Facebook page" width="99" height="52" class="facebook"><img src="../pics/buttons/email.png" alt="Email Used Magic" width="52" height="52" class="mail"></a></div>
<div class="copyright">Copyright USED MAGIC 2020</div>
</footer>
</div>
</div>
</body>
<!-- InstanceEnd -->

</html>

and the error message I am getting is:

Not Found
The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

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...