close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart multiple pages.

Thread began 4/10/2015 4:46 am by Joao | Last modified 4/17/2015 1:31 pm by Ray Borduin | 787 views | 6 replies |

Joao

eCart multiple pages.

Hello, I have been trying to apply the ecart to a couple of different pages such as a catalogue page were it works prefectly and a serach page where the add to cart button does not add the item to the shopping cart. The only difference between the 2 pages is obviously the recordset settings, one shows the records based in a serach by column content the other one based in a form variable. Is it possible to use the eCart on different pages or not? Regards

Sign in to reply to this post

Ray BorduinWebAssist

Yes, there shouldn't be any issue with using the cart on multiple pages. It must be something about the page causing it to not function properly. If you upload a copy of the page that doesn't work I can take a look and see if I can spot the problem.

Sign in to reply to this post

Joao

eCart multiple pages issue

Ok heres 2 files one that works perfect "continente.php" and the other that does not "procurar.php". Please have a look. Appreciated.

Sign in to reply to this post

Ray BorduinWebAssist

One obvious problem on that page is that you don't have a form around your IDProd form element. It needs to be inside a form to be passed when the form is submitted.

Sign in to reply to this post

Joao

eCart multiple pages.

Wrong file

Sign in to reply to this post

Ray BorduinWebAssist

It looks like you need to add a hidden field to your add to cart form to pass the procurar field back to the recordset.

Try adding this just before or after the add to cart button in that form:

html:
<input type="hidden" name="procurar" value="<?php echo($_POST['procurar']); ?>">
Sign in to reply to this post

Joao

Originally Said By: Ray Borduin
  It looks like you need to add a hidden field to your add to cart form to pass the procurar field back to the recordset.

Try adding this just before or after the add to cart button in that form:

html:
<input type="hidden" name="procurar" value="<?php echo($_POST['procurar']); ?>">
  



Thanks for your help!

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