Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Make Wish List a button instead of text link
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mark Priest
VP-CART Expert

United Kingdom
580 Posts

Posted - June 11 2016 :  11:50:10  Show Profile  Reply with Quote
Hi All.

What''s the best way to make the add to wishlist like a button to match the order button (maybe a different colour) instead of the current text link?

Thanks

Regards,

Mark

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - June 21 2016 :  15:20:35  Show Profile  Visit serjtankian's Homepage  Reply with Quote
locate this in shopproductformat.asp

strMessage = "<a href=""" & strURL & """>" & GetLang("Langwishlistsave") & "</a>"

if you want to add button image, you can try by adding

strMessage = "<a href=""" & strURL & """>" & "<img src=""image_location"">" & "</a>"

pls have a try and post here if this is works or not, i''m not yet test it actually




*peace - serj*
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - June 22 2016 :  05:12:42  Show Profile  Reply with Quote
@serj, nice posting. I have question, how do put language code on wishlist button eg; langbuttonwishlist : "Click to Wishlist"

Thanks
Go to Top of Page

Mark Priest
VP-CART Expert

United Kingdom
580 Posts

Posted - June 22 2016 :  06:26:17  Show Profile  Reply with Quote
Hi Serj

Thanks, wanted it to just be a button rather than image button but will use your code to have a play

Regards,

Mark
Go to Top of Page

vaheh
VP-CART New User

USA
115 Posts

Posted - June 24 2016 :  20:03:04  Show Profile  Visit vaheh's Homepage  Reply with Quote
Hi Mark,

Modify your products template file (tmp_products.asp) and add:

<button class="submitbtn" type="button" onclick="visitPage();">ADD TO WISHLIST</button>

then add before [ADD_FORMEND] in the same file the following javascript code inside:

function visitPage(){
window.location=''shopwishlist.asp?action=add&id=[catalogid]'';
}


Good luck,
Vaheh

Edited by - vaheh on June 24 2016 20:04:07
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - June 27 2016 :  16:07:17  Show Profile  Visit serjtankian's Homepage  Reply with Quote
quote:
Originally posted by danielrichardson

@serj, nice posting. I have question, how do put language code on wishlist button eg; langbuttonwishlist : "Click to Wishlist"

Thanks



Hi Dan,

you can use vaheh suggestion, it need to play with css also if you have your own image button




*peace - serj*
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00