Button setsSYSTEM SETSHARING SETNAVIGATION SETCLOSING SETRETENTION SETCONTACT SET Pricing and contactPRICING EMAIL US ContentBUTTON LIBRARYDISPLAY CODESSITE PACKSAI PROMPTSREADINSTALL GUIDE LanguageTIẾNG VIỆTENGLISH VIEN PRICING

Home / Buttons / NAVIGATION SET

COMPARE button

Visitors pick 2–3 products and see them side by side in a comparison table. Stored on the visitor's device, no sign-in.

Tag name: <nut-so-sanh> · Vietnamese name: SO SÁNH

REAL BUTTON — TAP IT

Open the demo on its own page →

Install in one minute

Upload nut-so-sanh.js to your site, then paste this where the button should appear:

<script defer src="/nut/nut-so-sanh.js"></script>

<nut-so-sanh ma="sp-101" ten="5-blade stand fan" gia="$19" thong-so='{"Power":"55W","Blades":"5","Warranty":"12 months"}' kieu="vien"></nut-so-sanh>
<nut-so-sanh ma="sp-102" ten="3-blade ceiling fan" gia="$45" thong-so='{"Power":"70W","Blades":"3","Remote":"Yes"}' kieu="vien"></nut-so-sanh>
<nut-so-sanh></nut-so-sanh>

Button attributes

AttributeDefaultMeaning
ma—Product ID. With ma the button adds/removes the product. Without it the button opens the comparison table.
ten—Product name.
linkcurrent pageProduct page URL.
anh—Image URL.
gia—Display price.
thong-so—Specs as JSON, e.g. {"Power":"55W"}.
toi-da3Maximum number of products in the table.

Shared attributes

AttributeMeaning
mauButton background, set it to your brand color
mau-chuText and icon color
nhanButton text
kieuicon = 44px round icon only · vien = outline button
rongFull-width button
ghi-luotPath to the PHP file that logs clicks

Version history

  • 1.0.0 (2026-10-05) — First packaged release as a self-contained component.
  • 1.1.0 (2026-10-05) — Added English: button text, messages and dialogs follow the page language (<html lang>).
Share this page: