ECshop secondary development Template Tutorial 4. P: What is p in the first classification? Php-assign (cat_goods,-_ var [cat_goods_1]);? Php-assign (goods_cat,-_ var [goods_cat_1]);? Php-fetch (librarycat_goods.lbi );? P for the second classification
Select template, select bluesky, and select OK. choose Template management> set Template> Product under category (click the number before the product under category, and then select "middle of Main Region". by default, the product category can be selected at will. "enter the number of displayed items and click confirm to submit the items. (Note: Some friends may fail to submit the items, because of permission issues, you need to change the template permission of bluesky, and then submit it again ).
The first
Assign ('cat _ goods ',-> _ var ['cat _ goods_1']);?>
Assign ('goods _ cat',-> _ var ['goods _ cat_1 ']);?>
Fetch ('Library/cat_goods.lbi ');?>
Of the second category
Assign ('cat _ goods ',-> _ var ['cat _ goods_3']);?>
Assign ('goods _ cat',-> _ var ['goods _ cat_3 ']);?>
Fetch ('Library/cat_goods.lbi ');?>
. Url} "> {. name | escape: html}
. Thumb} "border =" 0 "alt =" {. name | escape: html} "=" thumb "/>
. Url} "title =" {. name | escape: html} "> {. short_name | escape: html} . Promote_price }= "goods-price"> {. promote_price} . Shop_price }= "goods-price"> {. shop_price} |
Set template
3. What is the size of the homepage image? Why is the image so distorted after the image is clicked and zoomed in? How to make images
Why? Php-assign ('cat _ goods ',-_ var ['cat _ goods_1']);? ? Php-assign ('goods _ cat',-_ var ['goods _ cat_1 ']);? ? Php-fetch ('Library/cat_goods.lbi ');? P of the second category...