Posts

untag a product / remove a product-tag relationship

Image
1 How to remove a tag/product relationship programmatically? I've tried: $tag_obj = $tagModel->loadByName($tag); $tagId = $tag_obj->getTagId(); $customerId = $tag_obj->getCustomerId(); $relationModel = Mage::getModel('tag/tag_relation'); $relationModel->loadByTagCustomer($productId, $tagId, $customerId, $store['id'])->deactivate(); But it doesn't seem to do much, much less untag anything. magento-1.8 tags share | improve this question edited yesterday Teja Bhagavan Kollepara 2,938 4 18 47 ...