Wordpress hook being called twice. Possible solutions?
16:33 19 Feb 2013

I have a Wordpress shop setup and there is a hook that is called to display product options selected by customer.

The hook is:

wpsc_after_cart_widget_item_name








I cannot figure out why it displays twice in the cart widget. I have thoroughly web-searched for filter hooks, troubleshooting, and even an ugly way of removing the duplicate text with jQuery, but found nothing.

Any help would be appreciated. My site is http://www.a1decals.com/products-page.

I can't post a pic yet but here is a link: http://i134.photobucket.com/albums/q87/mad_stallion_2006/screen001-3_zpsa94e087b.jpg


Update: here is the code for the shopping cart with your code inserted above and below the occurrences of the action hook you told me it relies on.

I'm not sure if I put the code in the wrong place or what, I am going to continue to move it around to see, but I'm still at a loss.

Sorry to put up all the code but i didn't know what might be relevant.

" . __('Please visit our shop', 'wpsc') . "";
   return;
endif;
?>

Cart Records "Product Options" Like Color And Mirror Twice For Us

 
<?php echo wpsc_cart_item_name(); ?>

' />
onclick='switchmethod("", "")' value='' name='shipping_method' /> disabled='disabled' type='radio' id='' value='' name='shipping_method' />
wpec_taxes_isenabled()): ?>

\n"; ?>


Make It Easy With Facebook and Twitter Connect.

false, 'redirect' => home_url( $_SERVER['REQUEST_URI'] ) ); wp_login_form( $args ); ?>
0)): ?>
' method='post' enctype="multipart/form-data">




1):?>
> checkout_item->unique_name == 'billingemail'){ ?>

" . wpsc_checkout_form_field(); if(wpsc_the_checkout_item_error() != '') $email_markup .= "

" . wpsc_the_checkout_item_error() . "

"; $email_markup .= ""; }else{ ?> 1): // if we have more than one gateway enabled, offer the user a choice ?>
colspan='2'>

/>

jquery wordpress duplicates hook