Is there a way to make it work inside a jQuery lightbox such as Prettyphoto?
I’m doing some test actually with it and everything’s fine except on checkout.
I wanna use Paypal as the payment option.
But Paypal won’t load in a Prettyphoto iFrame so I wan’t the Paypal page to open normally by closing the Prettyphoto iFrame.
Normally, when we’re redirected by a <a href="#"></a> we just need to add <a href="#" onclick="window.parent.$.prettyPhoto.close();">Close</a> and everything’s fine.
But in the actual coding Paypal is called like this!:
(function(a){plum.shop.prototype.checkout.paypal=function(f){var b=0,e=this.options,d=[],c={user:e.paypaluser,domain:e.paypaldomain};if(!c.user||!/^.+\.[a-z]{2,4}$/.test(c.domain)){return false}this.cart.each(function(){var h,g=0;b++;d.push(["item_number_"+b,this.id]);d.push(["item_name_"+b,this.title||this.id]);d.push(["quantity_"+b,this.quantity]);d.push(["amount_"+b,this.price]);for(h in this){if(!/^(?:description|id|price|quantity|title|thumb)$/.test(h)&&g<7){d.push(["on"+g+"_"+b,h]);d.push(["os"+g+++"_"+b,this[h]])}}});this.discount&&d.push(["discount_amount_cart",this.discount]);this.tax&&d.push(["tax_cart",this.tax]);if(this.shipping){d.push(["custom","Shipping type: "+this.cart.shipping]);d.push(["handling_cart",this.shipping])}d.push(["cmd","_cart"]);d.push(["upload","1"]);d.push(["charset","utf-8"]);d.push(["currency_code",e.currency]);d.push(["business",e.paypaluser+"@"+e.paypaldomain]);e.headerurl&&d.push(["cpp_header_image",e.headerurl]);e.cancelurl&&d.push(["cancel_return",e.cancelurl]);e.returnurl&&d.push(["return",e.returnurl]);e.notifyurl&&d.push(["notify_url",e.notifyurl]);f&&d.push(["invoice",f]);this.checkout("https://www.paypal.com/cgi-bin/webscr"+c,d)}}(jQuery));
Any idea on how to insert this line? onclick=”window.parent.$.prettyPhoto.close();”
SOLVED ! Thanks Elia!
