ECshop secondary development Template Tutorial 4_PHP tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.