Forums / Basic Configuration / removing options from the product page

removing options from the product page

Locked

Views: 1,490

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Jul 2007, 10:53 AM
#1
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

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..

7 Sep 2007, 3:26 PM
#2
4cws_com avatar

4cws_com

New Zenner

Join Date:
Sep 2007
Posts:
7
Plugin Contributions:
0

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.

echo zen_draw_hidden_field ('products_virtual', $pInfo->products_virtual == 1 );

Then Find this corresponding code and remove

          <tr>
            <td class="main"><?php echo TEXT_PRODUCTS_VIRTUAL; ?></td>
            <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_radio_field('products_virtual', '1', $is_virtual) . ' ' . TEXT_PRODUCT_IS_VIRTUAL . ' ' . zen_draw_radio_field('products_virtual', '0', $not_virtual) . ' ' . 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.

26 Sep 2007, 1:42 PM
#3
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: removing options from the product page

hey thanks for your help.

26 Sep 2007, 2:36 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!