-1
I’m going through a little problem, when I buy an item in the store it redirects to the main store page, but the store is by category, I wanted to put for when to buy stay on the same page or a history.back with a delay I don’t know if it’s possible. Please if anyone can help.
$redirectLoc = $insertItem? '/loja.php':'index.php';
This is Redirect where you’re going.
$redirectLoc = $insertItem? '/#':'index.php';
$redirectLoc = $insertItem? 'javascript:history.back()':'index.php';
$redirectLoc = $insertItem? '/loja.php?categoria=?':'index.php';
But I can’t in any way, can anyone help me please?
if($redirectLoc) {
// Redirect to the specific page
header("Location: $redirectLoc");
exit();
}
?>
This is another similar code you have in . php I don’t know if this can help.