Post by esmhos » Thu Aug 10, 2017 5:16 pm

hello
Can i disable Shopping Cart icon and Add to My Cart Button in open cart 3.0.2.0 Version ?

thanks

Newbie

Posts

Joined
Sun Jul 23, 2017 5:03 am

Post by straightlight » Sat Dec 02, 2017 4:19 am

Add-to-cart button - catalog/view/theme/<your_theme>/template/product/product.twig file

remove:

Code: Select all

<button type="button" id="button-cart" data-loading-text="{{ text_loading }}" class="btn btn-primary btn-lg btn-block">{{ button_cart }}</button>
Then, for the shopping cart link, in your catalog/view/theme/<your_theme>/template/common/header.twig file,

remove:

Code: Select all

<li><a href="{{ shopping_cart }}" title="{{ text_shopping_cart }}"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md">{{ text_shopping_cart }}</span></a></li>

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by qviorel » Mon Nov 12, 2018 11:18 pm

Hi. Can you please help me?
I have open cart 3.0.2.0 and your advises is not working.
I made those two steps and nothing happened.

Other advises please?

Thank you very much

straightlight wrote:
Sat Dec 02, 2017 4:19 am
Add-to-cart button - catalog/view/theme/<your_theme>/template/product/product.twig file

remove:

Code: Select all

<button type="button" id="button-cart" data-loading-text="{{ text_loading }}" class="btn btn-primary btn-lg btn-block">{{ button_cart }}</button>
Then, for the shopping cart link, in your catalog/view/theme/<your_theme>/template/common/header.twig file,

remove:

Code: Select all

<li><a href="{{ shopping_cart }}" title="{{ text_shopping_cart }}"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md">{{ text_shopping_cart }}</span></a></li>

Newbie

Posts

Joined
Mon Mar 23, 2015 12:39 am

Post by straightlight » Tue Nov 13, 2018 12:33 am


The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Alianu » Thu Jan 21, 2021 3:52 am

Hello,
I folowed your instructions, but no results ! What I did wrong ?
I edited product.twig - press save button - refresh or clear cache - and..... nothing ! Product.twig have same code !!!! Why don't keep changes ?
Thank you in advance for yours help !

Newbie

Posts

Joined
Tue Sep 05, 2017 5:08 am

Post by straightlight » Thu Jan 21, 2021 3:57 am

Alianu wrote:
Thu Jan 21, 2021 3:52 am
Hello,
I folowed your instructions, but no results ! What I did wrong ?
I edited product.twig - press save button - refresh or clear cache - and..... nothing ! Product.twig have same code !!!! Why don't keep changes ?
Thank you in advance for yours help !
More information is needed.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mikeinterserv » Thu Jan 21, 2021 4:04 am

Alianu wrote:
Thu Jan 21, 2021 3:52 am
Hello,
I folowed your instructions, but no results ! What I did wrong ?
I edited product.twig - press save button - refresh or clear cache - and..... nothing ! Product.twig have same code !!!! Why don't keep changes ?
Thank you in advance for yours help !
How did you edit product twig through OC admin theme editor or did you edit the FILE DIRECTLY

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by EvolveWebHosting » Fri Jan 22, 2021 1:24 am

Alianu wrote:
Thu Jan 21, 2021 3:52 am
Hello,
I folowed your instructions, but no results ! What I did wrong ?
I edited product.twig - press save button - refresh or clear cache - and..... nothing ! Product.twig have same code !!!! Why don't keep changes ?
Thank you in advance for yours help !
Did you edit the file within your active theme folder and did you try clearing your browser cache (in addition to OCMOD and Theme cache)? Also try it in another browser. When I say theme cache, I'm talking about the blue icon on the dashboard near the upper right corner of your screen.

Image
50% Off SSD Shared Hosting w/ cPanel
Detailed guide on how to install Opencart


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by Alianu » Tue Feb 23, 2021 2:33 am

Hi, I wish say thank you to all for answers . Problem solved !!!
Was a very stupid mistake by server admin : he provide me user/pass Cpanel for old site /innactive site (main name of site was ”name-name”, now is ”namename”).
Yesterday i checked deeper, more exactly config.php , and i observed path of directory !
What can i say ?
Lot of thanks again !

Newbie

Posts

Joined
Tue Sep 05, 2017 5:08 am
Who is online

Users browsing this forum: No registered users and 8 guests