jaychennai Posted October 7, 2014 Share Posted October 7, 2014 Hi how do i replace the "add to cart" button with some other text for products which dont have a price set ? thanks Link to comment Share on other sites More sharing options...
jaychennai Posted October 7, 2014 Author Share Posted October 7, 2014 i did it , it was very easy, just added this ($product.price > 0) to the right place, took me a while though Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2014 Share Posted October 8, 2014 this is modification for product listings pages like category view etc. right? what about other parts of website? Link to comment Share on other sites More sharing options...
jaychennai Posted October 9, 2014 Author Share Posted October 9, 2014 works every where Link to comment Share on other sites More sharing options...
vekia Posted October 9, 2014 Share Posted October 9, 2014 are you sure? you tested it in product.tpl for example? $product variable is there an object, not an array Link to comment Share on other sites More sharing options...
jaychennai Posted October 9, 2014 Author Share Posted October 9, 2014 yeah , sorry it doesnt show in product desc page Link to comment Share on other sites More sharing options...
jaychennai Posted October 9, 2014 Author Share Posted October 9, 2014 BTW what file do i edit to show the same in product desc page ?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now