WP Shopping Cart Installation
1. Unzip and Upload the folder ‘wordpress-paypal-shopping-cart’ to the ‘/wp-content/plugins/’ directory.
2. Activate the plugin through the ‘Plugins’ menu in WordPress.
3. Go to Settings and configure the options eg. your paypal email, Shopping Cart name, Return URL etc.
4. Use the trigger text to add a product to a post or page where you want it to appear.
WP Shopping Cart Usage
1. To add the ‘Add to Cart’ button simply add the following trigger text to a post or page next to the product:
Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price.
2. To add the ‘Add to Cart’ button from template (.php) files use the following function:
<?php echo print_wp_cart_button_for_product(’PRODUCT-NAME’, PRODUCT-PRICE); ?>
Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price. eg. <?php echo print_wp_cart_button_for_product(’wordpress’, 7.50); ?>
3. To add the shopping cart to a post or page simply add the following trigger text to a post or page in HTML view. The shopping cart will only be visible when a customer adds a product to the cart.
4. To add the shopping cart to the sidebar, simply use the widget from the widgets menu or add the following line to your sidebar template file where you want the shopping cart to ...