-
AuthorPosts
-
jason3283 Friend
jason3283
- Join date:
- December 2008
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
January 8, 2009 at 6:40 pm #136884I 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 ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
January 9, 2009 at 7:11 am #285549Please change file addtocart_form.tpl.php in componentscom_virtuemartthemesdefaulttemplatesproduct_detailsincludes folder
jason3283 Friendjason3283
- Join date:
- December 2008
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
January 9, 2009 at 2:18 pm #285655Thank 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 Friendjason3283
- Join date:
- December 2008
- Posts:
- 12
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
January 9, 2009 at 7:26 pm #285696Well 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. :-[
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by jason3283 15 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum