A lot of retail shopping carts still do not have the canonical tag feature which I agree is the best method. If you're on a somewhat modern cart there should be a custom url field wen entering the product in the admin area. You can set the custom url for that product then select all the categories for it to fall under. The url will then appear the same on the front of the site under every category.
Welcome to the Q&A Forum
Browse the forum for helpful insights and fresh discussions about all things SEO.