Creating new hosted buttons versus updating existing ones? - php

I need to dynamically generate the price of the full aggregate cart on my website - I've already built my own shopping cart. Only when the user is going to check out do I want to generate a button with the aggregate cart price.
What's a better approach? Should I create a hosted button through PayPal's interface and just update it whenever the user gets to the checkout stage? Or should I create a new button for every user checkout? Is either approach going to be more expensive than the other?

I'd suggest creating a saved hosted button for each item you sell. Because this way users can't tamper with the prices of the items.
If you use the "customized" button and change the form variables yourself without saving it on paypal, you'll have to verify the price of each order because frankly it is VERY easy to change them through DOM. (Especially true for anyone on this site)
If you have thousands of items, you might want to look into third-party merchant solutions that allows you to update items easier.

Related

Creating a Shopping Cart with Paypal

I wish to use paypal to create a shop to an existing site, however I have reached a problem.
Paypal has a facility to 'add to cart' however when clicked on, it goes to their servers.The check out has no customisability what so ever, so looks completely out of sync with my site.
Is it possible to create a shopping cart on PayPal showing the list of items on MY site (so I can customise the look and feel of the shopping cart) and then only when the payment needs to be made, the user is sent to the PayPal Site.
Thanks
NOTE: I'm using pure HTML,CSS & PHP. I am not using a CMS such as WordPress.
Also when I mean I want to customise the look and feel of the shopping cart, I don't mean just the button, but the way the items is shown up along with details such as Qty.
If you're working with basic PHP code that you built on your own (no framework like WP) then you'll need to build your own shopping cart.
If you were to use WP, though, you could use WooCommerce which is a great shopping cart system and would probably save you lots of time.

creating a subscription form for individual objects

Currently I have a plugin on the site that utilizes wp favorites. I've modified the wording so it's a pull list instead of "favoriting"
A user clicks a button 'add to pull list' and it adds that item to their "wp favorites" Which I don't think I'm going to be able to modify this in the way I want.
What I really want to do is be able to add these to a separate page called "Your Pull List" for example. On that page it totals the costs of each item and there will be a subscription button which will utilize paypals subscription or a button to pick-up in store. Then once their done adding all of the comics they want they can subscribe and be charged the total amount of all items.
I don't even know where to begin in setting this up. Every plugin I've found for recurring is just membership stuff and won't work in my case, as i need the items to go to a separate page be talied from there for the paypal subscription button.
Then...what if the customer wants to add more items to their pull list or remove items? Will paypals subscription api update or is this something better to just let the shop owner manually charge per month rather than automate it?
Lastly, anyone who sets up a pull list will be added in the backend of the website where the admin can manage the pull lists, print out pull lists for each user, and be notified via email whenever an existing client modifies their pull list, or a new client signs up.
So my question is - is there a plugin out there that can handle this or "close" to handle it, that I could modify? Or is this a do it from scratch idea?

How to pass variables of each item through to paypals cart when selecting paypal's 'add to cart' button?

I am developing a website selling gardening products using PHP and SQL. The user searches for a plant, finds the one they want, clicks on it for more details and there they see an option to add to cart. I have signed up to Paypal's business account and used their add to cart button. But currently, when I try it out and click the button, it doesn't do anything. Obviously this is because know variables have been passed about that specific product. What do I need to do in order to get each item into the cart?
#QUESTION:
To impliment a normal POST to pass to standard form, follow this tutorial:
http://www.evoluted.net/thinktank/web-development/paypal-php-integration
#INTEGRATED SOLUTION:
Integrated solutions will allow you to make these transactions without going offsite.
Using this method requires alot more security.

Magento configure a product while comparing

I'd like to add some functionality to the comparing feature Magento offers. When comparing products, users are presented with an 'Add to cart' button. This feature only works well for simple products. When pressing the add to cart button on a configurable or bundled product the user is redirected to the product detail, out of the compare view.
Would it not be much better when a user could configure the products inside the compare view?!
Do you guys know of a magento plugin that does this trick? Or have ideas how this feature could be implemented in the existing source?
This is something that comes up from time to time as I develop Magento sites. The gist of the problem is this: the logic for dealing with configurable/bundle/etc products is not simple. The JS code that was written to handle this convoluted logic is written is such a way that multiple products on the same page cannot be accomodated.
So, to do what you want, the first thing to do is to simplify your products down significantly. The brunt of the complexity is dealing with multiple configurable attributes and changing pricing, etc. After that, you'll need to rewrite the configurable product JS to set up the submit form properly. Once you get the right data submitted, you should be pretty safe.
Hope that gives you a hint!
Thanks,
Joe

Send users to a pre-filled Amazon cart checkout

I'm working on a site that will create pre-set packages of items. To start, I'm using Amazon to test the idea, pulling some affiliate sales, and then I'll fulfill orders myself if the idea deems successful.
My goal is to have a "buy now" type button, and upon clicking, the user will arrive at an Amazon checkout now page, with a cart pre-filled with items of my choosing, and my affiliate number.
I'm a PHP developer, so if a solution must be language specific, that's the language to go with. If it's more of a conceptual answer, or if there's an API for this, that works too.
You may use link that contains ASINs and their quantity. It doesn't add items to someone's cart but confirms to add to cart.
URL:
http://www.amazon.com/gp/aws/cart/add.html
Parameters:
- AssociateTag
- ASIN.<number> <number> starts at 1
- Quantity.<number> one quantity parameter for each ASIN parameter
Example (parameters separated by line break for visibility):
http://www.amazon.com/gp/aws/cart/add.html
?AssociateTag=your-tag
&ASIN.1=B003IXYJYO
&Quantity.1=2
&ASIN.2=B0002KR8J4
&Quantity.2=1
&ASIN.3=B0002ZP18E
&Quantity.3=1
&ASIN.4=B0002ZP3ZA
&Quantity.4=2
One line example: https://www.amazon.com/gp/aws/cart/add.html?AssociateTag=your-tag&ASIN.1=B003IXYJYO&Quantity.1=2&ASIN.2=B0002KR8J4&Quantity.2=1&ASIN.3=B0002ZP18E&Quantity.3=1&ASIN.4=B0002ZP3ZA&Quantity.4=2&ASIN.5=B004J2JG6O&Quantity.5=1
ASINs are found in the product's page URL or by searching for "ASIN" on the product page. More details here
Amazon does not allow you to add items to someone's cart. They require that the user making the purchase click the add to cart button.
The best you can do for this is to create a Listmania! list with the items. You can see more details about how to do that here.
You then need to make an affiliate link to the list, and instruct the user to click the 'Add all Items to Cart' button at the bottom of the list.
Unfortunately, there is no way to make this take less clicks for the user since Amazon does not want users accidentally purchasing items they did not want.

Categories