New Landing How can we help? Themeforest Theme Support Neighborhood Checkout Page help Bar – sf_woo_help_bar

Viewing 2 posts - 1 through 2 (of 2 total)
  • #173626
    Stephen
    Member
    Post count: 44

    I’m using your instructions from the following page to amend the checkout page sf_woo_help_bar help bar – http://www.swiftideas.com/knowledgebase/how-to-override-the-cartcheckout-help-bar/

    Unfortunately the shortcodes that you have specified ([‘returns_modal’], [‘shipping_modal’], etc.) don’t echo out the text from the associated fields in the theme options.

    Do those shortcodes still work in the latest version of the theme? Latest version of WP and the theme in operation.

    #173627
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this code and edit.

    <?php
    function sf_woo_help_bar() {
    			$options = get_option('sf_neighborhood_options');
    			$help_bar_text = __($options['help_bar_text'], 'swiftframework');
    			$email_modal = __($options['email_modal'], 'swiftframework');
    			$shipping_modal = __($options['shipping_modal'], 'swiftframework');
    			$returns_modal = __($options['returns_modal'], 'swiftframework');
    			$faqs_modal = __($options['faqs_modal'], 'swiftframework');
    		?>
    			<div class="help-bar clearfix">
    				<span><?php echo do_shortcode($help_bar_text); ?></span>
    				<ul>
    				    <li><a href="#email-form" class="inline" data-toggle="modal"><?php _e("Email Customer Care", "swiftframework"); ?></a></li>
    				    <li><a href="#shipping-information" class="inline" data-toggle="modal"><?php _e("Shipping Information", "swiftframework"); ?></a></li>
    				    <li><a href="#returns-exchange" class="inline" data-toggle="modal"><?php _e("Returns & Exchange", "swiftframework"); ?></a></li>
    				    <li><a href="#faqs" class="inline" data-toggle="modal"><?php _e("FAQ's", "swiftframework"); ?></a></li>
    				</ul>
    			</div>
    
    			<div id="email-form" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="email-form-modal" aria-hidden="true">
    				<div class="modal-header">
    					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    					<h3 id="email-form-modal"><?php _e("Email Customer Care", "swiftframework"); ?></h3>
    				</div>
    				<div class="modal-body">
    
    					<?php echo do_shortcode($email_modal); ?>
    
    				</div>
    			</div>
    
    			<div id="shipping-information" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="shipping-modal" aria-hidden="true">
    				<div class="modal-header">
    					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    					<h3 id="shipping-modal"><?php _e("Shipping Information", "swiftframework"); ?></h3>
    				</div>
    				<div class="modal-body">
    
    					<?php echo do_shortcode($shipping_modal); ?>
    
    				</div>
    			</div>
    
    			<div id="returns-exchange" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="returns-modal" aria-hidden="true">
    				<div class="modal-header">
    					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    					<h3 id="returns-modal"><?php _e("Returns & Exchange", "swiftframework"); ?></h3>
    				</div>
    				<div class="modal-body">
    
    					<?php echo do_shortcode($returns_modal); ?>
    
    				</div>
    			</div>
    
    			<div id="faqs" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="faqs-modal" aria-hidden="true">
    				<div class="modal-header">
    					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    					<h3 id="faqs-modal"><?php _e("FAQs", "swiftframework"); ?></h3>
    				</div>
    				<div class="modal-body">
    
    					<?php echo do_shortcode($faqs_modal); ?>
    
    				</div>
    			</div>
    
    		<?php } ?>

    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register