Support » Plugin: NextGEN Gallery ColorBoxer » Adding additional content

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mark Jeldi

    (@mark-jeldi)

    Hi srailsback,

    I’m glad to hear your client’s enjoying the plugin!

    It sounds as though you’re looking to add a “Buy Now” link in the ColorBox lightbox’s description text, which points to a specific sales page for the item. Is this correct?

    If so, you can simply add the link HTML directly into NextGEN Gallery’s “Description” field for each image at Gallery –> Manage Gallery –> your_gallery_name.

    For example:
    My awesome painting | <a href="http://www.mysite.com/store/my-awesome-painting/" style="color: red;">Buy Now!</a>

    Hope this helps!

    Cheers,
    Mark.

    Thread Starter srailsback

    (@srailsback)

    Thanks Mark for the tip – unfortunately it was not as simple as you described. Client wanted the buy now link in #cboxBottomCenter and also did not want to have to build a project page for each item (he has thousands). In the end I rolled a little js to get the desired outcome:

    jQuery(document).bind('cbox_complete', function(){
    	// get the title
    	var t = jQuery('#cboxTitle').text();	
    
    	// split it
    	var arr = t.split(' ');
    	var imageId = arr[0].replace('#','');
    	jQuery('#cboxBottomCenter').append("<a class='cbox-add-to-cart' style='float:left' margin-top: -10px;' href='cart/?image="+imageId+"'>Purchase Print</a>");
    });

    Thankfully he includes the product id on all product titles. I wrote a custom page template that handles the incoming request and displays the product and cart stuff.

    Plugin Author Mark Jeldi

    (@mark-jeldi)

    Hey srailsback,

    No worries. And thanks for sharing your custom solution! That’s very clever! 🙂

    Cheers,
    Mark.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding additional content’ is closed to new replies.