| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
shipping markup | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
shipping markup
I want to add a 10% markup to all shipping rates. I've been trying to find the array that contains the complete list of available shipping options so I can do a foreach and add 10% to each element value returned before it is displayed to the customer. Does anyone know what array and in what file this is located? I'm having a hard time finding this.
__________________
Ver 5.2.6 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: shipping markup
\XLite\Logic\Order\Modifier\Shipping - this is the class that adds the shipping cost to the order total. I guess you should look into decorating it so that it will add the 10% markup.
__________________
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 |
|||||||||
#3
|
|||||||
|
|||||||
Re: shipping markup
Quote:
__________________
Ver 5.2.6 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: shipping markup
Hi Phil!
You may want to decorate the getRates() method of the XLite\Model\Shipping class. As you can see, it gathers shipping rates from processors (User-defined, USPS, UPS, etc) and then process it. Depending on your may want to decorate applyMarkups() method of the same class. Please, let me know if it all makes sense to you. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|