vourlismenos Posted October 3, 2012 Share Posted October 3, 2012 Since the wishlist contribution works in 2.3 with minimum changes, I've tried installing to to my site. It works fine so far, even though I'm still testing it. I've been having probelms with the wishlist buttons though. I've tried converting the two buttons in wishlist.php to the new format, but I've had no luck. Currently they are like this: <?php echo tep_image_submit('button_delete.gif', 'Delete From Wishlist', 'name="delete_prod" value="delete_prod"') . " " . tep_image_submit('button_in_cart.gif', 'Add to Cart', 'name="add_prod" value="add_prod"'); ?> Any ideas on how to convert them? thanks Quote Link to comment Share on other sites More sharing options...
♥kymation Posted October 3, 2012 Share Posted October 3, 2012 Follow the instructions in this guide. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
vourlismenos Posted October 3, 2012 Author Share Posted October 3, 2012 (edited) Hi Jim, I already went through the guide and some other posts as well but I couldn't figure it out. I can convert simple buttons, but when values are added I kind of lose it. I'll have another look and post here, but any help would be appreciated. Edited October 3, 2012 by vourlismenos Quote Link to comment Share on other sites More sharing options...
vourlismenos Posted October 3, 2012 Author Share Posted October 3, 2012 I think I can only get as far as cho tep_draw_button(IMAGE_BUTTON_DELETE_FROM_WISHLIST, 'icon', tep_href_link(FILENAME_WISHLIST), 'submit' I know that is not correct, but I've been trying almost all day to adjust the wishlist... Quote Link to comment Share on other sites More sharing options...
♥kymation Posted October 3, 2012 Share Posted October 3, 2012 (edited) Try this echo tep_draw_button(IMAGE_BUTTON_DELETE_FROM_WISHLIST, 'icon', tep_href_link(FILENAME_WISHLIST, 'name=delete_prod value=delete_prod'), 'primary') Regards Jim Edit: Stupid comment box Edited October 3, 2012 by kymation Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
vourlismenos Posted October 3, 2012 Author Share Posted October 3, 2012 It's not working unfortunately... I honestly can't understand how the whole thing works :( Quote Link to comment Share on other sites More sharing options...
vourlismenos Posted October 3, 2012 Author Share Posted October 3, 2012 for the time being, I'm keeping the old buttons. I just changed them to look like the other ones Quote Link to comment Share on other sites More sharing options...
thejudge99 Posted October 4, 2012 Share Posted October 4, 2012 (edited) im using $params['type']="submit"; $params['params']='alt = "'.IMAGE_BUTTON_DELETE.'" title = "'.IMAGE_BUTTON_DELETE.'" name="delete_prod_x" value="delete_prod"'; echo tep_draw_button(IMAGE_BUTTON_DELETE,null,null,'secondary',$params); you can change the first null to be another symbol - like "icon" or "trash" Jules edit - the original used a button image thats why the delete_prod_x is needed Edited October 4, 2012 by thejudge99 mac2me 1 Quote Link to comment Share on other sites More sharing options...
thejudge99 Posted October 4, 2012 Share Posted October 4, 2012 and the add to cart $params['params']='alt = "'.IMAGE_BUTTON_IN_CART.'" title = "'.IMAGE_BUTTON_IN_CART.'" name="add_prod_x" value="delete_prod"'; echo ' '.tep_draw_button(IMAGE_BUTTON_IN_CART,'cart',null,'primary',$params); Quote Link to comment Share on other sites More sharing options...
vourlismenos Posted October 6, 2012 Author Share Posted October 6, 2012 @@thejudge99 I've tested them and they work! Thanks!! I had tried with prod_x but I made a mistake somewhere.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.