Page 1 of 1
Flat Fee For Options
Posted: Sun Jan 27, 2013 1:33 pm
by homegrownpromos
I am wondering if there is a way to code options to NOT multiply by the quantity of the product ordered? I'd like to charge a flat fee for the option chosen.
For example:
Product is a Backpack.
I set up an option for number of colors in a print.
1 Color Print adds $30 to the ORDER TOTAL.
2 Color Print adds $60 to the ORDER TOTAL.
3 Color Print adds $90 to the ORDER TOTAL.
etc. etc..
Can I alter the product.php/.tpl or cart.php/.tpl to get this result?
As of right now, I have set up a product for imprint options and added to related products tab, which is definitely not ideal.
Any help would be greatly appreciated!
Re: Flat Fee For Options
Posted: Tue Jan 29, 2013 3:58 am
by homegrownpromos
bump.. nobody has an answer for this?

Re: Flat Fee For Options
Posted: Tue Jan 29, 2013 5:57 am
by bigal
How about below configuration -
Set print product with multiple colour options
1st colour options set $30, required 'yes'
2nd colour options set $0, required 'no'
3rd colour options set $0, required 'no'.
etc.. and so on..
Re: Flat Fee For Options
Posted: Tue Jan 29, 2013 8:16 am
by homegrownpromos
That would still multiply the $30 charge by each product ordered. If someone orders 250 shot glasses, it will take that $30 x 250 bringing their total to $7,500 plus product cost. Should only be $30 plus product cost.
Re: Flat Fee For Options
Posted: Tue Jan 29, 2013 6:28 pm
by granddaddy
I have an idea how this might possibly be done. I can't provide the code changes needed, but it might inspire someone else to help out here. The idea is this:
1. Hide the basic price display.
2. Set the basic price to zero.
3. Add a required option named Quantity, and assign values such as 250/500/1000 with appropriate basic prices.
4. Add another option named Colour and assign extra costs for each number of colours.
Because the quantity is now an option list, there should be no doubling up when selecting the colour option.
Of course this depends on whether the principle applies to ALL your products - it does require hiding the base price which is fairly simple if you apply it to ALL products. If it's only for certain products then it's not that simple.
Can anyone else develop this idea further? I can imagine this becoming a common scenario for some users, and worth developing a good solution or a vqmod.
Re: Flat Fee For Options
Posted: Tue Jan 29, 2013 6:31 pm
by granddaddy
Addendum: It would also require hiding the quantity input box. Not removing it totally, becaase it needs to be hidden but still contain the value 1.
Re: Flat Fee For Options
Posted: Tue Jan 29, 2013 9:26 pm
by bigal
I can't provide code either.
My suggestion is Count the colours options of the product in cart, and multiple by the additional price for colours , then add to the total of the product multiply by quantity.
Re: Flat Fee For Options
Posted: Wed Jan 30, 2013 6:23 am
by homegrownpromos
All I really need is to disable the multiply option by product quantity function.
Re: Flat Fee For Options
Posted: Wed Feb 06, 2013 10:33 pm
by prem
I am also looking for such a thing
Re: Flat Fee For Options
Posted: Wed Feb 06, 2013 11:01 pm
by prem
Partially i found a solution but someone need to help me out with this.
the code is in /system/library/cart.php
on line 234: 'total' => ($price + $option_price) * $quantity,
if you change it to:
($price * $quantity) + $option_price ,
it does the trick as far as the price need to be paid is correct. If you open the cart on the bottom where the cart total is, the price is correct.
But if you look on the table where all the products are listed 1 per line with its model, quantity and total price per product , there the price is wrong and multiplied.
Someone with a solution to this?
Re: Flat Fee For Options
Posted: Fri Feb 08, 2013 5:56 pm
by hydrowire
Hi all,
Please take a look at this extension:
Product Option Discount
http://www.opencart.com/index.php?route ... on_id=1888
It allows you to set a flat option price regardless of quantity ordered. The price per product on the cart page will be calculated correctly by dividing the option price with quantity ordered.
Try out the demo before getting the extension to make sure it suits your need.
Re: Flat Fee For Options
Posted: Sat Feb 16, 2013 3:38 am
by mtsage
When will "Product Option Discount" be available for OpenCart 1.5.5.1.
Re: Flat Fee For Options
Posted: Tue Nov 26, 2013 1:24 am
by rmullaney77
I looked at product option discount and it was "overkill" for what I needed. Judging by the username,
homegrownpromos runs a promotional product storefront. Most of those products have various decoration methods (which require different setup fees, applied once per product, not based on quantity).
My
Setup Fees for Product Options extension is worth looking at...
hydrowire's extension looks great, but looks like it would confuse for the non-savvy end-user (purchasing from your store) when all some of us really need is a dropdown for setup fees, or a checkbox for "rush" production
