Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

TKMB

Member
  • Content Count

    4
  • Joined

  • Last visited

Everything posted by TKMB

  1. Hi everyone, and thank you in advance to anyone who might be able to take this on :) New to all of this but determined! I've been racking my brain trying to figure this out. I've somehow managed to get the buttons in the right place, right styling etc, but I can't for the life of me get them to link to the correct pages. I'm working on the HYDE site. bellow is the header injection code I've been working with.The first button needs to go to the shopping-cart page, the second needs to go back to my product page (which is a summary block). <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> <script> $(function() { $("<a class='checkoutbutton' href='/link/'>CHECKOUT</a>").insertAfter(".sqs-add-to-cart-button"); }); </script> <script> Y.one('a[href="/test/"]').setAttribute('href', 'javascript:history.go(-1)'); </script> <script> $(function() { $("<a class='checkoutbutton' href='/link/'>BACK</a>").insertAfter(".checkoutbutton"); }); </script> Any help is MUCH appreciated. Both just go to a 404 page at the moment.
×
×
  • Create New...