The Partial.ly extension for Opencart allows you to offer Partial.ly payment plans as a payment option for your Opencart store.
Download our extension from the Opencart marketplace or if you're using Opencart version 3 or greater, install from your Opencart admin using the marketplace installer.
Installation
You can upload the Partial.ly extension .zip file in the extension installer by clicking the Upload button, browsing the the file on your computer, then clicking the continue button.
After uploading the extension, go to extensions, select the Payment category, then find the Partial.ly payment plans extension and click install.
Configuration
Find the Parital.ly payment plans extension and click the edit icon next to it. There are two main areas of configuration: the Gateway settings which control the Partial.ly payment method option at checkout, and the Widget settings which control options for displaying the Partial.ly widget on product landing pages.
Gateway options
- Status enable or disable the Partial.ly payment option at checkout
- Partial.ly API key the API key from your Partial.ly merchant portal settings
- Offer the offer for terms to use when creating payment plans
- Order status the status to apply to orders after Partial.ly checkout
- Minimum order total enter a value here to only allow the Partial.ly payment method for orders greater than or equal to this value
- Sort order controls the order of Partial.ly in payment methods at checkout
Widget options
- Style choose different styles for the widget
- Title if using the "stacked" style, this will be the title text
- Body custom text for the widget. Leave blank for the default, dynamic text recommended
- Trigger text the text of the link generated to open the widget popup
- Popup details custom text to display at the top of the widget popup
- Enable checkout from widget include a Partial.ly checkout button in the widget popup
- Checkout button text text of the widget popup checkout button
Widget activation
To activate the Partial.ly widget on your site, you will need to modify some code. First, you'll need to modify the index function in your upload/catalog/controller/product/product.php file to generate the Partial.ly widget. Below is an example how to do this.
$this->load->model('extension/payment/partially');
$data['partiallyWidget'] = $this->model_extension_payment_partially->getWidget($this->request->get['product_id']);
Next, you will need to add a line of code to your product template where you want the Partial.ly widget to appear.
For Opencart v3.x, add the following to upload/catalog/view/theme/default/template/product/product.twig
{{ partiallyWidget }}
For Opencart v2.x, add the following to upload/catalog/view/theme/default/template/product/product.tpl
<?php echo $partiallyWidget;?>