第一部分,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)
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 = ”)
第四部分,购物车与登录相关函数
zen_session_unregister($variable)
zen_session_start()
zen_session_save_path($path = ”)
zen_session_register($variable)
zen_session_recreate()
zen_session_name($name = ”)
zen_session_is_registered($variable)
zen_session_id($sessid = ”)
zen_session_destroy()
zen_session_close()
zen_get_box_id($box_id)
zen_get_attributes_valid($product_id, $option, $value)
zen_get_attributes_type($check_attribute)
zen_get_attributes_sort_order($products_id,$options_id, $options_values_id)
zen_get_attributes_quantity_price($check_what, $check_for)
zen_get_attributes_qty_prices_onetime($string, $qty)
zen_get_attributes_price_final_onetime($attribute,$qty=1, $pre_selected_onetime)
zen_values_name($values_id)
zen_validate_password($plain, $encrypted)
zen_has_product_attributes_values($products_id)
zen_has_product_attributes_downloads_status($products_id)
zen_has_product_attributes($products_id, $not_readonly = ‘true’)
zen_has_category_subcategories($category_id)
zen_gv_account_update($c_id, $gv_id)
zen_get_zone_name($country_id, $zone_id, $default_zone)
zen_get_zone_code($country_id, $zone_id, $default_zone)
zen_get_word_count_price($string, $free=0, $price)
zen_get_word_count($string, $free=0)
zen_get_uprid_OLD($prid, $params)
zen_get_uprid($prid, $params)
zen_get_upcoming_date_range()
zen_get_top_level_domain($url)
zen_get_tax_rate($class_id, $country_id = -1, $zone_id = -1)
zen_get_tax_description($class_id, $country_id = -1, $zone_id = -1)
zen_set_specials_status($specials_id, $status)
zen_set_salemaker_status($sale_id, $status)
zen_set_field_length($tbl, $fld, $max=70)
zen_set_featured_status($featured_id, $status)
第五部分,模板解析函数
zen_prepare_country_zones_pull_down($country_id = ”)
zen_parse_search_string($search_str = ”, &$objects)
zen_parse_salemaker_categories($clist)
zen_parse_input_field_data($data, $parse)
zen_parse_category_path($cPath)
zen_output_string_protected($string)
zen_output_string($string, $translate = false, $protected = false)
zen_output_generated_category_path($id, $from = ‘category’)
zen_options_name($options_id)
zen_decode_specialchars($string)
zen_word_count($string, $needle)
zen_validate_email($email)
zen_update_salemaker_product_prices($salemaker_id)
zen_update_products_price_sorter($product_id)
zen_update_banner_display_count($banner_id)
zen_update_banner_click_count($banner_id)
zen_truncate_paragraph($paragraph, $size = 100, $word = ‘ ‘)
zen_trunc_string($str = “”, $len = 150, $more = ‘true’)
zen_string_to_int($string)
zen_start_specials()
zen_start_salemaker()
zen_start_featured()
zen_show_category($counter,$ii)
zen_setcookie($name, $value = ”, $expire = 0, $path = ‘/’, $domain = ”, $secure = 0)
zen_set_banner_status($banners_id, $status)
zen_sanitize_string($string)
zen_run_normal()
zen_row_number_format($number, $filler=’0′)
zen_round($value, $precision)
zen_redirect($url, $httpResponseCode = ”)
zen_random_select($query)
zen_rand($min = null, $max = null)
zen_products_lookup($product_id, $what_field = ‘products_name’, $language = ”)
zen_products_id_valid($valid_id)
zen_product_in_parent_category($product_id, $cat_id, $parent_cat_id)
zen_not_null($value)
zen_display_tax_value($value, $padding = TAX_DECIMAL_PLACES)
zen_display_banner($action, $identifier)
zen_decode_specialchars($string)
zen_db_prepare_input($string)
zen_draw_pull_down_menu($name, $values, $default = ”, $parameters = ”, $required = false)
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’, $parameters = ”)
zen_draw_file_field($name, $required = false)
zen_draw_checkbox_field($name, $value = ”, $checked = false, $parameters = ”)
zen_db_perform($table, $data, $action = ‘insert’, $parameters = ”, $link = ‘db_link’)
zen_date_short($raw_date)
zen_date_long($raw_date)
zen_date_diff($date1, $date2)
zen_mail_archive_write($to_name,)
zen_is_leap_year($year)
zen_image_submit($image, $alt = ”, $parameters = ”, $sec_class = ”)
zen_image_button($image, $alt = ”, $parameters = ”, $sec_class = ”)
zen_image_OLD($src, $alt = ”, $width = ”, $height = ”, $parameters = ”)
zen_image($src, $alt = ”, $width = ”, $height = ”, $parameters = ”)
zen_html_entity_decode($given_html, $quote_style = ENT_QUOTES)
zen_href_params($page = ”, $parameters = ”)
zen_href_link(FILENAME_LOGIN,”,’SSL’)
zen_hide_session_id()
zen_field_type($tbl, $fld)
zen_field_length($tbl, $fld)
zen_ez_pages_link($ez_pages_id, $ez_pages_chapter)
zen_expire_specials()
zen_expire_salemaker()
zen_expire_featured()
zen_expire_banners()
zen_exit()
zen_encrypt_password($plain)
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_db_prepare_input($string)
zen_db_perform($table, $data, $action = ‘insert’, $parameters = ”, $link = ‘db_link’)
zen_db_output($string)
zen_db_input($string)
第七部分,其他信息调用
zen_get_subcategories(&$subcategories_array, $parent_id = 0)
zen_get_shipping_enabled($shipping_module)
zen_get_prid($uprid)
zen_get_path($current_category_id = ”)
zen_get_parent_categories(&$categories, $categories_id)
zen_get_new_date_range($time_limit = false)
zen_get_multiple_tax_rates($class_id, $country_id, $zone_id, $tax_description=array())
zen_get_module_directory($check_file, $dir_only = ‘false’)
zen_get_manufacturers($manufacturers_array = ”, $have_products = false)
zen_get_letters_count_price($string, $free=0, $price)
zen_get_letters_count($string, $free=0)
zen_get_ip_address()
zen_get_info_page($zf_product_id)
zen_get_index_filters_directory($check_file, $dir_only = ‘false’)
zen_get_generated_category_path_rev($this_categories_id)
zen_get_generated_category_path_ids($id, $from = ‘category’)
zen_get_file_directory($check_directory, $check_file, $dir_only = ‘false’)
zen_get_discount_qty($product_id, $check_qty)
zen_get_discount_calc($product_id, $attributes_id = false, $attributes_amount = false, $check_qty= false)
zen_get_customer_validate_session($customer_id)
zen_get_country_zones($country_id)
zen_get_country_name($country_id)
zen_get_country_list($name, $selected = ”, $parameters = ”)
zen_get_countries_with_iso_codes($countries_id)
zen_get_countries($countries_id = ”, $with_iso_codes = false)
zen_get_configuration_key_value_layout($lookup, $type=1)
zen_get_configuration_key_value($lookup)
zen_get_cc_enabled($text_image = ‘TEXT_’, $cc_seperate = ‘ ‘, $cc_make_columns = 0)
zen_get_buy_now_qty($product_id)
zen_get_buy_now_button($product_id, $link, $additional_link = false)
zen_get_attributes_price_final($attribute, $qty = 1, $pre_selected, $include_onetime = ‘false’)
zen_get_attributes_price_factor($price, $special, $factor, $offset)
zen_get_attributes_options_sort_order($products_id, $options_id, $options_values_id, $lang_num = ”)
zen_get_all_get_params($exclude_array = ”, $search_engine_safe = true)
zen_get_address_format_id($country_id)
zen_generate_category_path($id, $from = ‘category’, $categories_array = ”, $index = 0)
zen_customer_greeting()
zen_currency_exists($code, $getFirstDefault = false)
zen_create_sort_heading($sortby, $colnum, $heading)
zen_create_random_value($length, $type = ‘mixed’)
zen_create_coupon_code($salt=”secret”, $length = SECURITY_CODE_LENGTH)
zen_count_shipping_modules()
zen_count_products_in_category($category_id, $include_inactive = false)
zen_count_payment_modules()
zen_count_modules($modules = ”)
zen_count_customer_orders($id = ”, $check_session = true)
zen_count_customer_address_book_entries($id = ”, $check_session = true)
zen_convert_linefeeds($from, $to, $string)
zen_clean_html($clean_it, $extraTags = ”)
zen_class_exists($class_name)
zen_checkdate($date_to_check, $format_string, &$date_array)
zen_check_url_get_terms()
zen_check_stock($products_id, $products_quantity)
zen_check_show_prices()
zen_category_tree($product_type = “all”)
zen_categories_lookup($categories_id, $what_field = ‘categories_name’, $language = ”)
zen_calculate_tax($price, $tax)
zen_build_html_email_from_template($module=’default’, $content=”)
zen_build_banners_group($selected_banners)
zen_browser_detect($component)
zen_break_string($string, $len, $break_char = ‘-‘)
zen_banner_exists($action, $identifier)
zen_back_link($link_only = false)
zen_array_to_string($array, $exclude = ”, $equals = ‘=’, $separator = ‘&’)
zen_address_label($customers_id, $address_id = 1, $html = false, $boln = ”, $eoln = “\n”)
zen_address_format($address_format_id, $address, $html, $boln, $eoln)
zen_add_tax($price, $tax)
zen_activate_banners()
zen_SiteMapTree($load_from_database = true)