I need to get the hash (MC43OTA2MzIwMCAxNDQ3NTc2NTczMTg1MjE3MDM0MDY5MDE,) ONLY from this:


Is there a function to do that?


The hash value is stored as link_hash column in the downloadable_link_purchased_item table.

It seems you're working in one of the template files so the easiest solution is to use $link->getLinkHash().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.