Webmastersite.net
Register Log In

Sponsorship template variable
Paypal showing hidden variable on checkout

Comments on Sponsorship template variable

sparkalina
Forum Regular

Usergroup: Customer
Joined: Nov 26, 2003

Total Topics: 70
Total Comments: 211
Posted May 19, 2011 - 7:54 PM:

I'm not sure if you're aware of this but on the new PayPal "invoice" (the page users are taken to once they click the buy button on sponsor.tpl) loads the hidden variable {SPONSORITEM[1]} on the left hand column.

This might be confusing to some users and I wondered if there was a way for it to not show up.

Or is it suppose to show up but as something else?

Attached snapshot to explain what I mean.

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted May 19, 2011 - 8:23 PM:

What it should show is the actual item number, you need to update the template to the current version to get that displayed properly.

I don't see any way to hide the item number though.
sparkalina
Forum Regular

Usergroup: Customer
Joined: Nov 26, 2003

Total Topics: 70
Total Comments: 211
Posted May 19, 2011 - 8:32 PM:

Okay, thanks.

My bad.
sparkalina
Forum Regular

Usergroup: Customer
Joined: Nov 26, 2003

Total Topics: 70
Total Comments: 211
Posted May 19, 2011 - 8:40 PM:

I still have an issue.

I originally had my paypal buttons showing up based on the links type.

What variable format do I use instead of {SPONSORITEM[1]} to attain that such that

linktype = property only shows two sponsorships {SPONSORITEM[1]} (6months) and {SPONSORITEM[2]} (12months.


linktype = vendor only shows its paypal button and so on.

----

For item_number should I just put the sponsorship item number and that's it?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted May 20, 2011 - 3:34 AM:

Please look at the current template (click "show standard template"), it uses {SPONSORITEM} within <!-- --> commented regions. Not the [1] stuff. Don't type in a sponsorship item number by hand to the template (you used to need to in old versions, but not now), let the script handle that. It will display all the levels automatically as you've entered them at Admin -> revenue -> sponsorship.
sparkalina
Forum Regular

Usergroup: Customer
Joined: Nov 26, 2003

Total Topics: 70
Total Comments: 211
Posted May 20, 2011 - 4:01 AM:

That's great and all, but I only want to show various levels to various groups.

IE
listing type A = 5$
listing type B = 10$


Usergroup 1 has paid for item type A but now wants to be B
Usergroup 1 can upgrade to item type B for $5.00 where as
Usergroup 1 can buy item type B from the start for $10.00.

Forcing an item_number won't work? Because I only want the users with A listings to see ONE paypal button to upgrade to B, not a full on purchase.
They're getting a discount for upgrading and I can 't trust a user to push the right paypal button.

I'm forcing item types A and B based on user choice (e.g. two different submit link forms - it's always been like that for me anyway).

That way when we reach sponsor.tpl, I can filter different paypal buttons based on item type and amount of funds (I filter via funds assuming if the sum of funds is greater than 0 they probably purchased item type A and might want to upgrade to (item_number 4), if less than, they're about to run out or they're new/unpaid hidden listings where someone skipped the sponsor page) These users (the hidden/pending listings get the two buttons giving them a choice of item type A for 6 months (item_number 1) or item type A for 12 months (item_number 2)

Can I make it more complicated? Yes.

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted May 23, 2011 - 7:23 PM:

Just conditionalize it like this (this makes only the sponsorship level with the item #87 show up):

<!-- BEGIN LEVELS -->
<IF {SPONSORITEM} is 87>

<IF {SPONSORREQUIRED} is yes and {TYPE}>
<p>{LANG_SPONSOR_REQUIREDHELP}</p>
<ELSE>
<p>{LANG_SPONSOR_HELP}</p>
</IF>

<IF {PAYPALEMAIL}>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="{PAYPALEMAIL}" />
<input type="hidden" name="undefined_quantity" value="1" />
<input type="hidden" name="item_name" value="{SITETITLE} {LANG_GENERAL_SPONSORSHIP}" />
<input type="hidden" name="item_number" value="{SPONSORITEM}" />
<input type="hidden" name="amount" value="{SPONSORCHARGE}" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="return" value="{DIRURL}/paypal.php?showsite=1" />
<input type="hidden" name="notify_url" value="{DIRURL}/paypal.php" />
<input type="hidden" name="cancel_return" value="{DIRURL}" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="{LINKCURRENCY}" />
<input type="hidden" name="on0" value="linkid" />
<input type="hidden" name="os0" value="{LINKID}" maxlength="200" />
<input type="image" src="{IMAGESURL}/paypal.png" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
</form>
</IF>

<IF {NOCHEXEMAIL}>
<form action="https://secure.nochex.com/" method="post">
<input type="hidden" name="email" value="{NOCHEXEMAIL}" />
<input type="hidden" name="order_id" value="{SPONSORITEM}" />
<input type="hidden" name="amount" value="{SPONSORCHARGE}" />
<input type="hidden" name="optional_1" value="{LINKID}" />
<input type="submit" value="{LANG_SPONSOR_NOCHEX}" />
</form>
</IF>

</IF>
<!-- END LEVELS -->


<IF {SPONSORITEM} is 87> ... </IF> is the only relevant part, rest should be replaced with your own content.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.