latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Custom Capability sale info

Home Forums Community Forum Custom Capability sale info

Tagged: , ,

This topic contains 6 replies, has 3 voices. Last updated by  Bruce 3 years, 9 months ago.

Topic Author Topic
Posted: Tuesday Mar 19th, 2013 at 5:41 am #45156
appsnbooks
Username: sesyddall

Is there a custom code like %%item_number%% that returns the number of items (custom capability) purchased ie: 2 of this and three of that.

List Of Topic Replies

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Wednesday Mar 20th, 2013 at 5:51 am #45209

No, s2Member doesn’t sell quantities of each access. You don’t get 2 of ccap1 and 3 of ccap2, for example, it’s just ccap1 and ccap2.

Well, in that example there are 2 ccaps, is that what you mean though? How many different ccaps? If so, no, you’ll have to work with item_number and use some code to figure it out, I guess.

Or add that value to the custom attribute as a custom value. If you know you’re selling 2 ccaps with that, then in the custom attribute you could do [hilite code]custom="yoursite.com|2"[/hilite], and then use it with the replacement code [hilite mono]%%cv1%%[/hilite]. [hilite path]Dashboard -› s2Member® -› API / Notifications -› Signup Notifications[/hilite]

%%cv1%% = If you need to track additional custom variables, you can pipe delimit them into the `custom` attribute; inside your Shortcode, like this: [hilite mono]custom="yoursite.com|cv1|cv2|cv3"[/hilite]. You can have an unlimited number of custom variables. Obviously, this is for advanced webmasters; but the functionality has been made available for those who need it.

Posted: Wednesday Mar 20th, 2013 at 7:03 am #45216
appsnbooks
Username: sesyddall

Thanks Cristián. Thank you for the information. What I was looking to do was sell mobile applications, and we have been asked by organisations to have several user applications of the one product, and there are several applications. I’m just setting up a paypal sandbox so will see better what happens. I saw in some of the logs that there were several items like: item1 cost and quantity, item2 $ and qty, item3 $ and qty etc. But – thank you for the answer.

Posted: Wednesday Mar 20th, 2013 at 7:16 am #45220

Thank you for the information. What I was looking to do was sell mobile applications, and we have been asked by organisations to have several user applications of the one product, and there are several applications.

Ah, got it.

I saw in some of the logs that there were several items like: item1 cost and quantity, item2 $ and qty, item3 $ and qty etc.

s2Member’s log? Could you show me the log entry? s2Member doesn’t sell quantities of each item.

Posted: Wednesday Mar 20th, 2013 at 7:32 am #45222
appsnbooks
Username: sesyddall

At that stage we were selling ebooks, and some people ordered several different ‘books’ at a time, we had them added to a paypal shopping cart. One item was all 7 ebooks at a set price, but people did buy selected books several at a time and these set up the ccap_***, but there was not 3 of ccap1, 2 of ccap2 etc.

Posted: Wednesday Mar 20th, 2013 at 7:42 am #45224
appsnbooks
Username: sesyddall
PHP v5.2.17 :: WordPress® v3.3 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 17.15 MB :: Real Memory 17.25 MB :: Peak Memory 17.19 MB :: Real Peak Memory 17.25 MB
User-Agent: 
array (
  'mc_gross' => '23.85',
  'protection_eligibility' => 'Ineligible',
  'address_status' => 'unconfirmed',
  'item_number1' => '*:farmerblake',
  'tax' => '0.00',
  'item_number2' => '*:groverbill',
  'payer_id' => '',
  'item_number3' => '*:matilda',
  'payment_date' => '03:18:38 Jan 01, 2013 PST',
  'payment_status' => 'Completed',
  'charset' => 'windows-1252',
  'address_zip' => '4129',
  'mc_shipping' => '0.00',
  'mc_handling' => '0.00',
  'mc_fee' => '0.87',
  'address_country_code' => 'AU',
  'notify_version' => '3.4',
  'custom' => '',
  'payer_status' => 'unverified',
  'num_cart_items' => '3',
  'mc_handling1' => '0.00',
  'mc_handling2' => '0.00',
  'mc_handling3' => '0.00',
  'mc_shipping1' => '0.00',
  'mc_shipping2' => '0.00',
  'mc_shipping3' => '0.00',
  'btn_id1' => '39****',
  'btn_id2' => '396****',
  'btn_id3' => '396****',
  'payment_type' => 'instant',
  'item_name1' => 'Farmer Blake and Sneaky Snake',
  'item_name2' => 'Grover Bill and the Geckos',
  'payment_fee' => '',
  'item_name3' => 'There\'s Something in the Bush, Matilda',
  'quantity1' => '1',
  'quantity2' => '1',
  'quantity3' => '1',
  'txn_type' => 'cart',
  'mc_gross_1' => '7.95',
  'mc_currency' => 'AUD',
  'mc_gross_2' => '7.95',
  'mc_gross_3' => '7.95',
  'residence_country' => 'AU',
  'transaction_subject' => 'Shopping CartFarmer Blake and Sneaky SnakeGrover Bill and the GeckosThere\'s Something in the Bush, Matilda',
  'payment_gross' => '',
  'ipn_track_id' => '',
  's2member_log' => 
  array (
    0 => 'IPN received on: Sun Jan 1, 2013 11:18:46 am UTC',
    1 => 's2Member POST vars verified through a POST back to PayPal®.',
    2 => 'Unable to verify `$_SERVER["HTTP_HOST"]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.',
  ),
  'subscr_gateway' => 'paypal',
)
Posted: Thursday Mar 21st, 2013 at 3:56 pm #45385
Bruce
Username: Bruce
Staff Member

Thanks for the follow-up.

2 => ‘Unable to verify `$_SERVER["HTTP_HOST"]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.’,

According to your logs, your Shortcode does not have a custom attribute. From the docs
(Dashboard -› s2Member® -› PayPal® Pro Forms -› Shortcode Attributes (Explained)):

custom=”yoursite.com” must start with your domain. Additional values can be piped in (ex: custom=”yoursite.com|cv1|cv2|cv3|etc”). Not valid when cancel=”1″.

Please add this custom attribute to your Shortcode and run another test. :-)

Viewing 6 replies - 1 through 6 (of 6 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.