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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Hide add to cart button

Thread began 10/03/2011 7:44 am by robert329616 | Last modified 10/03/2011 3:11 pm by robert329616 | 563 views | 2 replies |

robert329616

Hide add to cart button

Hello,

I found a link (listing a product in catalog that is NOT sold online) for adding "call for pricing" when the product price is set to $0 which works great.

My question is: Is it possible to hide the add to cart button on the products_detail.php page when the price is set to 0? My client doesn't want customers going further for this section (rentals) but does when there is a price.

I tried to do this in the server behaviors dialog box with the show regions command. It would not allow me to select this. I think I remember the SQL being too complicated to use this and I don't think this was the way to go regardless.

Any help would be appreciated.

Rob

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to add an if statement around the add to cart button:


php:
<?php if($row_WADAProducts["ProductPrice"] > 0) { ?>

<input type="submit" value="Add to Cart" name="WA_Store_Cart_1_ATC" class="ps_buttons submit" />
<?php ?>
Sign in to reply to this post

robert329616

Jason,

Thanks so much, that worked perfectly!

Rob

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