close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Displaying unique StoreMessage div for each vendor

Thread began 1/25/2010 1:42 pm by iggymak198560 | Last modified 2/09/2010 1:55 am by iggymak198560 | 6066 views | 15 replies

iggymak198560

How I came up with that code

Originally Said By: Dani Chankhour
  Well, if you look at the PHP code you have on your page, you could see that you set the category id to "1", so it make sense that the page is loading the first image, but it is always going to be true. The question here is how do you determine the Category ID, are you sending in the URL:

Produ...e&CategoryID=5

If so you would want to do this:

$CategoryID = $_GET['CategoryID'];

And you would need to update all the links in PowerStore to add a Category ID.

If you could please explain a little more about how you are determining what is the Category ID that you are going to use, i should be able to help you.  



Thanks, that makes sense to me... for the Category IDs, I just used the number that had been assigned to each of them in the database category table, which resulted in my code.

So I'm thinking from what you said that if I were to add the line you wrote $CategoryID = $_GET['CategoryID']; ... replacing the line I have that says Category = 1

it would probably work right off for a main product category page like Products_Results.php?Search=true&CategoryID=5

but as you suggest I'd need to modify a product specific page's URL like Products_Detail.php?ProductID=205... I'm not sure where exactly to put it in the path, though.

Maybe Products_Detail.php?CategoryID=5&ProductID=205 ? Might that work? Ah! I just popped that URL into the browser and it worked! Yay!

Thanks, I'll report back on that...

But, and this might be a sticky bit, as we also need to have the non-product pages (About, Support, Careers, etc.) show the image from the home page, and I'm not sure how to accomplish that, as they're not associated with a product category and the instructions are making it find categories... maybe there's the "else if" equivalent of a "null" or "none" for those pages?

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