Post by homegrownpromos » Sun Jan 27, 2013 1:33 pm

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!


Posts

Joined
Fri Jan 04, 2013 5:28 am

Post by homegrownpromos » Tue Jan 29, 2013 3:58 am

bump.. nobody has an answer for this? O0


Posts

Joined
Fri Jan 04, 2013 5:28 am

Post by bigal » Tue Jan 29, 2013 5:57 am

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..

Best Regards/Allen Chen


Active Member

Posts

Joined
Wed Sep 21, 2011 9:02 am

Post by homegrownpromos » Tue Jan 29, 2013 8:16 am

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.


Posts

Joined
Fri Jan 04, 2013 5:28 am

Post by granddaddy » Tue Jan 29, 2013 6:28 pm

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.

Active Member

Posts

Joined
Sat Feb 18, 2012 5:48 pm

Post by granddaddy » Tue Jan 29, 2013 6:31 pm

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.

Active Member

Posts

Joined
Sat Feb 18, 2012 5:48 pm

Post by bigal » Tue Jan 29, 2013 9:26 pm

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.

Best Regards/Allen Chen


Active Member

Posts

Joined
Wed Sep 21, 2011 9:02 am

Post by homegrownpromos » Wed Jan 30, 2013 6:23 am

All I really need is to disable the multiply option by product quantity function.


Posts

Joined
Fri Jan 04, 2013 5:28 am

Post by prem » Wed Feb 06, 2013 10:33 pm

I am also looking for such a thing

Newbie

Posts

Joined
Thu Feb 09, 2012 6:27 pm

Post by prem » Wed Feb 06, 2013 11:01 pm

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?

Newbie

Posts

Joined
Thu Feb 09, 2012 6:27 pm

Post by hydrowire » Fri Feb 08, 2013 5:56 pm

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.

Developing Quality OpenCart Extensions since 2011.
View my extensions


User avatar
Active Member

Posts

Joined
Wed Jan 26, 2011 5:41 pm


Post by mtsage » Sat Feb 16, 2013 3:38 am

When will "Product Option Discount" be available for OpenCart 1.5.5.1.

Newbie

Posts

Joined
Sat Feb 16, 2013 3:35 am

Post by rmullaney77 » Tue Nov 26, 2013 1:24 am

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 BlogMy ExtensionsOpenCart Templates


User avatar
Active Member

Posts

Joined
Fri Nov 19, 2010 2:08 am
Location - Tampa, Florida
Who is online

Users browsing this forum: No registered users and 15 guests