Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11176
Latest: investorryaneagle
New This Month: 47
New This Week: 3
New Today: 3
Stats
Total Posts: 35103
Total Topics: 6201
Most Online Today: 82
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 2
Guests: 72
Total: 74

Author Topic: How To: Restrict Options When Adding Items  (Read 2224 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

Additional fields (for size i.e.) seems doesn't work properly by SMFHacks
March 29, 2015, 08:50:26 am

Bug In Line (1666) by Empire
March 28, 2015, 08:21:46 pm

Ladders & Bracket System by SMFHacks
March 28, 2015, 09:43:44 am

TopMessageIndex by SMFHacks
March 27, 2015, 05:31:35 pm

Can't install by SMFHacks
March 27, 2015, 12:54:45 pm

When installing doesn't create a gallery folder in SMF by SMFHacks
March 26, 2015, 05:12:35 pm

User Galleries by lonewood
March 26, 2015, 03:24:04 pm

Only half done. by DenDen60
March 25, 2015, 04:36:00 pm

Copyright Removal does not work by werner_hampel
March 25, 2015, 06:39:30 am

Bypass Download Limit Bug by elbeer
March 23, 2015, 09:17:09 am

Powered by EzPortal