Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Various product ID's – Possible with Nextgen Gallery?

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Various product ID's – Possible with Nextgen Gallery?

  • This topic has 10 replies, 3 voices, and was last updated 14 years ago by rickyb.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • June 4, 2011 at 10:59 pm #3531
    timothymichael79
    Member

    It is possible to use 2 or 3 different product ID’s with Nextgen? i.e. one gallery with say a friends pricing for photos and say another gallery with a full price gallery?

    June 5, 2011 at 1:53 am #33074
    amin007
    Participant

    Which NextGen gallery integration are you talking about? Please post a link to the integration documentation that you are following.

    June 7, 2011 at 4:23 pm #33075
    timothymichael79
    Member

    The Alternative method

    June 8, 2011 at 2:56 am #33076
    amin007
    Participant

    Update:

    https://support.tipsandtricks-hq.com/forums/topic/using-multiple-estore-product-as-the-template-for-nextgen-gallery-integration


    Nope, the alternate method (use one product as a template for every photo) does not have the option to use multiple products multiple gallery.

    July 6, 2011 at 1:34 am #33077
    rickyb
    Member

    Sure would be nice to have more than just one product for the “alternate” method. What if I created a copy of the template?

    July 6, 2011 at 7:50 am #33078
    amin007
    Participant

    Yes you can make a copy of the template then hardcode a different product ID in that template that you copied.

    July 6, 2011 at 3:31 pm #33079
    rickyb
    Member

    Cool! I’ll see if I can find the place to hardcode a different product ID. I’ll ask you where if I can’t find it. Thanks!

    July 6, 2011 at 3:56 pm #33080
    rickyb
    Member

    Is this the right place in gallery-wp-estore-auto-addtocart.php? I’m copying this file to add another automatic product for another set of images with different sizes and prices.

    <!– Thumbnails –>

    <?php foreach ($images as $image) : ?>

    <div id=”ngg-image-<?php echo $image->pid ?>” class=”ngg-gallery-thumbnail-box” <?php echo $gallery->imagewidth ?> >

    I’m thinking I have to replace the “pid” in <php ecoh $image->pid ?> with a product ID that I create in Add/Edit Products.

    Am I on track?

    July 7, 2011 at 5:46 am #33081
    amin007
    Participant

    Okay I have updated eStore so you can do what you are after. So first of all get a new build of eStore from here and update your site:

    https://support.tipsandtricks-hq.com/update-request

    Now, open the template file that you copied (lets refer to this file as “gallery-wp-estore-auto-addtocart-copied.php”). Search for the following line of code in this file:

    <?php echo print_eStore_ngg_add_to_cart($image); ?>

    Once you find it change it to the following:

    <?php echo print_eStore_ngg_add_to_cart($image,"2"); ?>

    Replace 2 with the actual PRODUCT ID number (this the ID of the product that you want to use as the template product from this gallery template).

    That should do it. Now, when you embed a gallery using this modified template file it will use the specified product as the template product.

    July 7, 2011 at 9:51 pm #33082
    rickyb
    Member

    Wow, that is so cool. I must say that I am totally impressed by your responsiveness. Thank you very much. I’m off to give this a whirl. I’ll let you know how it goes.

    July 8, 2011 at 12:43 am #33083
    rickyb
    Member

    Seems to work great! Thanks much!

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ