X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Single charge independent of quantity (https://forum.x-cart.com/showthread.php?t=63228)

zprint 04-09-2012 11:07 AM

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

cherie 04-10-2012 01:29 PM

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.

zprint 04-10-2012 07:00 PM

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


All times are GMT -8. The time now is 04:55 AM.

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