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

Add special handling charge to cart totals

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 06-20-2008, 02:32 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: Add special handling charge to cart totals

Quote:
Originally Posted by Jerrad
Any idea how this modification can be used to add a 'handling fee' to certain payment methods?

Thanks!

definitely, you need to write a custom code to apply the fee for specific payment methods.
Reply With Quote
  #12  
Old 06-20-2008, 02:59 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Add special handling charge to cart totals

Thanks for your message, Dongan.
Any suggestion how this custom code would look?
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #13  
Old 06-20-2008, 03:19 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: Add special handling charge to cart totals

Quote:
Originally Posted by Jerrad
Thanks for your message, Dongan.
Any suggestion how this custom code would look?

if you are able to understand and do basic programming, we can give some tips to implement.

otherwise, i would recommend to get quote from the developers, proceed further.
Reply With Quote
  #14  
Old 06-20-2008, 03:28 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Add special handling charge to cart totals

It's always worth trying, so tips are very welcomed, Dongan!

Thanks in advance!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #15  
Old 08-29-2008, 02:17 AM
 
hues hues is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 90
 

Default Re: Add special handling charge to cart totals

Nice mod. But it seems this works on x-cart 4.0.x

Has anyone tried to modify this for x-cart 4.1.x?

I need to add the facility to my x-cart, where, I can add handling charges per order for specific products, irrespective of the number of items purchased.
__________________
X-Cart 4.4.5 ... www.drugteststrips.com
X-Cart 4.4.5 ... www.drugalcoholtest.com

Hues Technologies
http://www.huestechnologies.com
Reply With Quote
  #16  
Old 09-22-2008, 01:36 PM
 
MommyDesigns MommyDesigns is offline
 

Member
  
Join Date: Dec 2007
Posts: 10
 

Default Re: Add special handling charge to cart totals

Quote:
Originally Posted by mikalou
I don't think you can do what you want in the markup feature under shipping charges. I believe you'd need to modify the code in /include/func.php. Use a conditional statement to check the cart total and if that total is below a specific dollar amount then you'd add the extra handling fee to the total.

Try this...
In function: func_calculate_single
After this code: $total = $discounted_subtotal + $shipping_cost + $total_tax;

Add:
Code:
if ($total < 100) $total = $total + 25
Change the dollar amounts (100 and 25) to whatever you need.

If you need the extra handling fee to show up as a line item in the cart totals for the shopping cart, invoices, order history and confirmation emails, then you'd need to do extra programming similar to my original example.

I think I've seen other posts discussing what you want to do so try doing a search. There may be a better way than what I'm suggesting.

Does anyone know if this is do-able in 4.1.10??

Thanks!
__________________
Jennie @ Be More Than a Mom.com
X-Cart version 4.1.10

Reply With Quote
  #17  
Old 02-17-2009, 08:39 AM
 
sjrconsulting sjrconsulting is offline
 

Newbie
  
Join Date: Nov 2007
Posts: 9
 

Default Re: Add special handling charge to cart totals

I like this solution.

Is there a way to easily assign different charges based on the shipping method? (ie. FedEx Ground =$30.00, International Economy=$50.00, etc.)


Thanks
Steve
__________________
X-Cart Gold: 4.1.9
PHP: 5.2.4
MySQL: 4.1.20
Apache/2.0.52
Reply With Quote
  #18  
Old 10-14-2011, 01:15 PM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default Re: Add special handling charge to cart totals

Great info

Has anyone tried this in 4.4.x ?
Or can post different files (if any) that will need modify?

Also can we use extra_field value as the amount to be charged extra?

Any tips would be greatly appreciated.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #19  
Old 10-14-2011, 08:16 PM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default Re: Add special handling charge to cart totals

Seems like func.php does not exist anymore
I see now there is a folder called "func" with bunch of func_xxx files.

Can anyone suggest which files will need this changes for 4.4.2 ?

Thanks.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #20  
Old 10-14-2011, 08:39 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,035
 

Default Re: Add special handling charge to cart totals

func.order.php is the one for orders functions
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 06:51 AM.

   

 
X-Cart forums © 2001-2020