以下是我整理的一些zencart函数几乎包含整个系统所有函数,估计是唯一这么齐全的版本,当要做功能时尽量先看看这里有没有,这样会会方便很多,看函数名就知道什么用了哦
用这些函数,可以开发出任意功能
第一部分,products函数,用来调用一切产品的信息
zen_get_products_virtual($lookup) 
zen_get_products_stock($products_id) 
zen_get_products_special_price($product_id, $specials_price_only=false) 
zen_get_products_sale_discount_type($product_id = false, $categories_id = false, $return_value = false) 
zen_get_products_sale_discount($product_id = false, $categories_id = false, $display_type = false) 
zen_get_products_quantity_order_units($product_id) 
zen_get_products_quantity_order_min($product_id) 
zen_get_products_quantity_order_max($product_id) 
zen_get_products_quantity_mixed($product_id) 
zen_get_products_quantity_min_units_display($product_id, $include_break = true, $shopping_cart_msg = false) 
zen_get_products_quantity_discount_mixed($product_id, $qty) 
zen_get_products_qty_box_status($product_id) 
zen_get_products_price_is_priced_by_attributes($products_id) 
zen_get_products_price_is_free($products_id) 
zen_get_products_price_is_call($products_id) 
zen_get_products_new_timelimit($time_limit = false) 
zen_get_products_name($product_id, $language = '') 
zen_get_products_manufacturers_name($product_id) 
zen_get_products_manufacturers_image($product_id) 
zen_get_products_manufacturers_id($product_id) 
zen_get_products_image($product_id, $width = SMALL_IMAGE_WIDTH, $height = SMALL_IMAGE_HEIGHT) 
zen_get_products_display_price($products_id) 
zen_get_products_discount_price_qty($product_id, $check_qty, $check_amount=0) 
zen_get_products_description($product_id, $language = '') 
zen_get_products_category_id($products_id) 
zen_get_products_base_price($products_id) 
zen_get_products_allow_add_to_cart($lookup) 
zen_get_products_actual_price($products_id) 
zen_get_product_types_to_category($lookup) 
zen_get_product_path($products_id) 
zen_get_product_is_always_free_shipping($lookup) 
zen_product_in_category($product_id, $cat_id) 
第二部分,目录函数,用来调用一切目录的信息
zen_get_category_name($category_id, $fn_language_id) 
zen_get_category_description($category_id, $fn_language_id) 
zen_get_categories_products_list($categories_id)
zen_get_categories_parent_name($categories_id) 
zen_get_categories_name_from_product($product_id) 
zen_get_categories_name($who_am_i) 
zen_get_categories_image($what_am_i) 
zen_get_categories($categories_array = '', $parent_id = '0', $indent = '', $status_setting = '') 
第三部分,HTML表单函数,用来构建表单
zen_draw_textarea_field($name, $width, $height, $text = '~*~*#', $parameters = '', $reinsert_value = true) 
zen_draw_separator($image = 'true', $width = '100%', $height = '1') 
zen_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') 
zen_draw_radio_field($name, $value = '', $checked = false, $parameters = '') 
zen_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) 
trunc函数是什么
zen_draw_products_pull_down_categories_attributes($name, $parameters = '', $exclude = '') 
zen_draw_products_pull_down_categories($name, $parameters = '', $exclude = '') 
zen_draw_products_pull_down_attributes($name, $parameters = '', $exclude = '') 
zen_draw_products_pull_down($name, $parameters = '', $exclude = '') 
zen_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') 
zen_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) 
zen_draw_hidden_field($name, $value = '', $parameters = '') 
zen_draw_form($name, $action, $method = 'post','onsubmit="return checkout_enroll_submit();" id="checkout_create_account_form"') 
zen_draw_file_field($name, $required = false) 
zen_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') 

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。