X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   how to implement linking shipping rates on the payment method? (https://forum.x-cart.com/showthread.php?t=72941)

dagdag 10-22-2015 03:46 AM

how to implement linking shipping rates on the payment method?
 
Good day!

In my shop i use two shipping method, both based on "offline processor" (i look at the table xc5_shipping_methods) and two payment metods. For a combination of one of the payment methods and one of the delivery methods i need to give the customer a discount in the shipping cost.
The target is simple - to convince the buyer to use this payment method.
Please tell me how to implement this logic. Thanks in advance!

qualiteam 10-25-2015 11:57 PM

Re: how to implement linking shipping rates on the payment method?
 
You should look into creating a custom module adding a "modifier" that gives the discount depending on the selected shipping and payment methods.

This tutorial may help:
http://kb.x-cart.com/display/XDD/Creating+global+discount

dagdag 10-26-2015 01:28 AM

Re: how to implement linking shipping rates on the payment method?
 
2 Attachment(s)
qualiteam, i need discount for shipping cost, not for all order :(

Simple:

User select "bad" payment method:


User select "GOOD" payment method:


In both cases the "discount" is the same, it is different "shipping cost"...


All times are GMT -8. The time now is 11:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.