• Hello ppl, I’ve installed the e-Commerce plugin, it’s very good indeed, but I need some little modifications so as I wrote in the topic tittle, how do I move the “add to cart” button, wherever I want ? I would be greatful for this answer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The add to cart button can be found in the wpsc-single_product.php, wpsc-products_page.php files in the wp-e-commerce theme. If you don’t have these theme files included in your site theme, you can copy them over from wp-content/plugins/wp-e-commerce/wpsc-theme.

    If you copy these files into your theme, they will be used ahead of the plugin versions.

    Basically anywhere you move the following code, is where the button will appear:

    <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-->

    Thread Starter PortgasDAce

    (@portgasdace)

    I did find that following code, and copied it dirrectly on the page where the product was, but instead of appearing the “Add To Card” button, appeared 2 buttons. The 1’st button ” <?php echo wpsc_product_external_link_text( wpsc_the_produc_id(), __( ‘Buy Now’, ‘wpsc’ ) ); ?> ” ; and the 2’nd button – “<?php _e(‘Add To Cart’, ‘wpsc’); ?>”

    Thread Starter PortgasDAce

    (@portgasdace)

    I did a Print Screen to show you how it appears to be more specific, and where’ the button I wish to be. Thank You.
    Link: http://imageshack.us/photo/my-images/189/heresl.jpg/

    Thread Starter PortgasDAce

    (@portgasdace)

    Up. Please someone…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: WP e-Commerce] How do I move "add to cart" button’ is closed to new replies.