close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Hiding Products

Thread began 5/31/2010 7:57 am by Jon Cunningham | Last modified 5/31/2010 11:37 am by CraigR | 2831 views | 10 replies |

Jon CunninghamBeta Tester

Hiding Products

Would appreciate any help to hide products using a radio button on my Products Update Page.

I have a Product Live Colum in my database and in my Update Page. What I need to do is link / Bind these two together so that I can make a product either visible or not on the product pages of my catalogue.

Any Ideas on doing this would be appreciated.


Jonathon

Sign in to reply to this post

MikeH

Hi
You could use the Search for Boss behaviour its listed in Dreamweaver as Utilities as Show Region Utility to only show the Product if Product_Live_Column = 1 assuming your are setting that column as 1 or 0 (true / false).

Mike

Sign in to reply to this post

Jon CunninghamBeta Tester

Will try many thanks

Many thanks will try and let you know how I get on.

Kind regards

Jonathon

Sign in to reply to this post

Jon CunninghamBeta Tester

must be missing something here

Hi,

I have searched and I am unable to find utilites in dreamweaver. Using CS4.

Any more help would be greatly appreciated.

Kind regards

Jonathon

Sign in to reply to this post

CraigRBeta Tester

In your criteria for displaying a record in the 'public' area, you want to add the column to your filter critera in the recordset.

Something like..

SELECT * FROM tableproducts (or wherever) where ProductLive = 1

this will then only show the rows you want to display

in the 'admin' section, you want to show all rows, to enable you to see which rows are live and which ones are not.

in the edit record page, you would have a checkbox linked to the recordset to show checked when value is '1' and unchecked when value is '0'

updating the record should set the row value depending on the state of the checkbox

Sign in to reply to this post

Jon CunninghamBeta Tester

I was thinking it was something like. I have
SELECT *
FROM products
WHERE ProductCategoryID = 4
ORDER BY ProductID ASC

can i use a second WHERE value that of where ProductLive = 1

Sign in to reply to this post

CraigRBeta Tester

if you want to use 2 criteria in the where clause, you can use the keyword 'AND'

eg

sql_and_or.asp

Sign in to reply to this post

Jon CunninghamBeta Tester

I was tring this

SELECT *
FROM products
WHERE ProductCategoryID = 4
AND Product Live = 1
ORDER BY ProductID ASC

but when i click test it comes back as an error.

Sign in to reply to this post

Jon CunninghamBeta Tester

this is the error

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Live = 1 ORDER BY ProductID ASC LIMIT 0, 10' at line 1

Sign in to reply to this post

Jon CunninghamBeta Tester

Got it sorted. CraigR Many Many thanks for your help!

Really appreciated

Jonathon

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