您好,欢迎访问三七文档
请教网站上面的zencart!TheArtofE-commerce怎样去掉shoxnz修改\includes\languages\english\meta_tags.php(可更改关键词)//pagetitledefine('TITLE','ZenCart!');//SiteTaglinedefine('SITE_TAGLINE','TheArtofE-commerce');//CustomKeywordsdefine('CUSTOM_KEYWORDS','ecommerce,opensource,shop,onlineshopping');------------------------------------------------------------------------------------------------------------------页脚修改代码/domains/sevenday.linuxus.idcice.net/public_html/includes/languages/pure_orange_free(模板名称)Eenglish------------------------------------------------------------------------------------------------------------------LOGO修改代码使用原来的LOGO获取功能时LOGO图片的指定与Alt属性及大小的修改在当前模板对应的语言文件夹下的header.php里(/includes/languages/english/模板名称/header.php)------------------------------------------------------------------------------------------------------------------如何在首页显示FeatureProducts,但是关闭newproducts和MonthlySpecialsForMarch,像这个站一样的效果商店设置-商品索引-在首页上显示特价商品,设置为0------------------------------------------------------------------------------------------------------------------\includes\templates\(your_template_name)\templates\tpl_product_info_display.php问题1:如何将产品详细页的addtocart按钮移动到产品的价格旁边?修改tpl_product_info_display.php,复制!--bofAddtoCartBox--?phpif(CUSTOMERS_APPROVAL==3andTEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM==''){//donothing}else{??php$display_qty=(($flag_show_product_info_in_cart_qty==1and$_SESSION['cart']-in_cart($_GET['products_id']))?'p'.PRODUCTS_ORDER_QTY_TEXT_IN_CART.$_SESSION['cart']-get_quantity($_GET['products_id']).'/p':'');if($products_qty_box_status==0or$products_quantity_order_max==1){//hidethequantityboxanddefaultto1$the_button='inputtype=hiddenname=cart_quantityvalue=1/'.zen_draw_hidden_field('products_id',(int)$_GET['products_id']).zen_image_submit(BUTTON_IMAGE_IN_CART,BUTTON_IN_CART_ALT);}else{//showthequantitybox$the_button=PRODUCTS_ORDER_QTY_TEXT.'inputtype=textname=cart_quantityvalue='.(zen_get_buy_now_qty($_GET['products_id'])).'maxlength=6size=4/br/'.zen_get_products_quantity_min_units_display((int)$_GET['products_id']).'br/'.zen_draw_hidden_field('products_id',(int)$_GET['products_id']).zen_image_submit(BUTTON_IMAGE_IN_CART,BUTTON_IN_CART_ALT);}$display_button=zen_get_buy_now_button($_GET['products_id'],$the_button);?divid=cartAdd?phpecho$display_qty;echo$display_button;?/div?php}//displayqtyandbutton??php}//CUSTOMERS_APPROVAL==3?!--eofAddtoCartBox--然后粘贴到!--eofProductPriceblock--下面,就OK了。问题2:首页如何加addtocart的问题,解决办法:new_products.php可以在$products_price);的);前加入:.'ahref='.zen_href_link(FILENAME_PRODUCTS_NEW,zen_get_all_get_params(array('action')).'action=buy_now&products_id='.$new_products-fields['products_id']).'imgsrc=/images/buttons/button_buy_now.gif/a'------------------------------------------------------------------------------------------------------------------贝宝支付模块设置我想在后台定单里出现产品图片,怎么做?、打开admin目录里的orders.php文件,查找:for($i=0,$n=sizeof($order-products);$i$n;$i++){echo'trclass=dataTableRow'.\n.'tdclass=dataTableContentvalign=topalign=right'在后面添加:.'imgsrc=../images/'.$order-products[$i]['image'].'align=top'2、打开admin/includes/classes目录里的order.php文件,查找:$orders_products=$db-Execute(selectorders_products_id,products_name,products_model,products_price,products_tax,products_quantity,final_price,onetime_charges,product_is_freefrom.TABLE_ORDERS_PRODUCTS.whereorders_id='.(int)$order_id.');替换为:$orders_products=$db-Execute(selecto.orders_products_id,o.products_id,o.products_name,o.products_model,o.products_price,o.products_tax,o.products_quantity,o.final_price,o.onetime_charges,o.product_is_free,p.products_id,p.products_imagefrom.TABLE_ORDERS_PRODUCTS.o,.TABLE_PRODUCTS.pwhereo.orders_id='.(int)$order_id.'ando.products_id=p.products_id);查找:name'=$orders_products-fields['products_name'],在后面添加:'image'=$orders_products-fields['products_image'],3、完成。-----------------------------------------------------------------------------------------------------------------------------------------求助:开启搜索优化后,点击导航栏上按钮,仍然有index.php?main_pag网站背景图的替换要设计一个好的网站要考虑很多因素,只有在很多细节上下功夫,你的网站才可以设计的很美观。要替换网站背景图我们首先要找到替换背景图的地址:includes\templates\yourtemplates\css\stylesheet.css找到文件后下载下来,然后用dreamweaver打开,好像有点啰嗦了。输入body进行搜索,会找到一串代码,如下:body{margin:0px;font-family:arial,helvetica,sans-serif;font-size:70%;color:#455;background:url(../images/picture.gif)topcenterrepeatfixed;}替换下颜色的路径,就可以变换网站背景图有的模版不一样,可能会找到的代码如下:body{margin:0px;font-family:verdana,arial,helvetica,sans-serif;font-size:65%;color:#000000;background-color:#e2fed3;}aimg{border:none;}不同点在颜色那行,所以可以把颜色这行代码替换掉,如下:body{margin:0;font-family:verdana,arial,helvetica,sans-serif;font-size:65%;color:#000000;bac
本文标题:zencart模版
链接地址:https://www.777doc.com/doc-4350607 .html