How Do You Remove Upload Products in Opencart
How to remove add to wishlist on products
How-do-you-do,
On every production there is an selection add to wishlist, but I do not want this option.
Meet screenshot attached.
How can I remove this option?
Kind Regards,
Ambervision
Attachments
Add to wishlist option.png (29.two KiB) Viewed 45108 times
Re: How to remove add to wishlist on products
Your need to edit your products.tpl
Re: How to remove add together to wishlist on products
I was gonna put upwards the same question...
I deleted this part from product/category.tpl
Code: Select all
<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php repeat $button_wishlist; ?></a></div> and text "null" appears on the location where the 'add to wish listing" was..
Re: How to remove add to wishlist on products
I had the same result. Merely it's not every bit simple as the current responses. Y'all demand to expect through several templates and the php files to fully disable wishlists.
I discover it best to annotate lines out rather than delete them. And make a back up of any file you lot're editing.
Wishlist appears in all these files:
\admin\controller\setting\setting.php (20 hits)
\admin\controller\setting\shop.php (24 hits)
\admin\linguistic communication\english\setting\setting.php (2 hits)
\admin\view\template\setting\setting.tpl (seven hits)
\admin\view\template\setting\store_form.tpl (vii hits)
\itemize\controller\account\account.php (four hits)
\catalog\controller\account\wishlist.php (26 hits)
\catalog\controller\common\footer.php (4 hits)
\catalog\controller\common\header.php (6 hits)
\itemize\controller\module\account.php (4 hits)
\catalog\controller\production\category.php (2 hits)
\catalog\controller\product\manufacturer.php (2 hits)
\catalog\controller\production\product.php (ii hits)
\catalog\controller\product\search.php (2 hits)
\catalog\controller\product\special.php (2 hits)
\itemize\language\english language\account\account.php (1 hits)
\itemize\linguistic communication\english language\account\wishlist.php (1 hits)
\itemize\language\english\common\footer.php (1 hits)
\catalog\linguistic communication\english language\common\header.php (1 hits)
\catalog\language\english\english.php (one hits)
\catalog\language\english\module\account.php (ane hits)
\catalog\view\javascript\common.js (3 hits)
\catalog\view\theme\default\stylesheet\stylesheet.css (29 hits)
\itemize\view\theme\default\template\business relationship\account.tpl (ii hits)
\catalog\view\theme\default\template\account\wishlist.tpl (iii hits)
\catalog\view\theme\default\template\common\footer.tpl (2 hits)
\itemize\view\theme\default\template\common\header.tpl (3 hits)
\catalog\view\theme\default\template\module\account.tpl (ii hits)
\catalog\view\theme\default\template\production\category.tpl (7 hits)
\itemize\view\theme\default\template\production\manufacturer_info.tpl (7 hits)
\itemize\view\theme\default\template\product\product.tpl (2 hits)
\itemize\view\theme\default\template\product\search.tpl (vii hits)
\catalog\view\theme\default\template\product\special.tpl (vii hits)
\install\opencart.sql (3 hits)
\system\library\customer.php (12 hits)
I would like to tell y'all how I dealt with it, but I've already heavily edited my templates so could easily bespeak you the wrong management.
This list is a strong argument IMHO for some on/off switches in the dorsum terminate. (Same for breadcrumbs actually).
Good luck
Joined
Sun Apr 24, 2011 12:thirty am
Re: How to remove add together to wishlist on products
I would propose yous don't affect anything simply the template files. In that location's a lower chance of breaking stuff that fashion, and it would exist easier to revert in case you lot wanted to add the wishlist back.
I needed to remove it every bit well and it was enough to remove it from the template like 1 of the answers above mentions. You also need to remove it from within the JavaScript functions in the template - that'due south why the poster above is seeing "null". I don't accept admission to the files right now otherwise I'd tell you exactly what you lot need to remove from your template.
Last edited past pthesis on Sunday Jun 26, 2011 1:23 am, edited 1 fourth dimension in total.
Re: How to remove add to wishlist on products
chokoret wrote:I was gonna put upwardly the aforementioned question...
I deleted this part from product/category.tpl
Code: Select all
<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>and text "null" appears on the location where the 'add to wish list" was..
this is where I commented out and add to wish list as well as aught were gone:
Lawmaking: Select all
<div form="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><!--<?php repeat $button_wishlist; ?>--></a></div> Joined
Tue May 11, 2010 10:28 pm
Re: How to remove add to wishlist on products
Remove these two lines in category.tpl:
html += ' <div class="wishlist">' + $(element).notice('.wishlist').html() + '</div>';
html += ' <div class="compare">' + $(chemical element).observe('.compare').html() + '</div>';
and these two lines in product.tpl:
<div><a onclick="addToWishList('<?php repeat $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />
<a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></div>
+ remove from manufacturer_info.tpl:
html += ' <div class="wishlist">' + $(chemical element).find('.wishlist').html() + '</div>';
html += ' <div class="compare">' + $(chemical element).observe('.compare').html() + '</div>';
It seems to work for me at least.
Anbefalt vibrator
Dildo i glass og metall
Myke sex leketøy i silikon
Re: How to remove add to wishlist on products
This is not bad. I had the same issues likewise. I as well agree that nosotros should non edit the PHP files. There is no reason to. The user only sees your Views anyway and keeping the PHP files intact is perfectly fine. If you edit the PHP files, you never know what yous will break since other PHP code is relying and pointing to other code, especially in MVC frameworks.
Comment out the views only.
Joined
Wed Jun 29, 2011 11:44 pm
Re: How to remove add to wishlist on products
Don't forget to edit the Header and Footer tpls also, if only for aesthetics.
Tromas wrote:Remove these 2 lines in category.tpl:
html += ' <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';
html += ' <div class="compare">' + $(chemical element).find('.compare').html() + '</div>';and these two lines in product.tpl:
<div><a onclick="addToWishList('<?php repeat $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />
<a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></div>+ remove from manufacturer_info.tpl:
html += ' <div grade="wishlist">' + $(chemical element).find('.wishlist').html() + '</div>';
html += ' <div form="compare">' + $(element).find('.compare').html() + '</div>';Information technology seems to piece of work for me at to the lowest degree.
Re: How to remove add to wishlist on products
Do Tromas' method and so that it doesnt work and appear on whatever pages.
Then become to (/catalog/view/theme/default/template/common) and comment out from header.tpl and delete line from footer.tpl
Thanks Tromas, nyltak it works 100% fine for me.
Thanks!
Christian
Joined
Mon Jun 29, 2009 10:xiv am
Re: How to remove add to wishlist on products
You lot must edit ii files under your template folder (itemize/view/theme/your template name/template/product/):
1. product.tpl
ii. category.tpl
For both files, edit by commenting codes as follows:
<div class="more_actions">
<div class="wishlist"><!--<a onclick="addToWishList('<?php echo $product_id; ?>');"><?php repeat $button_wishlist; ?></a>--></div>
<div form="compare"><!--<a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a>--></div>
</div>
Consequence: No wishlist nor Compare and yep, no more cipher error.
Got information technology working thru trial and mistake.
Re: How to remove add to wishlist on products
Prestashop for that remedy, and "probably" (run it verbatim through engines) taken from old and contempo OC forum threads in the offset place?! (1) It specifically speaks to removing the crime "from the production page in OpenCart". That is high above in this thread, appears in scores of other prior threads, and seems not to satisfy folks above who wanted to launch editorial platoons and divisions on hapless dozes of files. (2) It specifically recommends simply <!--commenting out// --> the block that paints the criminal offence. That is already long since on record in OC threads. Skillful grief.
Folks, the more files yous edit, the more you'll need to PROOFREAD your changes, and you lot can set quite a few files at once into a competent ascii text editor in lodge to "modify all files" at once for each change in the essentially identical blocks. Back 'em upwardly beginning.
Re: How to remove add to wishlist on products
Hullo,
in club to remove wishlist and compare i just opened catalog/view/javascript/mutual.js and added
$(".wishlist").hide();
$(".compare").hibernate();
these two simple lines. This mode, every fourth dimension a page sees these 2 classes it volition just hibernate them
Joined
Sun December 01, 2013 11:44 am
Who is online
Users browsing this forum: No registered users and 6 guests
Source: https://forum.opencart.com/viewtopic.php?t=34480
0 Response to "How Do You Remove Upload Products in Opencart"
Post a Comment