Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1361776
    lovecoms
    Participant

    Hi, this is both a woocommerce question and an X question. With other themes, on mobile, there is a clear cart button, on my x theme: shapeeze.com.au, to access the cart, i have to go back to the menu. is there a way of adding cart button within the theme?
    thanks
    I’ll send details via private reply

    #1361778
    lovecoms
    Participant
    This reply has been marked as private.
    #1362203
    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    Would you mind sharing us more details on where you want to add the cart aside from the menu.

    You might want to check the link below:

    https://community.theme.co/forums/topic/woocommerce-shopping-cart-icon/

    Hope it helps.

    Let us know how it goes.

    Thanks.

    #1362298
    lovecoms
    Participant

    Hi, to clarify,
    I’d like to place the woocommerce cart icon in the upper menu, where the social icons are currently
    (i’ve made an approximation of a woocommerce cart on the screenshot attached – the screenshot shows the position of the cart icon.)
    I’d like for it to be a woocommerce cart so users can see that it has been updated after a purchase.
    thanks for your help

    #1362497
    Christopher
    Moderator
    #1362632
    lovecoms
    Participant

    Tyhis doesn’t assist me. I have already read through threads on the topic but the conversation syntax doesn’t make it legible to anyone but the person who you were assisting. Can you please advise me how to do this on my site.

    #1362745
    Paul R
    Moderator

    Hi,

    You need to do the following.

    1. Set-up a child theme

    https://community.theme.co/kb/how-to-setup-child-themes/

    2. Create file _topbar.php in wp-content/themes/x-child/framework/views/global

    3. Copy the code below into that file.

    
    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_TOPBAR.PHP
    // -----------------------------------------------------------------------------
    // Includes topbar output.
    // =============================================================================
    
    ?>
    
    <?php if ( x_get_option( 'x_topbar_display' ) == '1' ) : ?>
    
      <div class="x-topbar">
        <div class="x-topbar-inner x-container max width">
          <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?>
          <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p>
          <?php endif; ?>
          <?php x_social_global(); ?>
           <ul class="x-nav">
       <li class="menu-item current-menu-parent x-menu-item x-menu-item-woocommerce">
     <a href="<?php echo x_get_cart_link(); ?>" class="x-btn-navbar-woocommerce">
      <?php echo (x_woocommerce_navbar_cart()); ?>
       </a>
       </li>
       </ul>
        </div>
      </div>
    
    <?php endif; ?>
    

    Hope that helps.

  • <script> jQuery(function($){ $("#no-reply-1361776 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>