![]() |
Change Add To Cart Button on Fly |
Post Reply ![]() |
Author | |
earl_lee ![]() Newbie ![]() Joined: 05-February-2009 Location: IOWA Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 05-February-2009 at 7:31am |
I have a client that uses Product Cart primarily as a vehicle to accept donations, as such we have modified the "Add to Cart" button to say "Give A Gift". Now however the foundation has decided to start selling a small number of items such as T-Shirts to support their fund-raising. So We would like to be able to have the Add To Cart Button display as "Add To Cart" anytime the product ID is other than a Donation. Anyone have q great idea on how to make this happen or point me in the right direction?
|
|
![]() |
|
Hamish ![]() Admin Group ![]() Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() |
Hi Earl,
Do you have just one donations - or several? If it's several then I would assume they are all in the same category - which would ONLY contain donations. If that's the case then a small customization would be possible to check for the category number and decide which image to display. |
|
![]() |
|
earl_lee ![]() Newbie ![]() Joined: 05-February-2009 Location: IOWA Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Actually there is just one product for donations which is productid 1 - So I thought the best best would be to check against the productid and if it anything ither than 1 display the "Add to Cart" - Problem is that I can't find where the buttons are actually initialized - what controls pcs_AddtoCart to look for the image pc_button_add.gif ?
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |