You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Disable auto-placement of "add to wishlist buttons/links"
*/
functioncustom_sw_shopp_init()
{
$sw = newShoppWishlist()
remove_filter('shopp_product_description',array(&$sw, 'button_product'), 99); // disable the auto-placement in product description
remove_filter('shopp_product_summary',array(&$sw, 'button_category'), 99); // disable the auto-placement in product summary (used mostly on category pages
} // end custom_sw_init
add_action('shopp_init','custom_sw_shopp_init');
// Use this to place the add-button manually:
shopp('wishlist-pro','add-button','options');
// Options:
# type - link | checkbox
# before - add something before the link/checkbox
# after - add something after the link/checkbox
# add - text to use for the add-to-wishlist link/checkbox-label
# listed - text to use for when the product is already listed
# linklisted - whether to link the listed text or not (the link will be to remove the product from the wishlist)