Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007
    Location
    italy
    Posts
    90
    Plugin Contributions
    2

    Default change default values when adding products:

    I'm adding thousands of products by hand,
    and I desire to change the default value of some fields, like:
    ASK FOR PRICE: YES (by default)
    TAX CLASS: TAXABLE GOOD (by default)

    I think it is easy, but I don't know in which file put my hands and which line..

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

    Default Re: change default values when adding products:

    For the Tax Class default you can set that in the Product Type itself by going to Catalog ... Product Type ... EDIT LAYOUT ...
    Product Price Tax Class Default - When adding new products?
    What should the Product Price Tax Class Default ID be when adding new products?
    For Call for Price, you would need to edit the proper product type file for the:
    collect_info.php

    These are in the:
    /admin/includes/modules/YOUR_PRODUCT_TYPE/collect_info.php
    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!

  3. #3
    Join Date
    Mar 2007
    Location
    italy
    Posts
    90
    Plugin Contributions
    2

    Default Re: change default values when adding products:

    super! I have just done easily the first step, but about the ASK FOR PRICE seted in YES by default, what I must change in this code?

    <td class="main"><?php echo TEXT_PRODUCT_IS_CALL; ?></td>

    <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . zen_draw_radio_field('product_is_call', '1', ($in_product_is_call==1)) . '&nbsp;' . TEXT_YES . '&nbsp;&nbsp;' . zen_draw_radio_field('product_is_call', '0', ($in_product_is_call==0)) . '&nbsp;' . TEXT_NO . ' ' . ($pInfo->product_is_call == 1 ? '<span class="errorText">' . TEXT_PRODUCTS_IS_CALL_EDIT . '</span>' : ''); ?></td>

    </tr>

 

 

Similar Threads

  1. Error when adding new option values
    By rdhoke in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 28 Dec 2012, 10:21 PM
  2. Choosing a Default Date when adding new products?
    By IronTank in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 11 Jul 2009, 07:24 AM
  3. Tax values are calculated wrong when adding products
    By marksu in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 6
    Last Post: 18 Nov 2008, 09:48 PM
  4. Text Editor by default in HTML when adding products
    By matteoraggi in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 26 Oct 2007, 10:43 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