Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 10989
Latest: motmez1
New This Month: 28
New This Week: 12
New Today: 2
Stats
Total Posts: 34114
Total Topics: 6077
Most Online Today: 117
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 74
Total: 74

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

Emailing/PMing Advertiser to Renew? by tank_fv101
Today at 11:58:15 am

Double Store Paypal Address Lines by w5hro
Today at 10:33:23 am

Is there a specific setting where you can search only a single member's personal by Jonas1975
Today at 08:08:57 am

SMF 2.1 by testJL
Today at 01:34:30 am

pagination in category overview by fondlyPiranha
December 18, 2014, 09:09:01 am

Unable to load the 'Gallery2.1' template by SMFHacks
December 15, 2014, 03:33:51 pm

Member Group Space Limits by Post count based groups by Jonas1975
December 15, 2014, 10:18:16 am

Manual uninstall? by SMFHacks
December 15, 2014, 08:42:04 am

Error when installing, by Empire
December 15, 2014, 12:08:11 am

FaceBook App Canvas URLs- by SMFHacks
December 14, 2014, 07:26:05 pm

Powered by EzPortal