test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • jason3283 Friend
    #136884

    I am trying to remove the Add To Cart button in the details page, not the products page. In short, I would like to set up my site to receive Quote Requests and Phone Calls only, yet still be able to utilize the back-end features of VirtueMart. I plan to sell from this site later but for now just post information.

    Anonymous Moderator
    #285549

    Please change file addtocart_form.tpl.php in componentscom_virtuemartthemesdefaulttemplatesproduct_detailsincludes folder

    jason3283 Friend
    #285655

    Thank you for the reply. I tried changing the php file and went so for as to remove the file all together with no results. I used Firefox web developer / Miscellaneous / Edit HTML tool to navigate to the div tag:

    <div class=”vmCartContainer”>

    <form action=”http://www.———.com/Promo/index.php” method=”post” name=”addtocart” id=”addtocart_496754cd8b2af” class=”addtocart_form” onsubmit=”handleAddToCart( this.id );return false;”>

    <div class=”vmCartDetails”>

    <input name=”product_id” value=”28″ type=”hidden”>
    <input name=”prod_id[]” value=”28″ type=”hidden”>

    </div>

    <div style=”float: right; vertical-align: middle;”>
    <input class=”addtocart_button” value=”Add to Cart” title=”Add to Cart” type=”submit”>
    </div>
    I removed it and it worked but I don’t know where the HTML file exists on my server in order to save it, and if I edit it will it only be edited for that particular product detail page or echo throughout all the details pages like I want.
    It might be nice if in the same way I removed the add to cart button in the browse category page through the admin panel, I might be able to do the same for the details page.

    jason3283 Friend
    #285696

    Well this is emberising. Apparently there is a check box in the back end vituemart global configuration that says ” If you check this, you disable all cart functionalities ” I checked it and it disabled all add to cart buttons. Sorry for the post but if someone else has this problem, there you go. :-[

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  jason3283 15 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum