close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

two questions

Thread began 3/20/2014 12:49 pm by russb335115 | Last modified 3/21/2014 12:35 pm by Jason Byrnes | 1661 views | 9 replies |

russb335115

two questions

1. For the search function/page. Is it possible to have the search (text) field show suggested search results like in the google search function?

2. I set up a featured product section on my home page (that works great). When I click the "shop now" button I want to populate the details page with the product. I have everything working except it populates with the wrong product. Can you help me with this? (I will attached the two files involved)

Sign in to reply to this post

Jason ByrnesWebAssist

1) you would need to hand code this with jquery Autocomplete:
http://jqueryui.com/autocomplete/


2) the onclick event on the home page is set to load the products_detail_item.php page, but that is not the page you included

onclick="document.location.href='../products_detail_item.php?ProductID=<?php echo($row_WADAproducts['ProductID']); ?>
<?php echo(isset($_GET["pageNum_WADAproducts"])?"&pageNum_WADAproducts=".intval($_GET["pageNum_WADAproducts"]):""); ?>';"

please send a copy of the products_detail_item.php page.

Sign in to reply to this post

russb335115

Hi Jason,

Attached is the file. Its based on the theme template so I am using the other two files as plugins.

Also thank you for the link for the query Autocomplete.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

russb335115

See pm

It happens when you click "shop now"

Sign in to reply to this post

Jason ByrnesWebAssist

i see the problem

in the onclick code:
onclick="document.location.href='../products_detail_item.php?ProductID=<?php echo($row_WADAproducts['ProductID']); ?>
<?php echo(isset($_GET["pageNum_WADAproducts"])?"&pageNum_WADAproducts=".intval($_GET["pageNum_WADAproducts"]):""); ?>';"

you are using the WADAproducts recordset to populate the ID, it should be using the WADA_top1_details recordset instead:
onclick="document.location.href='../products_detail_item.php?ProductID=<?php echo($row_WADA_top1_details['ProductID']); ?>';"

Sign in to reply to this post

russb335115

Wow, I'm a little upset I didn't see that. Thanks for the assistance.

I have another issue with my rotating images on the home page. I created this function with the help os Premier Support and it was working great until this morning. Now the image aren't showing up.

Would you like me to start a new thread for this?

Same site on the home page: http://s403739248.onlinehome.us/drugs123/

The white area should have images that rotate.

Sign in to reply to this post

Jason ByrnesWebAssist

theres conflicting versions of jquery on the page

near the top, you include jquery:


<script type='text/javascript' src='plugins/js/jquery.js'></script>

and further down is another reference to jquery form eCart:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>


jquery can only be added once, remove the second one.

Sign in to reply to this post

russb335115

Awesome, thanks Jason,

Have a great weekend!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post
loading

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