Skip to content

Add shipping or order cost based on the payment method selected

License

Notifications You must be signed in to change notification settings

pdaleramirez/super-payment-adjuster

Repository files navigation

Super Payment Adjuster for Craft CMS 3.x

Adds ability to adjust order amount based on the payment method selected.

Screenshot

Features

  • Adds ability to adjust order amount based on the payment method selected.

  • The plugin allows you to add multiple adjustment for different payment gateways.

  • Allows you to choose adjustment types which are discount, shipping and tax for your payment adjustment.

  • Allows you to add or deduct cost based on amount type which are flat amount or percentage off from the order total.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project  
    
  2. Then tell Composer to load the plugin:

    composer require pdaleramirez/super-payment-adjuster  
    
  3. In the Control Panel, go to Settings -> Plugins and click the “Install” button for Super Payment Adjuster.

  4. Go to Super Payment Adjuster -> Payment Adjust and click New Payment Adjuster button to start adding payment adjuster.

Template

Once you added your payment adjusters, you can call the order adjustments in the twig template like how the example template does it. E.g.

<ul>
   {% for adjustment in cart.orderAdjustments %}   
      <li>Adjustment Name: {{ adjustment.name }}</li>
      
      <li>Description: {{ adjustment.description }}</li>
      
      <li>Type: {{ adjustment.type }}</li>
      
      <li>Amount: {{ adjustment.amount }}</li> 
   {% endfor %}
</ul>

Contact me for inquiries or if you require more customization. [email protected]

About

Add shipping or order cost based on the payment method selected

Resources

License

Stars

Watchers

Forks

Packages

No packages published