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
You are here: Home

Hephaestus

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • November 1, 2012 at 12:56 pm in reply to: eStore/NextGen – Limiting downloads to specific variations and securing links #50752
    Hephaestus
    Member

    In case anyone is wondering how to do this in the future, here are my modifications to paypal.php. Remember to mark your changes with comments so they are easy to find and reapply when upgrading eStore in the future

    After var $sandbox_mode = false; on line 26 add:

    //Hephaestus - 01/11/2012

    var $download_variation; // only provide a download link for products with this variation

    Find this code block around line 400:

    //Generate link from Nextgen gallery if PID is present.

    if(!empty($pictureID))

    {

    $download_link = eStore_get_ngg_image_url($pictureID,$cart_item_data_name);

    $pictureID = "";

    }

    else

    {

    $download_link = generate_download_link($retrieved_product,$cart_item_data_name,$this->ipn_data);

    }

    $this->debug_log('Download Link : '.$download_link,true);

    Replace this with:

    //rbearman - 01/11/2012 - START

    //Don't provide a download link if the variation is not as specified in $download_variation

    if(strpos($cart_item_data_name, '('.$this->download_variation.')') !== false)

    {

    //Generate link from Nextgen gallery if PID is present.

    if(!empty($pictureID))

    {

    $download_link = eStore_get_ngg_image_url($pictureID,$cart_item_data_name);

    $pictureID = "";

    }

    else

    {

    $download_link = generate_download_link($retrieved_product,$cart_item_data_name,$this->ipn_data);

    }

    }

    else

    {

    $download_link = "";

    }

    $this->debug_log('Download Link : '.$download_link,true);

    //rbearman - 01/11/2012 - END

    November 1, 2012 at 12:18 pm in reply to: eStore/NextGen – Limiting downloads to specific variations and securing links #50751
    Hephaestus
    Member

    Sorry, my mistake, I didn’t realise the sandbox mode was on the General Settings rather than Payment Gateways.

    November 1, 2012 at 11:01 am in reply to: eStore/NextGen – Limiting downloads to specific variations and securing links #50750
    Hephaestus
    Member

    Unfortunately you can’t pay yourself with PayPal and eStore doesn’t seem to support the PayPal Developer Sandbox for testing. Can I not just modify paypal.php to skip over the actual payment process and jump to the order email?

    October 31, 2012 at 10:20 am in reply to: eStore/NextGen – Limiting downloads to specific variations and securing links #50748
    Hephaestus
    Member

    Thanks for the help. Is the best way to quickly test this just to use the manual payment method?

    October 29, 2012 at 9:28 am in reply to: eStore/NextGen – Limiting downloads to specific variations and securing links #50746
    Hephaestus
    Member

    How would I access the selected variation at this point?

    October 28, 2012 at 11:33 am in reply to: eStore/NextGen – Limiting downloads to specific variations and securing links #50744
    Hephaestus
    Member

    We’re currently using PayPal, thanks.

    October 27, 2012 at 12:54 pm in reply to: eStore/NextGen – Limiting downloads to specific variations and securing links #50742
    Hephaestus
    Member

    Would it not be possible for me to add a check on which variation has been selected when the confirmation email is sent out, and strip the URL and download information there? If it is, could you point me in the right direction for which files to look at?

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)

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