Try the Demo

Magento Forum

   
To eliminate completely wishlist and cart
 
Black Cat
Mentor
 
Avatar
Total Posts:  2849
Joined:  2008-02-14
Gonnesa/ Cagliari (Italy)
 

Hi. I wanted to know if it is possible medium backend to eliminate whole functionalities as the Wishlist and the cart. I intend really to cancel every trace of it, as for instance the links in the toplink and in the catalog.
I have disarmed the pages in System >> Advanced but unfortunately the links keep on being us (and to work).
Do I have to eliminate them from the layout?
In the case, is it enough to eliminate the stinghes of code in correct customer.xml? Or is there a simpler way?
And the links and buttons in the catalog and all others page? what is the file to modify?

 Signature 

---- Antonio Carboni ----
Maintainer Traduzione Italiana
Magento Webdesigner e Consulente Magento
E-Commerce Specialist di Magenio Team

Community ITA su Facebook


Autore dei libri Magento Guida al Design e Magento Guida pratica all’uso

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Mentor
 
Avatar
Total Posts:  2849
Joined:  2008-02-14
Gonnesa/ Cagliari (Italy)
 

i have deleted the wishlist. I have chose “No” in System>> Customer-> Whislist
The problem is that same system doesn’t exist for the cart and in general the clients’ control panel.
I would like to disable the recording of the clients and his panel
How can I do?

 Signature 

---- Antonio Carboni ----
Maintainer Traduzione Italiana
Magento Webdesigner e Consulente Magento
E-Commerce Specialist di Magenio Team

Community ITA su Facebook


Autore dei libri Magento Guida al Design e Magento Guida pratica all’uso

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hi black cat,

you need to disable the functionality of wishlist ? or you just want to hide some link of wishlist ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Mentor
 
Avatar
Total Posts:  2849
Joined:  2008-02-14
Gonnesa/ Cagliari (Italy)
 

ehm now i have disable the wishlist, ma the Cart and the registration users?

 Signature 

---- Antonio Carboni ----
Maintainer Traduzione Italiana
Magento Webdesigner e Consulente Magento
E-Commerce Specialist di Magenio Team

Community ITA su Facebook


Autore dei libri Magento Guida al Design e Magento Guida pratica all’uso

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Mentor
 
Avatar
Total Posts:  2849
Joined:  2008-02-14
Gonnesa/ Cagliari (Italy)
 

Links there are too many to be able to eliminate them everybody

 Signature 

---- Antonio Carboni ----
Maintainer Traduzione Italiana
Magento Webdesigner e Consulente Magento
E-Commerce Specialist di Magenio Team

Community ITA su Facebook


Autore dei libri Magento Guida al Design e Magento Guida pratica all’uso

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

try to remove this code in app/design/frontend/default/default/template/catalog/product/view.phtml

<form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form">
            <
fieldset>
            <
input type="hidden" name="product" value="<?php echo $_product->getId() ?>"/>
            <
input type="hidden" name="related_product" id="related-products-field" value=""/>
            </
fieldset>

                
<?php echo $this->getChildHtml('alert_urls'?>

                <?php 
echo $this->getChildHtml('product_type_data'?>

            
</form>

            <
script type="text/javascript">
                var 
productAddToCartForm = new VarienForm('product_addtocart_form');
                
productAddToCartForm.submit = function() {
                    
if(this.validator.validate()) {
                        this
.form.submit();
                    
}
                }
.bind(productAddToCartForm);
            
</script>

and this from list.phtml in the same folder

<div class="product-shop">
            <
h5><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>"><?php echo $this->htmlEscape($_product->getName())?></a></h5>
            
<?php if($_product->getRatingSummary()): ?>
            <?php 
echo $this->helper('review/product')->getSummaryHtml($_product?>
            <?php 
endif; ?>
            <?php 
echo $this->helper('catalog/product')->getPriceHtml($_producttrue?>
            <?php 
if($_product->isSaleable()): ?>
            
<button class="form-button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><?php echo $this->__('Add to Cart'?></span></button>
            
<?php else: ?>
            
<div class="out-of-stock"><?php echo $this->__('Out of stock'?></div>
            
<?php endif; ?>

these are the add to cart button of magento

you can also delete the div that contain review, compare, etc

in customer.xml in layout folder you can control what you want the customers see when they are not logged in
like this

<customer_logged_in>
        <
reference name="top.links">
            <
action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
        </
reference>
    </
customer_logged_in>

 Signature 

Believe Yourself

My Magento Shop http://www.ecobaby.it

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Mentor
 
Avatar
Total Posts:  2849
Joined:  2008-02-14
Gonnesa/ Cagliari (Italy)
 

it doesn’t work

 Signature 

---- Antonio Carboni ----
Maintainer Traduzione Italiana
Magento Webdesigner e Consulente Magento
E-Commerce Specialist di Magenio Team

Community ITA su Facebook


Autore dei libri Magento Guida al Design e Magento Guida pratica all’uso

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

I’m not quite sure about this, but you can try :

at : app/code/core/Mage/Wishlist/Block/Links.php

change this :
if ($this->helper(’wishlist’)->isAllow()){

into :
if (false && $this->helper(’wishlist’)->isAllow()){

May this work for you....

 
Magento Community Magento Community
Magento Community
Magento Community
 
lucian303
Member
 
Avatar
Total Posts:  74
Joined:  2008-03-03
 

You can disable them, but you will need to edit a bunch of .phtml template files that do not check whether the wishlist is supposed to show it or not and still shows a button for it or a blank space. I just commented them out in the .phtml files.

 
Magento Community Magento Community
Magento Community
Magento Community
 
roco
Sr. Member
 
Total Posts:  191
Joined:  2008-03-18
 

Lucian303 - Which .phtml files do I need to edit?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top