70 ECSHOP Cart Modification Tips and Tricks

1. How to Change the “Welcome to Our Store” Text
Answer: In the languages/zh_cn/common.php file, find $_LANG['welcome']=’欢迎惠临本店’; and modify it to the text you need.

2. How to Modify the Homepage “Hot Search Keywords”
Answer: Backend – System Settings – Shop Settings – Display Settings – Homepage Search Keywords. Modify the content and save.

3. How to Change the Homepage Title “Powered by ECShop”
Answer: In includes/lib_main.php, find $page_title=$GLOBALS['_CFG']['shop_title'].’-’.’Powered by ECShop’; and change it to $page_title=$GLOBALS['_CFG']['shop_title']; that will do it.

4. How to Remove the Query Info Display at the Bottom of ECShop
Answer: In library/page_footer.lbi, delete {insert name=’query_info’}

5. How to Post a Homepage Announcement
Answer: Backend – System Settings – Shop Settings – Shop Info – Shop Announcement. Fill in the announcement you need.

6. How to Post Site News
ECShop manages articles very flexibly, allowing you to manage both help information and site articles/site news.
(1) Adding Article Help Information
Backend – Article Categories – Add Article Category – (Select) Shop Help Category – Fill in the category name xxx
Backend – Article List – Add Article – Select the Shop Help Category (xxx) – Publish the article
(2) Adding Site Information and Site News
Backend – Article Categories – Add Article Category – Add a top-level article category named news
Backend – Article List – Add Article – Select the category news – Publish the article

7. How to Change the Website Logo
Answer: Replace the image at /themes/default/images/logo.gif with your own logo image.

8. How to Modify Product Image Sizes
Answer: In ecshop/themes/default/style.css,
find {width:100px;height:100px;border:4px solid#eef8ff;margin-bottom:4px;}
This controls the product image sizes.

9. How to Manage the Homepage Flash Player
Answer: Backend – Flash Player Management – Add Custom, where you can upload and control the image positions.

10. How to Change the “more” Small Image in the Homepage “Best Sellers” Section
Answer: In the template file library/recommend_best.lbi, inside the diva href=”./search.php?intro=best”
img src=”images/more.gif”//a/div
replace the more.gif image with the image you want, or replace the image with the text you need.

11. How to Change the “more” Small Image in the Homepage “New Arrivals” Section
Answer: In the template file library/recommend_new.lbi, inside the diva href=”./search.php?intro=new”
img src=”images/more.gif”//a/div modify more.gif to the image you need, or replace it with the text you need.

12. How to Manually Modify the Payment Method Sort Order
Answer: In the database, find the payment table. The pay_order field controls the sort order. If you want payment method A to appear first, you need to set its field value slightly larger.

13. How to Remove the Product Click Count on the ECShop Product Detail Page
Answer: In the template files, open goods.dwt and delete strong{$lang.goods_click_count}:/strong{$goods.click_count}

14. Which File is the Homepage Template, and What Are the Header and Footer Template File Names?
Answer: The homepage template is index.dwt, the header template is library/page_header.lbi, and the footer file is library/page_footer.lbi

15: How to Change the “This Shop Has Suspended Registration” Text When Registration is Closed
Answer: In languages/zh_cn/common.php, find $_LANG['shop_register_closed']=’该网店暂停注册’; Modify that text.

16: In Which File is the Script for the Consignee Detailed Info JS Pop-up Prompt?
Answer: languages/zh_cn/shopping_flow.php [e.g., $_LANG['flow_js']['country_not_null']=’请您选择收货人所在国度!’;]

17: Where is the Website Announcement Code Segment?
Answer: In the index.php file, $smarty-assign(‘shop_notice’,$_CFG['shop_notice']); // The shop announcement code segment controls the announcement

18: Where to Set the Display Quantity for “Hot Products” and “Best Sellers” on the Homepage?
Answer: In ECShop, to display richer purchase information on the homepage, you can set the quantity of hot products, promotions, and new arrivals based on your industry’s characteristics and purchasing behavior analysis, making the layout more reasonable and enhancing user experience. Setting the quantity of hot products on the ECShop homepage: Template Management – Set Template – Hot Products (modify its display quantity). Change the 10 below to the quantity you need; this is for hot products. Setting the quantity of best sellers on the ECShop homepage: Template Management – Set Template – Best Sellers (modify its display quantity). Change the 10 below to the quantity you need; this is for best sellers. The above covers setting best sellers, new arrivals, and hot products in ECShop.

19: Where to Set the Display Quantity for “New Arrivals” on the Homepage?
Answer: Setting the quantity of new products on the ECShop homepage: Template Management – Set Template – New Arrivals (modify its display quantity). Change the 10 below to the quantity you need; this is for new arrivals.

20: How to Modify Product Inventory
Answer: Product Management – Product List – Select (Inventory), then edit.

21: How to Modify the ECShop Table Prefix
Answer: Modify $prefix=”ecs_”; in data/config.php, changing ecs_ to the prefix you need. Then, in the database, change the table names accordingly.<<>>
Change ecs_goods to ”xxx_goods”;

22: How to Remove the Blank Space Below the Homepage Flash
Setting up promotional products and displaying brands in ecShop. Recently, many users who exchange ecshop templates with me often ask the same question: how to display product brands,
how to display promotional products, and why there is a blank space below the homepage flash and how to remove it? First, the two blank areas below the ecShop homepage flash: the first one is for displaying promotional products, and the right one is for displaying brands.
(1) Displaying Promotional Products
Backend – Product Management – Product List – Edit Product – General Info – Check “Promotion Price” – Set Promotion Period – Save – Clear Cache
The blank space below the frontend flash will be filled!
(2) How to Display Product Brand List
Product Management – Product Brands – Add Brand X – Save
Add products under that Brand X
Product Management – Add New Product – Select Product Brand – Save – Clear Cache
Check the homepage, you’ll find! Both blank spaces below the homepage flash are filled.

23: How to Modify ecshop Navigation Bar Names
Answer: Backend – System Settings – Custom Navigation Bar – Edit – Modify Navigation Bar Name

24: How to Display the New Products Section in the Navigation Bar?
Answer: Backend – System Settings – Custom Navigation Bar – Add Custom Navigation, enter ”search.php?intro=new” in the link field

25: How to Change the ecshop Template
Answer: For example, if the new template is ‘test’, you place it under the themes directory, forming the path themes/test, then in Backend – Template Management – Template Selection, activate your new template and it’s done.

26: What are the Image Types Related to ecshop Products?
Answer: $goods_img=”; //Initialize product image
$goods_thumb=”; //Initialize product thumbnail
$original_img=”; //Initialize original image
$old_original_img=”; //Initialize old original image

27: How to Set ‘New’, ‘Best’, ‘Hot’ Products on the ecshop Homepage
Answer: Displaying Best, New, and Hot products on the ecShop homepage. Analyzing a mature B2C e-commerce system, a good B2C online store program should have a good area to showcase the latest, hottest, and best products on the homepage. Displaying best recommendations, new arrivals, and hot-selling products on the ecshop homepage undoubtedly gives ecShop users more areas to showcase their enthusiasm. How to set ecShop to display best recommendations, new arrivals, and hot-selling products. Backend – Product Management – Product List
(1) Set ecshop Homepage Best Products
On that product list page, click under “Best”
(2) Set ecshop Homepage New Products
On that product list page, click under “New”
(3) Set ecshop Hot-Selling Products
On that product list page, click under ”Hot”

28: How to Modify the Display Order of “Payment Methods”
Answer: Open the ecs_payment table. If you want a method to appear first, set its pay_order value smaller. For example, to make “Alipay” rank first and “99Bill” rank second, you can set Alipay pay_order=1, and 99Bill pay_order=2

29: Points on the Product Detail Page
Answer: The points on the detail page are controlled in the template by strong{$lang.goods_give_integral}/strong font{$goods.give_integral}{$points_name}/font

30: How to Modify Product Thumbnail Size
Answer: Backend – System Settings – Shop Settings – Display Settings – Thumbnail Width. Of course, you can also set the Thumbnail Height

31: How to Set ecshop Currency Format and Date Format.
Answer: Backend – System Settings – Shop Settings – Display Settings – Currency Format (¥%s yuan) or Date Format (Y-m-d H:i:s)

32: How to Enable and Disable the ecshop Login Captcha
Answer: Backend – System Settings – Captcha Management, here you can manage various captchas, enabling and disabling them

33: How to Modify the Birth Year Range in the Personal Account Information
{html_select_date field_order=YMD prefix=birthday start_year=-60end_year=+1display_days=true month_format=%m day_value_format=d time=$profile.birthday}start_year=-60 means starting from today, going back 60 years. end_year+=1 means starting from this year, going forward one year. That indicates the range. If you need a larger range, modify them to be larger. For example, start_year=-100, end_year+=100. That range should be big enough. Hehe

34: How to Include a Template within a Template in ecshop
Answer: Checking includes/cls_template.php, you’ll find that the PHP include method still works in Smarty. {include file=’library/dd.lbi’} So, using the include method, you can include an lbi within an lbi in ecshop

35: How to Adjust the ecshop Flash Player Playback Speed
Answer: //0xffffff: text color|1: text position|0x0066ff: text background color|60: text background transparency|0xffffff: button text color|0x0066ff: button default color|0x 000033: button current color|8: auto-play time (seconds)|2: image transition effect|1: whether to show buttons|_blank: open window
var swf_config=”|2|||0xFFFFFF|0xFF6600||2|3|1|_blank” The above shows that the 2 earlier controls the speed. If you feel it’s too fast, change the 2 to a number larger than 2. This will slow down the ecshop flash player speed

36: How to Manage ecshop 2.7.0 Homepage Rotating Images
Answer: Backend – System Settings – Homepage Main Ad Management – System Default, Custom. Here, you can manage the homepage flash images

37. Which Field Controls Discounts in ecshop Orders?
Answer: In the order_info table, the discount field controls the discount.

38: How to Display the Sales Ranking:
Answer: To display the sales ranking, first you need to have completed orders, and those orders must be finished, and the stock of the products in those orders must not be zero. If the stock is zero, they still won’t be displayed.

39: How to Fix the Error Notice: Undefined variable: _LANG in D:/cms/new/includes/init.php online 179
Answer: Carefully check if the language pack file require(ROOT_PATH.’languages/’.$_CFG[‘lang’].’/common.php’); exists or is missing

40: Which Folder Contains the ecshop Flash Player Files and Images?
Answer: The flash player program is in data/flashdata, and the images are in data/afficheimg

50: What to do if you accidentally delete the install.lock file in ECSHOP
Answer: It’s very simple. In the data directory, just create a file named install.lock. You don’t even need any content inside.

51: How to set up the printing template for shipping labels
Answer: System Settings – Shipping Methods – Edit Print Template

52: How to delete “Registered User” and “VIP User” prices in ECSHOP
Answer: Member Management – Member Ranks – Delete or hide the prices for the corresponding member rank

53: How to adjust the number of products displayed per page in the category list
Answer: Backend – System Settings – Store Settings – Display Settings – Number of Products per Category Page

54: Where to modify the text for the User Center, Product Recommendations, and Affiliate Details
Answer: Modify the content in $_LANG['affiliate_intro'][0] within the languages/zh_cn/user.php file

55: How to modify the text in the shopping cart, “You have 0 items in your cart, total amount ¥0.00”
Answer: In the languages/zh_cn/common.php file, modify $_LANG['cart_info']=’You have %d items in your cart, total amount %s.’; change the text to what you need

56: How to control the file encoding in ECSHOP.
Answer: header(“Content-type:text/html;charset=UTF-8″);

57: How to modify and adjust the left sidebar menu in the ECSHOP User Center
Answer: In the template file library/user_menu.lbi. Modify or remove some menu items as needed.

58: How to set the number of latest news articles on the homepage
Answer: Backend – System Settings – Shop Settings – Display Settings – Number of Latest Articles Displayed

59: How to use the ‘and’ syntax in ECSHOP Smarty templates
Answer: {if$_name.iteration 1and($_name.iteration-1)Nq 0}

60: In which table are the points mall products stored?
Answer: The ecs_exchange_goods table stores the product information for the points mall.

61: How to set the product price format in the ECSHOP backend
Answer: Backend – System Settings – Shop Settings – Display Settings – Product Price Display Rules

62: How to remove the bottom query info in ECSHOP
Answer: In the template file library/page_footer.lbi, delete {insert name=’query_info’}

63: How to add third-party tracking code to the website footer
Answer: Backend – System Settings – Basic Settings – Tracking Code. Click Save.

64: Where is the code for the page title and breadcrumb navigation?
Answer: Inside the assign_ur_here() function in includes/lib_main.php

65: How to manually adjust a member’s rank
Answer: Backend – Member Management – Member List – Select a member – View Account Details – Adjust Member Account – Rank Points Account (increase or decrease) by the corresponding points, adjusting to the points needed for the desired member rank. This achieves the effect of manually adjusting a member’s rank.

66: How to change the display size of the homepage Flash in ECSHOP
Answer: In the template file, find the script type=”text/javascript”
var swf_width=534;
var swf_height=218;
/script
Just modify these values.

67: How to modify the notification message when the shop is closed?
Answer: In languages/zh_cn/common.php, change the Chinese text $_LANG['shop_closed']=’Our shop is currently taking inventory. Please come back later.’; to the text you want.

68: How to get the value of a select element using JavaScript
Answer: var t=document.getElementByIdx_x(“typeController”);alert(t.options[t.selectedIndex].value);

69: Make ECSHOP attribute display in a dropdown format
Answer: Backend – System Settings – Store Settings – Product Display Settings, the sixth line, Product Attribute Display Style: Radio Button / Dropdown List

70: How to control the review moderation status
Answer: Backend – System Settings – Store Settings – Basic Settings – User Review Requires Moderation

71: In which table are the time and information for the ECSHOP Dutch Auction stored?
Answer: The ecs_snatch_log table stores the bidding time, price, and user ID. The bid time is bid_time.

Leave a Comment

Your email address will not be published.