Re: Adding to an existing web site
Where do I usually have to change the path, because in the instructions I was told to merge the files that came with the addon with my template. I did this, so the file should all be in the right place. Maybe that order thing did mess me up. I will try fixing that now and get back to you guys after I get it done over again.
Re: Adding to an existing web site
OK... wth is going on here? I think this is what is wrong with that addon... and I have no idea how to fix it. At the top of the page, this code has appeared:
Code:
// $origin_href = zen_back_link_only(true); $_SESSION['navigation']->clear_snapshot(); zen_redirect($origin_href); } else { zen_redirect(zen_href_link(FILENAME_DEFAULT, '', $request_type)); } } } } } if ($error == true) { $zco_notifier->notify('NOTIFY_LOGIN_FAILURE'); } $breadcrumb->add(NAVBAR_TITLE); // Check for PayPal express checkout button suitability: $paypalec_enabled = (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True'); // Check for express checkout button suitability: $ec_button_enabled = ($paypalec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0)); // check if shipping address should be displayed if (FEC_SHIPPING_ADDRESS == 'true') $shippingAddressCheck = true; // check if the copybilling checkbox should be checked if (FEC_COPYBILLING == 'true') $shippingAddress = true; else $shippingAddress = false; if (FEC_ORDER_TOTAL == 'true' && $_SESSION['cart']->count_contents() > 0) { require(DIR_WS_CLASSES . 'order.php'); $order = new order; require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $fec_order_total_enabled = true; } else { $fec_order_total_enabled = false; } // check if country field should be hidden $numcountries = zen_get_countries(); if (sizeof($numcountries) <= 1) { $disable_country = true; } else { $disable_country = false; } // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_LOGIN'); $zco_notifier->notify('NOTIFY_HEADER_END_EASY_SIGNUP'); ?> eLabel").setAttribute('className', 'hiddenField'); document.getElementById("stText").className = 'hiddenField'; document.getElementById("stText").setAttribute('className', 'hiddenField'); document.getElementById("stBreak").className = 'hiddenField'; document.getElementById("stBreak").setAttribute('className', 'hiddenField'); } function hideStateFieldShipping(theForm) { theForm.state_shipping.disabled = true; theForm.state_shipping.className = 'hiddenField'; theForm.state_shipping.setAttribute('className', 'hiddenField'); document.getElementById("stateLabelShipping").className = 'hiddenField'; document.getElementById("stateLabelShipping").setAttribute('className', 'hiddenField'); document.getElementById("stTextShipping").className = 'hiddenField'; document.getElementById("stTextShipping").setAttribute('className', 'hiddenField'); document.getElementById("stBreakShipping").className = 'hiddenField'; document.getElementById("stBreakShipping").setAttribute('className', 'hiddenField'); } function showStateField(theForm) { theForm.state.disabled = false; theForm.state.className = 'inputLabel visibleField'; theForm.state.setAttribute('className', 'visibleField'); document.getElementById("stateLabel").className = 'inputLabel visibleField'; document.getElementById("stateLabel").setAttribute('className', 'inputLabel visibleField'); document.getElementById("stText").className = 'alert visibleField'; document.getElementById("stText").setAttribute('className', 'alert visibleField'); document.getElementById("stBreak").className = 'clearBoth visibleField'; document.getElementById("stBreak").setAttribute('className', 'clearBoth visibleField'); } function showStateFieldShipping(theForm) { theForm.state_shipping.disabled = false; theForm.state_shipping.className = 'inputLabel visibleField'; theForm.state_shipping.setAttribute('className', 'visibleField'); document.getElementById("stateLabelShipping").className = 'inputLabel visibleField'; document.getElementById("stateLabelShipping").setAttribute('className', 'inputLabel visibleField'); document.getElementById("stTextShipping").className = 'alert visibleField'; document.getElementById("stTextShipping").setAttribute('className', 'alert visibleField'); document.getElementById("stBreakShipping").className = 'clearBoth visibleField'; document.getElementById("stBreakShipping").setAttribute('className', 'clearBoth visibleField'); } //--> TE_ERROR_SELECT . '");' . "\n"; ?> check_select("country", "", "You must select a country from the Countries pull down menu."); check_input("telephone", 3, "Your Telephone Number must contain a minimum of 3 characters."); check_password("password", "confirmation", 5, "Your Password must contain a minimum of 5 characters.", "The Password Confirmation must match your Password."); check_password_new("password_current", "password_new", "password_confirmation", 5, "Your Password must contain a minimum of 5 characters.", "Your new Password must contain a minimum of 5 characters.", "The Password Confirmation must match your new Password."); if (error == true) { alert(error_message); return false; } else { submitted = true; return true; } } //-->
* Home
* Log In
* Shopping Cart
* Checkout
I have no idea where that came from. The only thing I can think of is that somehow my addon messed up and now I have this partial code bit here. Any ideas?
Re: Adding to an existing web site
Also, how would I put together a php script file that could communicate attributes to the cart? I am going to need it for my box builder. I know how to make flash execute a .php script when a button is clicked, which is how I am planning to get the sales information out of flash. I just need to know how to get it from there and into the cart.