Jump to content

Show / Don't Show Field


chaosuk

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/174501-show-dont-show-field/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/174501-show-dont-show-field/#findComment-919706
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/174501-show-dont-show-field/#findComment-919721
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.