WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
Remove "Visit the shop" from Shop page? (5 posts)

  1. oldrambler
    Member
    Posted 11 months ago #

    Store URL: http://classicmgaccessories.com/
    WordPress version: 3.6.1
    WP e-Commerce version: 3.8.12.1
    Gold Cart version: N/A
    Theme: Themia Theme Pro

    I did this: Set up site and added WP e-Commerce Grid View PRO, WP E-Commerce shop styling and WP E-Commerce shop styling Transaction Results Page upgrade.

    I expected WP e-Commerce to do this: When you go the shop page at http://classicmgaccessories.com/shop/ and the shopping cart is empty you see a link “Visit the shop” that takes you to the page that you are already on. This just confuses the visitors. Is there any safe way to remove this or have I missed a setting?

    http://wordpress.org/plugins/wp-e-commerce/

  2. gmet
    Member
    Posted 11 months ago #

    search Visit the shop in your WPEC files

    mine is wpsc-theme/wpsc-cart_widget.php

    line 58 - 59

    you my have a different version of the plugin, so double check.

    comment it out and see if it works.

  3. oldrambler
    Member
    Posted 11 months ago #

    Dear gmet
    Thank you so much for your help. I was unable to comment out the lines, using either a // or # so I just deleted the two lines (see below) and "Visit the shop" has now dissappeared.
    The lines deleted were:

    <?php _e('Your shopping cart is empty', 'wpsc'); ?>
    		<a>" class="visitshop" title="<?php esc_html_e('Visit Shop', 'wpsc'); ?>"><?php esc_html_e('Visit the shop', 'wpsc'); ?></a>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum's parser.]

    Thank you again.

  4. gmet
    Member
    Posted 11 months ago #

    use PHP code

    see below where 'content' is the code you want to comment out

    <?php /*?>content<?php */?>

  5. gmet
    Member
    Posted 11 months ago #

    yep had a quick look, you got it.

    add this back in the beginning if you wanted the 'Your shopping cart is empty' back. That will disappear at a purchase.

    <?php _e('Your shopping cart is empty', 'wpsc'); ?><br />

    Good luck

Reply

You must log in to post.

About this Plugin

About this Topic