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!
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!
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..
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..
Best Regards/Allen Chen
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.
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.
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.
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.
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.
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.
Best Regards/Allen Chen
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?
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?
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.
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.
Developing Quality OpenCart Extensions since 2011.
View my extensions
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
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
--------------------------------------------------
My Blog ↔ My Extensions ↔ OpenCart Templates
Who is online
Users browsing this forum: Majestic-12 [Bot] and 320 guests