Open in FTP je index.php
Zoek in dat bestand naar 'http://1-product.nl/order.php'
En kopier die regel en aantal omliggende code.
Om de code hier te plaatsen zet je het tussen [code.] en [/code.] (zonder punt)
Link gekopieerd
Hier bij de code waar het omgaat :
// Process form
if (fRequest::isPost()) {
$amount = fRequest::get('amount');
$_SESSION['amount']=$amount;
fURL::redirect('order.php');
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title><?php echo WEBSITE_TITLE; ?></title>
<?php include_once('meta.inc.php'); ?>
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.green.css">
<script src="js/modernizr.js"></script>
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<link rel="stylesheet" type="text/css" href="css/iefix.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie7fix.css" />
<![endif]-->
<!--[if IE 9]>
<style>
label.number-select.ind:before {
margin-right: 1px;
height: 48px;
margin-top: 16px;
}
</style>
<![endif]-->
</head>
<body>
<div class="container wrap">
<?php include_once('header.inc.php'); ?>
<section style="margin-bottom: 30px;">
<section class="full_width product">
<div class="product_information">
<?php
if($product_images != null){ ?>
<a href="#" class="unslider-arrow prev">Previous slide</a>
<a href="#" class="unslider-arrow next">Next slide</a>
<?php } ?>
<div class="slider_wrapper">
<ul>
<?php
if($product_images != null){
foreach ($product_images as $p_img) {
echo '<li><img src="img/product/'.$p_img["image_url"].'" /></li>';
}
}
?>
</ul>
</div>
<div>
<h1><?php echo $product['name']; ?></h1>
<h2>Product informatie</h2>
<p><?php echo $product['description']; ?></p>
<span class="deliver_time">Voor 16:00 besteld, morgen in huis</span>
</div>
<div class="clearfix"></div>
</div>
<div>
<ul>
<?php
if(TARGETPAY_STATUS == 1) {
if(PAYSAFE_STATUS == 1) { echo '<li><img src="img/payment_paysafecard_small.png" alt="PaysafeCard" /></li>'; }
if(IDEAL_STATUS == 1) { echo '<li><img src="img/payment_ideal_small.png" alt="iDeal" /></li>'; }
if(BANCONTACT_STATUS == 1) { echo '<li><img src="img/payment_bancontact_small.png" alt="Bancontact" /></li>'; }
}
if(PAYPAL_STATUS == 1) {
echo '<li><img src="img/payment_paypal_small.png" alt="PayPal" /></li>';
}
?>
</ul>
<form action="<?php echo fURL::get() ?>" method="post">
<strong>€ <?php echo $product['price']; ?> <bdi>incl. 21% BTW</bdi></strong>
<label class="number-select ind">
<select name="amount">
<?php
for ($x=1; $x<=10; $x++)
{
echo '<option value="'.$x.'">'.$x.'</option>';
}
?>
</select>
</label>
<button type="submit">Bestellen</button>
</form>
</div>
De tekst die jij zei Michael staat er niet in
Link gekopieerd
Michael -
30-01-2014 08:44
gewijzigd op 30-01-2014 08:51
Graag nog even tussen [code.] en [/code.] zetten zoals ik al zei.
Op deze regel fURL::redirect('order.php'); zou die naar order.php moeten verwijzen, maar doet dit dus niet...
Link gekopieerd
<?php
// Initialise Flourish Library
include_once('inc/init.php');
// Get product information
$product = pProduct::getProduct();
$product_images = pProduct::getImages();
// Process form
if (fRequest::isPost()) {
$amount = fRequest::get('amount');
$_SESSION['amount']=$amount;
fURL::redirect('order.php');
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title><?php echo WEBSITE_TITLE; ?></title>
<?php include_once('meta.inc.php'); ?>
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.green.css">
<script src="js/modernizr.js"></script>
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<link rel="stylesheet" type="text/css" href="css/iefix.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie7fix.css" />
<![endif]-->
<!--[if IE 9]>
<style>
label.number-select.ind:before {
margin-right: 1px;
height: 48px;
margin-top: 16px;
}
</style>
<![endif]-->
</head>
<body>
<div class="container wrap">
<?php include_once('header.inc.php'); ?>
<section style="margin-bottom: 30px;">
<section class="full_width product">
<div class="product_information">
<?php
if($product_images != null){ ?>
<a href="#" class="unslider-arrow prev">Previous slide</a>
<a href="#" class="unslider-arrow next">Next slide</a>
<?php } ?>
<div class="slider_wrapper">
<ul>
<?php
if($product_images != null){
foreach ($product_images as $p_img) {
echo '<li><img src="img/product/'.$p_img["image_url"].'" /></li>';
}
}
?>
</ul>
</div>
<div>
<h1><?php echo $product['name']; ?></h1>
<h2>Product informatie</h2>
<p><?php echo $product['description']; ?></p>
<span class="deliver_time">Voor 16:00 besteld, morgen in huis</span>
</div>
<div class="clearfix"></div>
</div>
<div>
<ul>
<?php
if(TARGETPAY_STATUS == 1) {
if(PAYSAFE_STATUS == 1) { echo '<li><img src="img/payment_paysafecard_small.png" alt="PaysafeCard" /></li>'; }
if(IDEAL_STATUS == 1) { echo '<li><img src="img/payment_ideal_small.png" alt="iDeal" /></li>'; }
if(BANCONTACT_STATUS == 1) { echo '<li><img src="img/payment_bancontact_small.png" alt="Bancontact" /></li>'; }
}
if(PAYPAL_STATUS == 1) {
echo '<li><img src="img/payment_paypal_small.png" alt="PayPal" /></li>';
}
?>
</ul>
<form action="<?php echo fURL::get() ?>" method="post">
<strong>€ <?php echo $product['price']; ?> <bdi>incl. 21% BTW</bdi></strong>
<label class="number-select ind">
<select name="amount">
<?php
for ($x=1; $x<=10; $x++)
{
echo '<option value="'.$x.'">'.$x.'</option>';
}
?>
</select>
</label>
<button type="submit">Bestellen</button>
</form>
</div>
</section>
</section>
<section class="testimonials">
<h2><img src="img/icon_testimonials.png" alt="" /> Wat zeggen onze klanten</h2>
<div>
<p>Zeer snelle levering! Binnen een dag had ik hem al op de mat.
Helaas paste de ring mij niet en kon ik hem gratis omruilen voor een kleinere! Het werkt </p>
<strong>Janette Verschuren</strong>
</div>
<div>
<p>Zeer snelle levering! Binnen een dag had ik hem al op de mat.
Helaas paste de ring mij niet en kon ik hem gratis omruilen voor een kleinere! Het werkt </p>
<strong>Janette Verschuren</strong>
</div>
<div>
<p>Zeer snelle levering! Binnen een dag had ik hem al op de mat.
Helaas paste de ring mij niet en kon ik hem gratis omruilen voor een kleinere! Het werkt </p>
<strong>Janette Verschuren</strong>
</div>
<div class="clearfix"></div>
</section>
<div class="clearfix"></div>
</div>
<?php include_once('footer.inc.php'); ?>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<?php if($product_images != null){ ?>
<script src="js/unslider.min.js"></script>
<script type="text/javascript">
$(function() {
var unslider = $('.slider_wrapper').unslider({
delay: <?php echo SLIDER_TIMER * 1000; ?>
});
data = unslider.data('unslider');
<?php if(SLIDER == 0) {
echo "data.stop();";
} ?>
$('.unslider-arrow').click(function() {
var fn = this.className.split(' ')[1];
// Either do unslider.data('unslider').next() or .prev() depending on the className
unslider.data('unslider')[fn]();
});
});
</script>
<?php } ?>
</body>
</html>
Ik heb hem weer tussen die code's gezet, maar volgens mij werkt dat niet echt
en ja hij zou inderdaad naar
http://site.nl/order.php moeten gaan
Link gekopieerd
Heb je ook een class met de naam: fURL?
Kan je er iets relevants over in vinden, in inc/init.php?
Link gekopieerd
In inc/init.php staat helemaal niks met fURL :(
Link gekopieerd
- Ariën -
30-01-2014 10:32
gewijzigd op 30-01-2014 10:33
Heb je al bovenaan dit geplaatst. Altijd zeer handig bij onverwachte fouten.
<?php
error_reporting(E_ALL);
ini_set('display_errors',1);
?>
Link gekopieerd
in init.php moet ik dat plaatsen ?
Link gekopieerd
Simone Joosten op 30/01/2014 10:34:14
in init.php moet ik dat plaatsen ?
Nee, helemaal bovenaan in je index.php
Link gekopieerd
Heb ik gedaan, maar dan gebeurd er niks
Link gekopieerd