Make Shop street, show customer service QQ number in Shop Street!
Development ideas: Database design needs to set up a data table to store QQ number, which contains the store ID, table structure ID since the growth
Background development ideas: need to query the current merchant shop customer service QQ from the relative database table read, (can be in JSON format)
If it is a JSON format, you need to convert the extracted string to a PHP variable! This way you can assign a value!
Front-end development ideas: mainly to get QQ dialogue page through the href to get!
The following code is based on Iwebshop development: All programs are executed on the front page
Locate the QQ number in the corresponding database and convert it to PHP variable {query:name=online_service where=seller_id eq $item [id] item= $onlineServiceData}{set:$ ServerInfo = JSON::d ecode ($onlineServiceData [' QQ '])}{/query}{if:!empty ($serverInfo)}{foreach:items= $serverInfo item= $serverInfoData}<p> Sell & #x3000;& #x3000, Home://Note the href path gives {$serverInfoData [' QQ ']} variable <a class= " Stores_qq "href=" http://wpa.qq.com/msgrd?v=3&uin={$serverInfoData [' QQ ']}&site=qq&menu=yes ' target= ' _ Blank "> </a> & #x3000;& #x3000; {Echo:join (', Area::name ($item [' Province '), $item [' City '], $item [' area '])}</p>{/foreach}{/if}
This article from "Kangjunfei" blog, declined reprint!
On the website to increase QQ customer service development, Iwebshop framework Example