- This topic has 2 replies, 2 voices, and was last updated 12 years, 12 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Tracing ref_text from eStore_product_management.php
I am tracing a product setting, through the script and need to see how this is handled, looking back starting at eStore_product_management.php
line 725
<input name=”ref_text” type=”text” id=”ref_text” value=”<?php echo $editingproduct->ref_text; ?>” size=”20″ />
We have ref_text which is the membership level ID, (from the docs)
is this the same as $subsc_ref; in the eStore_handle_subsc_ipn.php
line 254
$membership_level = $subsc_ref;
What I need to do is to find out where this is handled in the script, from the point of sale to the point where the user management functions take place.
For example, if you sell a product using the Estore plugin, and then you assign a membership level to that product, using the ref_text field in the form.
How is that handled, in the back end, when a user is setup in the system to access that membership level, and how can I trace that through the entire script back to its
form reference point.
I could go through the code line by line, but I am hoping someone here has already done this and can perhaps same me some time here, thanks.
Tim
Your figured it out correctly. Basically search for the following line in the “eStore_handle_subsc_ipn.php” file and you will see two occurrences:
$membership_level = $subsc_ref;
Ok thank you I will see if I can find the rest of it, I am looking for how the system assigns that value to the db, so I can see how to make an adjustment I am thinking about.