Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11242
Latest: SlyBaldGuys
New This Month: 29
New This Week: 8
New Today: 2
Stats
Total Posts: 33761
Total Topics: 6022
Most Online Today: 94
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 1
Guests: 65
Total: 66

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

0 Members and 2 Guests 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

Upgrading from Ad Management 3.2 to Ad Seller Pro 2.1 on SMF 2.09 by SlyBaldGuys
Today at 04:56:52 pm

Ajax Continuous Page Scrolling (Facebook Styles) by SMFHacks
October 29, 2014, 04:31:28 pm

Some Problems by m.ehm
October 29, 2014, 04:49:05 am

if you edit a picture that didn't have a custom field applied to it, the opportu by SMFHacks
October 28, 2014, 08:46:32 pm

Core Theme by SMFHacks
October 27, 2014, 08:09:12 pm

Display gallery inside the forum page by SMFHacks
October 27, 2014, 04:19:02 pm

The future of Badge awards by GenesisMUGEN
October 27, 2014, 02:44:05 pm

radio player and chat box by crazyminx
October 26, 2014, 12:41:48 pm

Image Upload by SMFHacks
October 26, 2014, 11:19:37 am

Title by crazyminx
October 26, 2014, 03:10:38 am

Powered by EzPortal