Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Need help adding script to shopping cart page

    Hello,

    I am trying to add the following to the shopping cart page...

    <script type="text/javascript" data-pp-pubid="30175f551d" data-pp-placementtype="468x60"> (function (d, t) {
    "use strict";
    var s = d.getElementsByTagName(t)[0], n = d.createElement(t);
    n.src = "//paypal.adtag.where.com/merchant.js";
    s.parentNode.insertBefore(n, s);
    }(document, "script"));
    </script>

    which will produce this banner Click image for larger version. 

Name:	render.gif 
Views:	48 
Size:	9.6 KB 
ID:	12861 to the shopping cart page. I would love to be able to place it here... Click image for larger version. 

Name:	Untitled2.jpg 
Views:	58 
Size:	24.4 KB 
ID:	12863

    Any help would be great!

  2. #2
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Need help adding script to shopping cart page

    Hmmm... No one on this huh? Any help would be great!

  3. #3
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Need help adding script to shopping cart page

    Quote Originally Posted by doooomed View Post
    Hmmm... No one on this huh? Any help would be great!
    Could add it to
    /includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php

    before:
    <?php
    if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '1') {
    ?>

  4. #4
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Need help adding script to shopping cart page

    Thank you rharbour! I moved the code around a bit and this is what I have...

    Click image for larger version. 

Name:	Untitled3.jpg 
Views:	40 
Size:	19.0 KB 
ID:	12869

    I can't seem to get the top to align with the back to shopping/go to checkout buttons. I'd also like to move the banner a little to the right...Thanks!

  5. #5
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Need help adding script to shopping cart page

    Quote Originally Posted by doooomed View Post
    Thank you rharbour! I moved the code around a bit and this is what I have...

    I can't seem to get the top to align with the back to shopping/go to checkout buttons. I'd also like to move the banner a little to the right...Thanks!
    Those will more than likely be simple css changes, but without seeing the live site it will be hard to advise.

  6. #6
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Need help adding script to shopping cart page

    d0000med.com replace the zero's with o's

  7. #7
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Need help adding script to shopping cart page

    css looks ok, try removing the


    <br class="clearBoth" />

    before the banner

  8. #8
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Need help adding script to shopping cart page

    The only thing that seems to change when removing <br class="clearBoth" /> is the position of the "check out with Paypal" button. See this picture...

    Click image for larger version. 

Name:	Untitled4.jpg 
Views:	37 
Size:	14.3 KB 
ID:	12870

    The Paypal button is normally like this...

    Click image for larger version. 

Name:	Untitled3.jpg 
Views:	40 
Size:	19.0 KB 
ID:	12871

  9. #9
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Need help adding script to shopping cart page

    Your site looks different on my laptop, the shopping cart page does not have that huge gap

    this is the code to position the banner if that is what you want, I do not suggest doing so

    .centerColumn > center > span > a > img {
    position:relative;
    top:-50px;
    left:0px;
    right:0px;}

    adjust px as you see fit

  10. #10
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Need help adding script to shopping cart page

    Hi again,

    What huge gap are you referring to? Also what browser? I'm curious why it looks different for you. Why do you suggest I do not use the code? Thanks for all the help!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Need Help in adding a add to cart button on product info page
    By rmu065 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 9 Apr 2013, 01:50 AM
  2. Question about adding products to my cart from the shopping cart page
    By audleman in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 31 Aug 2010, 07:37 AM
  3. Replies: 2
    Last Post: 7 Oct 2009, 05:33 AM
  4. Need Help with Shopping Cart
    By hamspots in forum General Questions
    Replies: 2
    Last Post: 19 Jan 2009, 03:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg