'back' button query
Hey Jason
Am just retrofitting a site to use eCart and have a couple of questions:
Question 1.
I have the following front end pages set up:
sections.php which displays the categories
which clicks through to
products.php which displays the list products from the category selected in sections.php which I have filtered using an inner join on ProductCategoryID (from products) and CategoryID from productcategories
which clicks through to
product-detail.php which displays individual product details.
My query is, on the product-detail.php page if I create a 'back' button like this
<a href="javascript: history.go(-1)"><< back</a>
if I add something to the cart on this page and then click back, it goes back on the page itself.. I would need to click back twice to get to the products.php page
Question 2.
On the products.php page I have added several 'if' statements and want to add another one based on whether or not the 'Live' column in the database is checked (ie to not display products that have been marked as invisible) The problem is that if the first record is unchecked but the second record isnt, it still shows the 'if' statement.
I hope that this makes sense?
Cheers
Jamie