close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Making a link to product_details page corresponding category

Thread began 2/22/2011 9:54 am by deafboyz_audio386924 | Last modified 2/22/2011 3:43 pm by deafboyz_audio386924 | 1224 views | 4 replies |

deafboyz_audio386924

Making a link to product_details page corresponding category

Ok i have some links on my homepage that link to the different categories that i have. The links work and all but when the user is taken to the product_details page all the products in that category show, which is how i want it.

My question is: How do i make it so when a user is taken to that particular category the accordian menu on left auto selects that particular category so that it is highlighted and the user can select the sub categories below it without having to click on the main category again... does that make sense?

Basically i want the link from homepage to product_details to also append the JS function that makes the accordian open for the corresponding category on product_details to see the sub categories automatically without having to select the category again.

how can this be done?

Sign in to reply to this post

Jason ByrnesWebAssist

this is not supported by the accordion javascript.

the selection in the accordion is triggered on the onlick event of the accordion and cannot be triggered on page load.

Sign in to reply to this post

deafboyz_audio386924

ok well almost everything im doing with powerstore isnt supported, but thats just cuz i have a totally custom site that requires a lot of modding of the core engines i use. (powerstore)


So if i was going to code it on my own could i do it like this, is it possible with some customization??

what if i made something append to a query string when the fuses link was clicked like

store/Products_Results.php?Search=1&ProductCategoryID[]=16&action= fuses





then in product_results page put some code like

if(isset($_GET['action'])){
$onLoadAction = $_GET['action'];

onload = code to made the category specified by $onLoadAction load on page load;
}



would that logic work if i do it right?? would that interfere with the on click event if the user then click on a different category with the query string set like that?

Sign in to reply to this post

Jason ByrnesWebAssist

I have looked into trying to add a function to do this on the page load, and have not been successful.


I have not been able to get it to work.

Sign in to reply to this post

deafboyz_audio386924

ok, thanks for trying... ill do some research on some javascript forums in the next few days and let everyone know what i find out,

it seems like it should be possible, but im not a JS expert so i could be wrong...

thanks!

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