:bump:
Is this information still valid?
Thanks![]()
:bump:
Is this information still valid?
Thanks![]()
this seems to solve the problem https://www.zen-cart.com/tutorials/i...hp?article=114
![]()
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.
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!
@Ajeh
thank you man u the king![]()
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.
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