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

  1. oldrambler
    Posted 2 years ago #

    Store URL: http://classicmgaccessories.com/
    WordPress version: 3.6.1
    WP e-Commerce version:
    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?


  2. gmet
    Posted 2 years 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
    Posted 2 years 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
    Posted 2 years ago #

    use PHP code

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

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

  5. gmet
    Posted 2 years 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic