Results 1 to 10 of 154

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Adding New Product_types

    :bump:

    Is this information still valid?

    Thanks

  2. #2
    Join Date
    Apr 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Adding New Product_types


  3. #3
    Join Date
    Nov 2009
    Posts
    12
    Plugin Contributions
    0

    help question Adding New Product_types - error 404

    hello
    im trying to add a new product type to zen 1.3.9a
    for now i only testing admin side and dident done nothing with catalog side.
    the things i have done till now :

    copy admin\includes\languages\english\product_music.php to admin\includes\languages\english\product_mobile.php
    copy admin\includes\modules\product_music
    to admin\includes\modules\product_mobile

    Code:
    INSERT INTO product_types  (type_name, type_handler, type_master_type, allow_add_to_cart) VALUES
    ("Product - Mobile Phone", "product_mobile", 1, "y");
    Code:
    INSERT INTO `product_type_layout` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `product_type_id`, `set_function`) VALUES
    ('Show Model Number', 'SHOW_PRODUCT_MOBILE_INFO_MODEL', '1', 'Display Model Number on Product Info 0= off 1= on', 6, 'zen_cfg_select_drop_down(array(array(''id''=>''1'', ''text''=>''True''), array(''id''=>''0'', ''text''=>''False'')), ');

    when try to add new product to "product - mobile phone"
    i get an error 404 Object not found! .
    http://localhost/demo/admin/product_...on=new_product

    can someone help me solve this ?
    Last edited by davico; 12 May 2010 at 11:45 PM.

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

    Default Re: Adding New Product_types

    Did you make a file:
    /admin/product_mobile.php

    each Product Type has its own main file ...
    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!

  5. #5
    Join Date
    Nov 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Adding New Product_types

    @Ajeh
    thank you man u the king

  6. #6
    Join Date
    Nov 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Adding New Product_types

    all almost done but i have few problems in catalog side its not showing the information
    in file \includes\templates\template_default\templates\tpl_product_mobile_info_display

    the information will show only if i change this:

    $flag_show_product_mobile_info_network == 1
    to
    $flag_show_product_mobile_info_network = 1

    in table product_type_layout

    i have the key:

    ('Show Mobile Network', 'SHOW_PRODUCT_MOBILE_INFO_NETWORK', '1', 'Display Mobile Network on Product Info 0= off 1= on', 6, 6, NULL, '0000-00-00 00:00:00', NULL, 'zen_cfg_select_drop_down(array(array(''id''=>''1'',''text''=>''True''),array('' id''=>''0'',''text''=>''False''))')

    my guess the problem is in file:
    includes\modules\pages\product_mobile_info\main_template_vars

    $$flag_show_product_mobile_info_network = zen_get_show_product_switch($_GET['products_id'], 'mobile_network');

    where the mobile_network is it should be same as one of the define files or some other file or var or something?


    can someone help me figure it up?
    Last edited by davico; 16 May 2010 at 01:15 PM.

  7. #7
    Join Date
    Nov 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Adding New Product_types

    ok i answer myself

    i got one extra $ in
    $$flag_show_product_mobile_info_network

    and yes the mobile_network is the var from :

    main_template_vars_product_type

 

 

Similar Threads

  1. Is there a way of adding a product but stopping it from adding to new products?
    By philpalmerdevon in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Jan 2009, 02:07 PM
  2. When adding new parts, adding part number to preview screen
    By GTHENRY in forum Basic Configuration
    Replies: 1
    Last Post: 18 Jun 2008, 07:53 PM
  3. product_types.php details
    By MarkRS in forum Setting Up Categories, Products, Attributes
    Replies: 12
    Last Post: 30 Sep 2006, 06:40 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