Home Forums WC Vendors Pro Support Shipping Tab Removal Info – still ok?

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #24794
    londondude
    Participant

    Saw this thread with instructions on how to remove Shipping tab from 2+ months ago – is it still valid?:
    https://www.wcvendors.com/help/topic/shipping-tab-on-product-page/

    My issue is some products only ship to the EU so I don’t want this tab to have a column of 28 country codes (also the ‘State’ column showing ‘Any’ might be a bit confusing without reference to the USA?)

    I can add Shipping + Returns info in a separate tab.

    Thanks.

    #24804
    WC Vendors Support
    Participant

    Yup! Go for it!

    #24855
    londondude
    Participant

    Thanks – I made the edit as described in the link which removes the line ‘‘No shipping rates are available for this product’.

    I didn’t describe properly that what I was looking for which is to remove the entire Shipping tab and page, as I don’t want all the individual country rates listed as a big column.

    Is this possible?

    thanks

    #24882
    WC Vendors Support
    Participant

    You would have to simply tweak the dashboard templates as you see fit to remove (or add) whatever you want. You can customize anything, just a matter of you opening a text editor and doing it! 🙂

    #25507
    londondude
    Participant

    Thanks Ben – I found shipping-panel.php in the shipping folder, shall I just delete that file as I don’t want it to show.

    #25509
    WC Vendors Support
    Participant

    If you delete the file, you’ll get errors. You can edit the file, and delete all the text in it, and then save it, and that would work! 🙂

    #25683
    londondude
    Participant

    Thanks so to remove Shipping tab:

    1. Copy shipping-panel.php to child theme folder.
    2. Delete all words in this php intended to be visible to user, keep remaining stuff.

    Hope this correct?

    thanks

    #25744
    WC Vendors Support
    Participant

    Yup!

    #26311
    londondude
    Participant

    Hi Ben

    Copied below is the shipping-panel.php – would you be able to help by copying and pasting it again with the necessary text removed so this tab doesn’t show on the product page? I have tried taking out the ‘Shipping From’ and the ‘Shipping Policy’ and ‘Return Policy’ as these are words I can see in the php as being visible to the user but am unsure what of the rest to keep in or not. thanks for any help you can offer.

    <?php
    /**
     * The Template for displaying the product shipping details
     *
     * Override this template by copying it to yourtheme/wc-vendors/front/shipping
     *
     * @package    WCVendors_Pro
     * @version    1.1.3
     */
    ?>
    <h2></h2>
    
    <p>
    <strong>Shipping From:</strong> <?php echo $countries[ strtoupper( $store_country ) ]; ?>
    </p>
    
    <?php if ( ! empty( $shipping_flat_rates ) ) :  ?>
    
    	<?php if ( ! empty( $shipping_flat_rates[ 'national' ] ) || ! empty( $shipping_flat_rates[ 'international' ] ) || ( array_key_exists( 'national_free', $shipping_flat_rates ) && $shipping_flat_rates[ 'national_free' ] == 'yes' ) || ( array_key_exists( 'international_free', $shipping_flat_rates ) && $shipping_flat_rates[ 'international_free' ] == 'yes' ) ) :  ?>
    
    	<table>
    
    	<?php if ( strlen( $shipping_flat_rates[ 'national_disable' ] ) === 0 || strlen( $shipping_flat_rates[ 'national_free' ] ) > 0 ): ?> 
    		<?php if ( strlen( $shipping_flat_rates[ 'national' ] ) > 0 || strlen( $shipping_flat_rates[ 'national_free' ] ) > 0 ) : ?>
    			<?php $free = ( array_key_exists( 'national_free', $shipping_flat_rates ) && $shipping_flat_rates[ 'national_free' ] == 'yes' ) ? true : false; ?> 
    			<?php $price = $free ? __( 'Free', 'wcvendors-pro' ) : wc_price( $shipping_flat_rates[ 'national' ] . $product->get_price_suffix() ); ?> 
    			<tr>
    				<td width="60%"><strong>Within <?php echo $countries[ strtoupper( $store_country ) ]; ?></strong></td>
    				<td width="40%"><?php echo $price; ?></td>
    			</tr>
    		<?php endif; ?>
    	<?php endif; ?>
    
    	<?php if ( strlen( $shipping_flat_rates[ 'international_disable' ] ) === 0 || strlen( $shipping_flat_rates[ 'international_free' ] ) > 0 ):  ?>
    		<?php if ( strlen( $shipping_flat_rates[ 'international' ] ) > 0 || strlen( $shipping_flat_rates[ 'international_free' ] ) > 0 ) : ?>
    			<?php $free = ( array_key_exists( 'international_free', $shipping_flat_rates ) && $shipping_flat_rates[ 'international_free' ] == 'yes' ) ? true : false; ?> 
    			<?php $price = $free ? __( 'Free', 'wcvendors-pro' ) : wc_price( $shipping_flat_rates[ 'international' ] . $product->get_price_suffix() ); ?> 
    			<tr>
    				<td width="60%"><strong>Outside <?php echo $countries[ strtoupper( $store_country ) ]; ?></strong></td>
    				<td width="40%"><?php echo $price; ?></td>
    			</tr>
    		<?php endif; ?>
    	<?php endif; ?>
    	</table>
    
    	<?php else: ?>
    
    	<?php endif; ?>
    
    <?php else: ?>
    
    	<?php if ( ! empty( $shipping_table_rates ) ):  ?>
    
    		<table>
    
    		<thead>
    			<tr>
    				<th><?php _e( 'Country', 'wcvendors-pro' ); ?></th>
    				<th><?php _e( 'State', 'wcvendors-pro' ); ?></th>
    				<th><?php _e( 'Cost', 'wcvendors-pro' ); ?></th>
    			</tr>
    		</thead>
    		<?php foreach( $shipping_table_rates as $rate ):  ?>
    
    		<tr>
    			<td width="40%"><?php echo ( $rate[ 'country' ] != '' ) ? $countries[ strtoupper( $rate['country'] ) ] : __( 'Any', 'wcvendors-pro' ); ?></td>
    			<td width="40%"><?php echo ( $rate[ 'state' ] != '' ) ? $rate['state'] : __( 'Any', 'wcvendors-pro' ); ?></td>
    			<td width="20%"><?php echo wc_price( $rate['fee'] . $product->get_price_suffix() );  ?></td>
    		</tr>
    		<?php endforeach; ?>
    
    		</table>	
    
    	<?php else: ?>
    
    		<?php if ( ! empty( $shipping_flat_rates ) ):  ?>
    
    			<table>
    			<tr>
    				<td width="60%"><strong>Within <?php echo $countries[ strtoupper( $store_country ) ]; ?></strong></td>
    				<td width="40%"><?php echo wc_price( $shipping_flat_rates[ 'national' ] . $product->get_price_suffix() );  ?></td>
    			</tr>
    			<tr>
    				<td width="60%"><strong>Outside <?php echo $countries[ strtoupper( $store_country ) ]; ?></strong></td>
    				<td width="40%"><?php echo wc_price( $shipping_flat_rates[ 'international' ] . $product->get_price_suffix() );  ?></td>
    			</tr>
    			</table>
    
    		<?php else: ?>
    
    		<?php endif; ?>
    
    	<?php endif; ?>
    
    <?php endif; ?>
    
    <?php if ( is_array( $store_rates ) &&  array_key_exists( 'shipping_policy', $store_rates ) && $store_rates[ 'shipping_policy' ] != '' ):  ?>
    <h3>Shipping Policy</h3>
    <p>
    <?php echo $store_rates[ 'shipping_policy' ]; ?>
    </p>
    <?php endif; ?>
    
    <?php if ( is_array( $store_rates ) && array_key_exists( 'return_policy', $store_rates ) && $store_rates[ 'return_policy' ] != '' ):  ?>
    <h3>Return Policy</h3>
    
    <p>
    <?php echo $store_rates[ 'return_policy' ]; ?>
    </p>
    
    <?php endif; ?>
    #26313
    WC Vendors Support
    Participant

    You’ll want to hire a PHP developer if you cant customize your own templates. That’s your job! We simply dont have the time to do it for everyone.

    #26330
    londondude
    Participant

    Thanks ok – understood.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.