Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Hide Top Buttons From Cart Page Rate Topic   - - - - -

 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 123 posts

Posted 03 October 2018 - 10:19 AM #1

Dear members,

 

I want to know how can I hide the top buttons from the cart page?

 

I want to hide because the buttons are also available in the bottom so I just want to hide the button from the top 

 

Clear cart

Recalculate,

Proceed to checkout

continue shopping

 

for reference, please see this image, http://prntscr.com/l1miw2



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 761 posts

Posted 03 October 2018 - 10:53 AM #2

Hello

 

There is no hook in this section in this file

 

/design/themes/responsive/templates/views/checkout/components/cart_content.tpl

 

You can either comment on this piece of code

<div class="buttons-container ty-cart-content__top-buttons clearfix">
    <div class="ty-float-left ty-cart-content__left-buttons">
        {include file="buttons/continue_shopping.tpl" but_href=$continue_url|fn_url }
        {include file="buttons/clear_cart.tpl" but_href="checkout.clear" but_role="text" but_meta="cm-confirm ty-cart-content__clear-button"}
    </div>
    <div class="ty-float-right ty-cart-content__right-buttons">
        {include file="buttons/update_cart.tpl" but_id="button_cart" but_name="dispatch[checkout.update]"}
        {if $payment_methods}
            {assign var="m_name" value="checkout"}
            {assign var="link_href" value="checkout.checkout"}
            {include file="buttons/proceed_to_checkout.tpl" but_href=$link_href but_meta=""}
        {/if}
    </div>
</div>

or overwrite this file with its own code

 

Best regards

Robert.


Team of SoftSolid
cs-cart.pl

 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 123 posts

Posted 03 October 2018 - 12:58 PM #3

Thanks a lot for your solution, it worked like a charm :)

 

Can you please answer about this as well 

https://forum.cs-car...dpost&p=307206 

 

 

 

Hello

 

There is no hook in this section in this file

 

/design/themes/responsive/templates/views/checkout/components/cart_content.tpl

 

You can either comment on this piece of code

<div class="buttons-container ty-cart-content__top-buttons clearfix">
    <div class="ty-float-left ty-cart-content__left-buttons">
        {include file="buttons/continue_shopping.tpl" but_href=$continue_url|fn_url }
        {include file="buttons/clear_cart.tpl" but_href="checkout.clear" but_role="text" but_meta="cm-confirm ty-cart-content__clear-button"}
    </div>
    <div class="ty-float-right ty-cart-content__right-buttons">
        {include file="buttons/update_cart.tpl" but_id="button_cart" but_name="dispatch[checkout.update]"}
        {if $payment_methods}
            {assign var="m_name" value="checkout"}
            {assign var="link_href" value="checkout.checkout"}
            {include file="buttons/proceed_to_checkout.tpl" but_href=$link_href but_meta=""}
        {/if}
    </div>
</div>

or overwrite this file with its own code

 

Best regards

Robert.



 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 123 posts

Posted 04 October 2018 - 02:27 PM #4

I just noticed that SInce I commented this code, the recalculate button at the bottom does not work anymore. Please let me know how can I make that button to work as functional??



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 05 October 2018 - 06:45 AM #5

You should not remove the code since button on the bottom emulates click on the top button. So remove old code back and add the following code to the CSS section of the theme editor

.ty-cart-content__top-buttons {
    display: none !important;
}


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 123 posts

Posted 09 October 2018 - 09:35 AM #6

Thanks a lot, ecomlabs, I applied your solution and it worked great :)

 

You should not remove the code since button on the bottom emulates click on the top button. So remove old code back and add the following code to the CSS section of the theme editor

.ty-cart-content__top-buttons {
    display: none !important;
}



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 09 October 2018 - 01:52 PM #7

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.