GetMerchantItemLink

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns the item link for a merchant item.

link = GetMerchantItemLink(index)

Arguments

index
number - The index of the item in the merchant's inventory

Returns

itemLink
string? - returns a string that will show as a clickable link to the item

Example

Show item link will appear in the default chat frame.

DEFAULT_CHAT_FRAME:AddMessage(GetMerchantItemLink(4));