Support » Plugin: WP eCommerce » Fancy purchase notification position

  • Have added this round about line 1167 of wp-e-commerce.js to reposition the notification box once the response text is received and the “spinner” removed.

            left: (jQuery(window).width() - jQuery('#fancy_notification').outerWidth())/2,
            top: (jQuery(window).height() - jQuery('#fancy_notification').outerHeight())/2

    Hopefully the devs will agree and fold this back into the code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Justin Sainton


    Hi whitelamp!

    Curious as to what version you’re on? I don’t see an area in that file around 1167 that would make sense for this code.

    In addition, I’m not completely sure this would make sense in core – however, you could use this custom event to do exactly what you’ve described here.

    Okay, this site is still on 3.11.3. In 3.11.7 the equivalent place would be line 1150. If it is still necessary at all – the code does look quite different. (Afraid I’m not going to sit here analysing it!).

    What we found that the first time the “added to cart” box popped up, it’s position was based on its original width – i.e. only containing the spinner. Then when there was some actual “you have added” style content to display, it was too far to the right.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fancy purchase notification position’ is closed to new replies.