I’ve setup a post type-Product with custom fields containing price and other attributes.
I’m reading Paypal Documentation right now,
What i’ve read till now is “HTML-Buttons” can be pasted from Paypal, but i can’t tell my client to copy and paste the “Add to Cart” button from Paypal every time he creates a new product.
Even the plugins tagged with “Paypal” seem manual. I wanted something that would take price and other attributes programmatically from custom fields.
I don’t want my client to do any thing regarding Paypal.
So my question:
Should i ditch my almost-complete theme and build everything from ground up with Woocommerce? Or is there still a way to integrate Paypal into this theme.
Thankyou for your time and thoughts.
You can create a custom template in the theme that displays the ‘products’ custom post types (see the section on Template Files in Custom Post Types).
Then code the HTML for the Paypal button in to your specific
single-{posttype}.php
and have the attributes such as price, etc, coming from custom fields.(I think that is correct but it’s been a while since I’ve played with custom fields so apologies if it needs further tweaking)
P.S – Although, are you sure you want to use Paypal’s own cart? It would be more graceful to use a shopping cart plugin for WordPress (which you can use with your own theme) then have the total value go through to Paypal when the customer is ready to pay (probably an obvious thing to say but just thought I’d mention it in case :))