The supply (sell) itself has a tag field. I don’t know why it was officially castrated in the background. Now we add this function

1. Find modulesell dmin emplateedit.tpl.php
Add
on line break about line 47

* Keywords (Tag)
 


In this way, there is a general backend, as shown in the picture:

2. Find modulesell dminindex.inc.php

Line 27 finds "title" and replaces , 'title', 'keyword'
Line 28 finds ", 'title'," and replaces , 'title', 'tag',


3. Open modulesellshow.htm.php

About 28 lines of newlines added
$keytags = $tag ? explode(' ', $tag) : array();


4. Open modulesellshow.inc.php

About 36 lines of newline, add
$keytags = $tag ? explode(' ', $tag) : array();


5. Open modulesellsell.class.php

5-1, Line 22 found

,'title' followed by ,'tag'


5-2. Search:
$update = '';
Add below:


//S tag keyword
if($item['tag'] == '') {
$update .= ",tag='$tag'";
}
//E tag keyword


5-3. Found:

$keyword = $item['title'].','.$TYPE[$item['typeid']].','.strip_tags(cat_pos(get_cat($item['catid']), ','));

Replace the entire paragraph with

$keyword = $item['title'].','.$TYPE[$item['typeid']].','.($item['tag'] ? str_replace(' ', ',', trim($item['tag'])).',' : '').strip_tags(cat_pos(get_cat($item['catid']), ','));




6. Front-end member center: such as the default path emplatedefaultmembermy_sell.htm
Found: Line 70, add
below

Keywords (Tag)
 (Tip: Please separate multiple keywords with spaces);

As shown in the picture:

Effect:

Foreground tag call:
List, (remember to add ,tag in "list or search main field" when using list)
{if $t[tag]} Tag:
{php $tag = str_replace(',', ' ', $t[tag]);}
{php $sell_tags = explode(' ', $t[tag]);}
{loop $sell_tags $v} {$v}{/loop}
{/if}
Content page:
{if $tag}Key words: {php $tag = str_replace(',', ' ', $tag);}
{php $sell_tags = explode(' ', $tag);}
{loop $sell_tags $v} {$v}{/loop}
{/if}