[_Yoreh De'ah_ 148:1](http://www.sefaria.org/Shulchan_Arukh,_Yoreh_De'ah.148.1) says, in part:

> שְׁלשָׁה יָמִים לִפְנֵי חַגָּם שֶׁל גּוֹיִים עוֹבְדֵי אֱלִילִים אָסוּר לִקַּח מֵהֶם וְלִמְכֹּר לָהֶם דָּבָר הַמִּתְקַיֵּם. וּמֻתָּר לִמְכֹּר לָהֶם דָּבָר שֶׁאֵינוֹ מִתְקַיֵּם עַד יוֹם חַגָּם, כְּגוֹן יְרָקוֹת וְתַבְשִׁיל.

R' Pesach Feldman [translates](http://www.dafyomi.co.il/azarah/halachah/az-hl-002.htm):

> Three days before the festival of idolaters, one may not buy from them, or sell to them something that lasts. One may sell something that will not last until the day of their festival, such as vegetables or a cooked food.

(To learn about the reasoning behind the law, see [here](http://www.dafyomi.co.il/azarah/backgrnd/az-in-002.htm).)

But there's a catch.  Even though this law is in _Yoreh De'ah_, it's neither widely publicized nor widely talked about.  In fact, I'd never even heard of the law's existence until I was in my thirties, when I saw a certain [comment](http://judaism.stackexchange.com/questions/66400/if-a-local-store-holds-a-christmas-sale-in-the-days-leading-up-to-dec-25th-m#comment185755_66400) by Mi Yodeya moderator Double AA.

In general, is the above law still applicable in America nowadays?

See also [this related question](http://judaism.stackexchange.com/questions/66400).