close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

'back' button query

Thread began 1/21/2014 6:21 am by Jamie | Last modified 1/22/2014 11:44 am by Jason Byrnes | 1657 views | 5 replies |

Jamie

'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

Sign in to reply to this post

Jason ByrnesWebAssist

1) Yes, when you add an item to the cart, a form post happens.

when the form post happens, it makes the last page in the history the same page as the form is on.

Instead of trying to use the history, you should use standard links. the history will be unreliable with the add to cart form submit.

2) i would need to see the code in order to troubleshoot.

Sign in to reply to this post

Jamie

re. 1 thanks Jason

re. 2 see PM

Sign in to reply to this post

Jason ByrnesWebAssist

we looked at this in a connect session, we had to create a loop to loop through the returned recordset, set a application variable based on the live column value and use that fro triggering the show if.

Sign in to reply to this post

Jamie

As ever superb support :)

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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