Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11206
Latest: photoflavio
New This Month: 17
New This Week: 0
New Today: 0
Stats
Total Posts: 33467
Total Topics: 5965
Most Online Today: 88
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 3
Guests: 62
Total: 65

Author Topic: How To: Restrict Options When Adding Items  (Read 2056 times)

0 Members and 1 Guest are viewing this topic.

Offline frustrated

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
How To: Restrict Options When Adding Items
« on: May 11, 2011, 10:19:27 am »
Hi all,

With the new store feature that allows you to have users sell items, I figured I'd drop this little hint...

If you want to restrict what people can or can't do when posting something for sale, like when you don't want people being able to set shipping, etc. just do this:

1.) Find the "additem" function in Store2.php

2.) Place style="display:none;" within the <tr> tag of any option you want to disappear! They're named pretty clearly in the code, so you'll be able to spot which lines of code relate to which options.


It's that simple.

 

+- Recent Topics

Changes by SMFHacks
Today at 09:19:39 am

SMF Gallery 8 video linked from Facebook by SMFHacks
Today at 09:06:37 am

SMFHacks.com updated to SMF 2.0! by SMFHacks
September 20, 2014, 11:02:01 pm

Changing a recount script by SMFHacks
September 20, 2014, 08:48:27 am

Changing number of photos per page and row not listing right on main gallery by Jonas1975
September 20, 2014, 03:33:36 am

Add color functionality to the usernames of this query by shuban
September 19, 2014, 11:57:03 pm

Keywords separation by shuban
September 18, 2014, 11:09:40 pm

Connecting two tables by shuban
September 18, 2014, 08:00:21 pm

Search memberlist by shuban
September 17, 2014, 06:40:49 pm

Custom Fields? by SMFHacks
September 16, 2014, 07:32:29 am

Powered by EzPortal