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

Single charge independent of quantity

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-09-2012, 11:07 AM
 
zprint zprint is offline
 

Member
  
Join Date: May 2003
Location: West coast of New Jersey, USA
Posts: 10
 

Default Single charge independent of quantity

Here's what I'm trying to do: have an option to add a rush shipping charge to an item that only applies to the first box shipped, thus would not change when the item quantity increases.
Example: 1 box costs $5.00; rush shipping for first box costs $8.00. Order one box @ $5.00 w/ rush shipping @ $8.00 = $13. Order two boxes @ $5.00 per box w/ rush shipping for the first box @ $8 = $18, (rush shipping charge does not increase).

I know I can use variants and do the math first, but that obviously would be the hardest way to do it, and very labor intensive to update.


A formula along the lines of: if rushing shipping = none, then 0, otherwise divide $8 by quantity selected.
I assume that a few lines of PHP applied somewhere could divide the $8.00 rush shipping charge by the item quantity, but I'm not sure of the exact syntax and where to put it.

Can anyone help me with this?

Thanks!

Chris
__________________
Christopher Meyers
Zephyr Print
http://www.zprint.cc
X-Cart 4.4.3
Linux Server
Reply With Quote
  #2  
Old 04-10-2012, 01:29 PM
  cherie's Avatar 
cherie cherie is online now
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Single charge independent of quantity

We've done this in the past by creating a hidden product then adding code to the cart that a customer can add it if they like and this adds the hidden product to the cart.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #3  
Old 04-10-2012, 07:00 PM
 
zprint zprint is offline
 

Member
  
Join Date: May 2003
Location: West coast of New Jersey, USA
Posts: 10
 

Default Re: Single charge independent of quantity

Hi Cherie-

Thanks for your reply. I'm afraid you've lost me though. Can you give me another hint?

thanks!

Chris
__________________
Christopher Meyers
Zephyr Print
http://www.zprint.cc
X-Cart 4.4.3
Linux Server
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 05:12 AM.

   

 
X-Cart forums © 2001-2020