Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

how to implement linking shipping rates on the payment method?

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-22-2015, 03:46 AM
  dagdag's Avatar 
dagdag dagdag is offline
 

Advanced Member
  
Join Date: Sep 2014
Location: Volgograd
Posts: 81
 

Default 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!
__________________
my wife's shop
Reply With Quote
  #2  
Old 10-25-2015, 11:57 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 10-26-2015, 01:28 AM
  dagdag's Avatar 
dagdag dagdag is offline
 

Advanced Member
  
Join Date: Sep 2014
Location: Volgograd
Posts: 81
 

Default Re: how to implement linking shipping rates on the payment method?

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"...
Attached Thumbnails
Click image for larger version

Name:	001.jpg
Views:	175
Size:	18.4 KB
ID:	4352  Click image for larger version

Name:	002.jpg
Views:	175
Size:	18.3 KB
ID:	4353  
__________________
my wife's shop
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:40 AM.

   

 
X-Cart forums © 2001-2020