[Plugin: WP e-Commerce] Moving add to Cart button
-
Hello all,
I’ve got Wp e-commerce installed, and I’d like to move the “add to cart” button to underneath the product picture. I’ve grabbed the php code block and moved it to where I want it, but the button is no longer working. If I put it back where it was it starts working again, so I was hoping someone could tell me what I was missing.
This is the code I moved:
<div class="wpsc_buy_button_container"> <div class="wpsc_loading_animation"> <img title="Loading" alt="Loading" src="<?php echo wpsc_loading_animation_url(); ?>" /> <?php _e('Updating cart...', 'wpsc'); ?> </div><!--close wpsc_loading_animation--> <?php if(wpsc_product_external_link(wpsc_the_product_id()) != '') : ?> <?php $action = wpsc_product_external_link( wpsc_the_product_id() ); ?> <input class="wpsc_buy_button" type="submit" value="<?php echo wpsc_product_external_link_text( wpsc_the_product_id(), __( 'Buy Now', 'wpsc' ) ); ?>" onclick="return gotoexternallink('<?php echo $action; ?>', '<?php echo wpsc_product_external_link_target( wpsc_the_product_id() ); ?>')"> <?php else: ?> <input type="submit" value="<?php _e('Add To Cart', 'wpsc'); ?>" name="Buy" class="wpsc_buy_button" id="product_<?php echo wpsc_the_product_id(); ?>_submit_button"/> <?php endif; ?> </div><!--close wpsc_buy_button_container-->
I have also tried copying the button (having two of them on the page) and the original one works whereas the new one still doesn’t.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: WP e-Commerce] Moving add to Cart button’ is closed to new replies.