Forum Replies Created
-
AuthorPosts
-
February 15, 2010 at 2:44 pm in reply to: IE 7 & IE 8 bug, transaction link and paypal completed #17921André LundinMember
Hi!
I was just roaming around the forum and noticed your post.
The button can be added as a input or as a specified img, it doesn’t matter, as long as the form knows what to do with it.
I had a quick look at your page and noticed numerous problems in your code
(I suggest you do a checkup on http://validator.w3.org/ each time you do updates on your page), however without going into each of them, to solve your “Add to cart” problem:
If you take a look at your previous form element, which is your search form.
You’ll notice there is a unclosed end-tag.
Line 133, Column 7 (unclosed end-tag):
</form</div>
Change this to:
</form></div>
And you’re good-to-go!
Cheers & Good luck.
André LundinMemberAwesome!
I noticed I only had to add $updatedb2 with $sales_table_name and corresponding values to the loop.
Seems I got it all figured out now, thanks to you!
I’m sure there are lots of things that still can be tweaked for Manual Checkout, but I’ll let that rest for now.
Consider this thread closed!
Cheers
André Lundin
André LundinMemberNevermind that previous post, I looked up the other tags in eStore_payment_submission.php and found them.
All I am missing now is the $transaction_id, but I guess that’s not being created since I’m using a Manual Checkout? Not that big deal anyway..
Would there be anyway for the purchases to show up on “Stats” aswell? (guess it’s about the same procedure?)
Best Regards
André Lundin
André LundinMemberOk, I can manage to get the firstname, lastname, and email by writing:
global $current_user;
get_currentuserinfo();
And pasting:
$current_user->user_firstname
$current_user->user_lastname
$current_user->user_email
into the corresponding VALUES.
But I have no idea how to get the: $current_product_id, $transaction_id, $clientdate and $sale_price.
I tried pasting:
$cart_item_data_num = $current_cart_item;
$current_product_id = $cart_item_data_num;
But that didn’t help
Any thoughts?
Best Regards
André Lundin
André LundinMemberHi!
First of all, thank you for helping me with this problem, as I’m sure you have more “crtitical” matters to attend to.
I looked up the code around line 401 in “paypal.php”, example:
// Update the Customer table
$firstname = $this->ipn_data;
$lastname = $this->ipn_data;
$emailaddress = $this->ipn_data;
$sale_price = $current_cart_item;
and I tried to paste it in “eStore_payment_submission.php” after:
function submit_to_manual()
{
Thought it’d be “that simple”, but alas, no success
I can’t actually say I’m a PHP guru, so I’m not really sure how much code i need to copy&paste to make it work.
Would you mind being a bit more specific on what code I need to copy and where I need to paste it?
I’d also gladly let you look at my code, to make this work, if you want and have the time.
Best Regards
André Lundin
André LundinMemberGreat! Thank you, it works flawless!
Now, I’m not sure how the Customer List works? Do we have to add each customer manually?
Or would there be any way to automatically add the customer to the Customer List?
So we can Edit/Manage Customers and check their WP eStore Stats to track # of purchases?
Best Regards
André Lundin
-
AuthorPosts