New answers tagged

1

There is a direct way to find this out. Here's an example. Note the id you supply must be the specific purchasableId, not the product id (so the defaultVariant.id or variant.id). {# Has the customer explicitly bought the XXX product? Returns 0 (==false) or >= 1 (==true) #} {% set purchasedXXX = craft.orders() .user(currentUser) .hasPurchasables(...


Top 50 recent answers are included