Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default removing options from the product page

    I need to remove following options from the admin product page since I have no use for them and they confuse other people.. So is there a way to have the default settings and remove them from admin product page?

    Product is Virtual, Always Free Shipping, Products Quantity Box Shows, Product Qty Minimum, Product Qty Maximum, Product Qty Units, Product Qty Min/Unit Mix,

    I tried to remove them from collect_info file but it gives an error in the cart..

  2. #2
    Join Date
    Sep 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: removing options from the product page

    You are on the right track -
    Instead of only removing the code find the items you wish to remove display for and change to hidden input fields as follows;

    find -
    // hidden fields not changeable on products page
    in (collect_info.php) and add this replacement code here.
    Code:
    echo zen_draw_hidden_field ('products_virtual', $pInfo->products_virtual == 1 );
    Then Find this corresponding code and remove
    Code:
              <tr>
                <td class="main"><?php echo TEXT_PRODUCTS_VIRTUAL; ?></td>
                <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . zen_draw_radio_field('products_virtual', '1', $is_virtual) . '&nbsp;' . TEXT_PRODUCT_IS_VIRTUAL . '&nbsp;' . zen_draw_radio_field('products_virtual', '0', $not_virtual) . '&nbsp;' . TEXT_PRODUCT_NOT_VIRTUAL . ' ' . ($pInfo->products_virtual == 1 ? '<br /><span class="errorText">' . TEXT_VIRTUAL_EDIT . '</span>' : ''); ?></td>
              </tr>
    Now that you have the hang of what we did you can go and make similar changes for each item you want to hide from displaying in the product editing form.

    The concept here is that you can't just remove code when dealing with forms, input fields. Instead we set the input to hidden while still delivering the data for processing.
    Last edited by 4cws.com; 7 Sep 2007 at 04:32 PM.

  3. #3
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: removing options from the product page

    hey thanks for your help.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: removing options from the product page

    Be sure you set their values correctly even when using them as hidden fields ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v153 Removing the "Product Model" from the META Title in the product info view?
    By joecooper in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 May 2015, 07:54 PM
  2. Replies: 6
    Last Post: 31 Oct 2008, 04:31 PM
  3. Removing payment options and changing the product view.
    By WarrenS in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Jul 2008, 05:25 PM
  4. Removing product listing from top of the page?
    By Jonsen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Aug 2007, 03:51 PM
  5. Removing the quantity from stock from product info
    By Damunz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jul 2007, 08:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg