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>
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>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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 amAdd-to-cart button - catalog/view/theme/<your_theme>/template/product/product.twig file
remove:
Then, for the shopping cart link, in your catalog/view/theme/<your_theme>/template/common/header.twig file,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>
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>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
How did you edit product twig through OC admin theme editor or did you edit the FILE DIRECTLY
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.
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
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 !
Hi,straightlight wrote: ↑Sat Dec 02, 2017 4:19 amAdd-to-cart button - catalog/view/theme/<your_theme>/template/product/product.twig file
remove:
Then, for the shopping cart link, in your catalog/view/theme/<your_theme>/template/common/header.twig file,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>
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>
Thank you so much for this simple solution.
The solution worked for the add to cart button, but everytime I try to remove the shopping cart from common/header.twig file, nothing happens on the website, when I refresh the theme, the line of the shopping cart returns to header.twig
Is there any solution for this, so it can be actually deleted.
If anyone can help, it will be greatly appreciated.
Thank you!
OC version. Refresh both caches.tegr96 wrote: ↑Thu Aug 05, 2021 3:23 pmHi,straightlight wrote: ↑Sat Dec 02, 2017 4:19 amAdd-to-cart button - catalog/view/theme/<your_theme>/template/product/product.twig file
remove:
Then, for the shopping cart link, in your catalog/view/theme/<your_theme>/template/common/header.twig file,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>
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>
Thank you so much for this simple solution.
The solution worked for the add to cart button, but everytime I try to remove the shopping cart from common/header.twig file, nothing happens on the website, when I refresh the theme, the line of the shopping cart returns to header.twig
Is there any solution for this, so it can be actually deleted.
If anyone can help, it will be greatly appreciated.
Thank you!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Ensure your system/storage folder is located outside of your public_html folder and that the CHMOD settings are recursively set to 0755 on the folders - not on files. Then, edit both config.php files to address the new location of your storage folder and clear both caches again. Also ensure to save your files in UTF-8 without BOM with your external editor prior to re-upload the files on your file server.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 374 guests