chaosuk Posted September 16, 2009 Share Posted September 16, 2009 Hi one and all, have a client site that 2 or 3 times a year, for just a few days, applies a discount to many of the items in their store. The discounts are applied per item and not via a percentage and are simply held in a 'discount' field in the DB, when displayed we show both the orginal price and the new discounted price, all good and no problems. However, what I'd like to be able to do is have it so the client can go through the store, add the discounted prices to the items they choose, and then when done select from a drop down (or check box etc.) to 'show discounts' across the store. I know it's fairly easy to have add a 'show discount' option built into each record and the if/else is no issue on the frontend either, but I'd really like to have it as a one click option, turn on or turn off. Any help appreciated Quote Link to comment https://forums.phpfreaks.com/topic/174501-show-dont-show-field/ Share on other sites More sharing options...
gevans Posted September 16, 2009 Share Posted September 16, 2009 Did you make this site? If so, I can't imagine you'd come straight here without even attempting to do this, or having some suggestions of your own. Quote Link to comment https://forums.phpfreaks.com/topic/174501-show-dont-show-field/#findComment-919702 Share on other sites More sharing options...
chaosuk Posted September 16, 2009 Author Share Posted September 16, 2009 Thanks for the speedy response. In answer, no, I didn't do all the coding originally, I had someone into do it for me, there's been many changes to the site since that time that I have done however, and whilst I have been able to work out how to do some of things I've wanted as time has gone on, I've also been happy to accept help or advice from those that know far better than I, hence the request for some help. Quote Link to comment https://forums.phpfreaks.com/topic/174501-show-dont-show-field/#findComment-919706 Share on other sites More sharing options...
gevans Posted September 16, 2009 Share Posted September 16, 2009 I'm guessing you have some sort of shopping basket? Do you just want this total to show up when you see that? That'd be a fairly easy move. You could do it per page and just reveal it when you want. Need to know exactly how it would show up before trying to help. Difficult to help without code and/or and insight into your problem. Quote Link to comment https://forums.phpfreaks.com/topic/174501-show-dont-show-field/#findComment-919721 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.