Download & Extend

Please use uc_product_is_product to check if node is a product instead of uc_product_node_info

Project:UC Wish List
Version:6.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Other modules can nominate nodes as products, using uc_product_is_product ensures they can use uc_wishlist as well - so code at line 656 of uc_wishlist.module needs to be changed from

<?php
if (!in_array($node->type, array_keys(uc_product_node_info()))) {
?>

to
<?php
 
if (!uc_product_is_product($node)) {
?>

Comments

#1

AttachmentSize
uc_wishlist-956818.patch 722 bytes
nobody click here