Make Favorite button
This code must be entere inside item loop. That means it needs to be placed inside loop starting with while(osc_has_items()){ or while(osc_has_items()){ or while(osc_has_custom_items()){
<?php echo fi_make_favorite(); ?>
Note that you can use this function also outside item loop, but in this case you need to enter (optional) parameter with ID of listing. So i.e. if you want to make button for listing id = 95, you will call this function like fi_make_favorite(95)
i have a question about placing the fi_make_favorite() button in the item.php
have the fi_make_favorite() placed and it seems to be working 100% but you say that if the fi_make_favorite() is not placed inside one of the loops listed then there would need to be an id linked to fi_make_favorite()
this is how i have placed the make button on item.php
<?php if( osc_price_enabled_at_items() ) { ?>
<div class="price">
<span class="lead"><?php _e('Price', 'patricia'); ?></span>
<span class="value"><?php echo osc_item_formated_price(); ?></span>
<div class="favstar">
<span><?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?><?php _e('Love this') ?></span>
</div>
</div>
<?php } ?>
is there anything i need to change in this ?? i dont see any probs when selecting a listing to favorites. just wanting to verify i have this done correctly
Thanks
Chris