Community Forums

[vQmod] - Full Option Price

Put any free vQmod scripts here.
vQmod details

[vQmod] - Full Option Price

Postby Qphoria » Mon Jun 18, 2012 2:48 pm

Tested with: 1.5.1.x, 1.5.2.x, 1.5.3.x, 1.5.4.x, 1.5.5.x

This will change the option pricing from:
Product: $10.00
Size
- Md (+$2.00)
- Lg (+$4.00)

to

Product: 10.00
Size
- Md ($12.00)
- Lg ($14.00)

Similar to how Options Boost offers with its "=" price prefix.

Works with all currencies.
Works with all price supported option types (select, radio, checkbox, etc)
Attachments
show_full_option_price.xml
(838 Bytes) Downloaded 504 times
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [vQmod] - Full Option Price

Postby Qphoria » Mon Jun 18, 2012 5:53 pm

Whoops.. corrected.. had it saved in the wrong encoding and was causing errors
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [vQmod] - Full Option Price

Postby tony2011 » Mon Jun 18, 2012 6:40 pm

Thanks so much for all your help ! =) :)
tony2011
 
Posts: 50
Joined: Mon Jun 13, 2011 8:42 pm

Re: [vQmod] - Full Option Price

Postby Shadowsong » Thu Jun 28, 2012 3:00 pm

Thanks for this. I've purchased your mods in the past and this mod is helpful. One question though. I was wondering how using "-" can work. For example, if a store has 3 options and the middle option is the price shown and the others are higher and lower, visually on the product page all options show the difference added and not subtracted even if they are set with a "-" in the admin panel.

Like :

Product as Red option
price is 10.00

in admin panel it would be set like this

Black - 5.00
Red 0.00
Blue + 10.00

so it should visually show on the product page as

Black 5.00
Red 10.00
Blue 20.00

But instead, with this mod, it shows on the product page as

Black 15.00
Red 10.00
Blue 20.00

Is there a way to use the "-" minus option in the admin panel to visually display with the minus price on the product page. Otherwise I guess one can simply always start with the lower priced item and work their way up in price for options. So in the above example I'd start with the Black price and add to that base price. But if the Red option is the more popular one or one to feature it would be nice to have that as an option. I'm using opencart Version 1.5.3.1.
Shadowsong
 
Posts: 5
Joined: Sun May 13, 2012 4:56 pm

Re: [vQmod] - Full Option Price

Postby PrintingHull » Tue Jul 10, 2012 7:47 pm

This is great. I'm not too good with coding, where in the code should this be included?

Thanks in advance
C
PrintingHull
 
Posts: 14
Joined: Tue Jan 26, 2010 3:20 pm

Re: [vQmod] - Full Option Price

Postby travist6983 » Tue Jul 10, 2012 8:44 pm

I am also not so good at coding PHP either but i think i kind of understand what the XML is saying.

Edit this file
catalog/controller/product/product.php

and add
$option_value['price_prefix'] = ''; $option_value['price'] = (($product_info['special'] ? $product_info['special'] : $product_info['price']) + $option_value['price']);

After
foreach ($option['option_value'] as $option_value)

But i have tried adding this every which way and it either only shows 1 option or gives an error.

Can we get a bit of clarification on how to implement this?

Thank You VERY much!
travist6983
 
Posts: 30
Joined: Sat Jan 08, 2011 5:49 pm

Re: [vQmod] - Full Option Price

Postby travist6983 » Tue Jul 10, 2012 11:28 pm

OK so i have figured out that i need to use VQMod and it says that this is enabled is there anything else that i need to do to activate it or use it?

I am using Version 1.4.9.3 which i know it says its tested with 1.5 but was hoping it would work with my version
travist6983
 
Posts: 30
Joined: Sat Jan 08, 2011 5:49 pm

Re: [vQmod] - Full Option Price

Postby Qphoria » Thu Jul 12, 2012 7:31 pm

travist6983 wrote:OK so i have figured out that i need to use VQMod and it says that this is enabled is there anything else that i need to do to activate it or use it?

I am using Version 1.4.9.3 which i know it says its tested with 1.5 but was hoping it would work with my version


1.5.x only
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [vQmod] - Full Option Price

Postby storm-cloud » Sun Jul 22, 2012 6:13 am

Hello Q,

Excellent work as always!

I have been using a similar mod to this for a few months. I think I may have found it on one of your posts on another thread. Like Shadowsong mentioned, the only issue is with negative amounts, the amount shown actually adds the negative amount to the total.

For example, product price is $100.00, adding an option reduces the price by $40.00 (-$40.00) but the option displays this as $140.00 instead of $60.00 as desired.

Is there a way to correct this?
storm-cloud
 
Posts: 156
Joined: Wed Feb 22, 2012 12:07 am

Re: [vQmod] - Full Option Price

Postby Qphoria » Fri Jul 27, 2012 10:32 pm

storm-cloud wrote:For example, product price is $100.00, adding an option reduces the price by $40.00 (-$40.00) but the option displays this as $140.00 instead of $60.00 as desired.

Is there a way to correct this?


Corrected.. redownload
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [vQmod] - Full Option Price

Postby elliottgarner » Tue Aug 21, 2012 12:43 pm

Is there a way to have the options display prices ex. VAT? Have tried to implement this myself but all changes I make throw up various errors.

For example, the store I wish to run this on has the product price without VAT first, then underneath the price with VAT. When people wish to select an option for that product it shows the price with VAT, making it seem as though there is a large price difference when in fact it's negligible.

Thanks for this mod, really useful :)
elliottgarner
 
Posts: 2
Joined: Tue Aug 21, 2012 12:37 pm

Re: [vQmod] - Full Option Price

Postby PetSue » Wed Aug 22, 2012 11:39 pm

This is excellent as it makes it easier for customers to work out pricing, but is it possible to only show in say sizes as for me it also shows in colours when for our products colour pricing doesn't change the product price at all and it looks messy with all the pricing added to the colour option list.
PetSue
 
Posts: 49
Joined: Wed Jun 20, 2012 11:38 am

Re: [vQmod] - Full Option Price

Postby elliottgarner » Fri Aug 24, 2012 2:02 pm

My bad! As it turns out it was as easy as I thought it should be to get the prices displayed without VAT (dividing the result by 1.2) -- I had accidentally removed a bracket while tinkering. :laugh:

Thanks again for the mod.
elliottgarner
 
Posts: 2
Joined: Tue Aug 21, 2012 12:37 pm

Re: [vQmod] - Full Option Price

Postby kmac » Fri Aug 24, 2012 3:37 pm

Wonderful & works like a charm!

BUT I would also like to know how I can customize the code so that options that DON'T have a price won't include the "default" price of a product.

For instance I have a silver ring that sells for $69, with options to upgrade to gold (14 Karat $150, etc).
But their is also ring size options & each ring size includes the $69 - very confusing to a customer.

Or is it possible to include/exclude in the code particular global options?

Any help with this would be fantastic.

Cheers
kmac
 
Posts: 1
Joined: Fri Aug 24, 2012 3:28 pm

Re: [vQmod] - Full Option Price

Postby PetSue » Sun Aug 26, 2012 10:32 am

kmac wrote:Wonderful & works like a charm!

BUT I would also like to know how I can customize the code so that options that DON'T have a price won't include the "default" price of a product.

For instance I have a silver ring that sells for $69, with options to upgrade to gold (14 Karat $150, etc).
But their is also ring size options & each ring size includes the $69 - very confusing to a customer.

Or is it possible to include/exclude in the code particular global options?

Any help with this would be fantastic.

Cheers


Exactly what I would like, you just explained it better :)
PetSue
 
Posts: 49
Joined: Wed Jun 20, 2012 11:38 am

Re: [vQmod] - Full Option Price

Postby snajperista » Fri Aug 31, 2012 10:51 am

Looks like something I'm doing wrong. I have attached a xml file in the xml folder, but nothing happened. Can someone briefly explain the use of this modul. Opencart 1.5.4
snajperista
 
Posts: 14
Joined: Sun May 20, 2012 11:43 pm

Re: [vQmod] - Full Option Price

Postby Mr Hot Pants » Sat Sep 01, 2012 6:26 pm

I've got exactly the same problem as kmac and several other people who have posted in this thread. Prices are now shown against ALL products in options lists. This wasn't the case prior to the mod being installed.

Although this mod is very much appreciated and very helpful to many (thank you Qphoria), it kinda gives with one hand and takes away with the other.

It would be great just to be able show the ACTUAL prices of specific products in a drop-down/check/radio list and to be able to list other items in a similar manner, but without base prices prices being displayed. The current setup causes major confusion when customers are trying to purchase items as it appears as though the base price is being added to each option they have to enter.

If there is a mod out there that will offer the flexibility, then I'll gladly buy it. All I want it to do is this:

Product A
Small - $10.00
Med - $15.00
Large - $20.00

NOT

Small - $10.00
Med - +$5.00
Large - +$20.00

Product B
Red
Blue
Green

NOT

Product B
Red ($2.99)
Blue ($2.99)
Green ($2.99)

Sorry if the above seems to be asking too much but these options have been commonplace amongst other shopping carts for years. The support in here is helpful but it often take forever searching around without finding a definitive answer. Which mod(s) WILL enable me to do the above?

Thank you very much.
Mr Hot Pants
 
Posts: 2
Joined: Sat Jul 28, 2012 5:31 pm

Re: [vQmod] - Full Option Price

Postby Sbrookhouse » Wed Sep 05, 2012 5:11 am

I am using OC version 1.5.4.1

I have uploaded the xml file to the appropriate xml folder. I do not see anything different in my admin panel. I am still seeing the +/- drop down.

Is there or is there going to be an upgrade that is compatible with 1.5.4.1 or am I just totally missing something?

Thanks
Sbrookhouse
 
Posts: 2
Joined: Tue Sep 04, 2012 2:48 am

Re: [vQmod] - Full Option Price

Postby snajperista » Sat Sep 08, 2012 8:36 pm

Yes, I have an identical problem. Nothing happens after inserting xml file
snajperista
 
Posts: 14
Joined: Sun May 20, 2012 11:43 pm

Re: [vQmod] - Full Option Price

Postby jmagro » Fri Sep 14, 2012 7:12 pm

Any answer to the most recent questions? I'm using 1.5.4 also and my options are still showing the default way:
Option [1] (+$50)
jmagro
 
Posts: 24
Joined: Wed May 11, 2011 7:31 pm

Next

Return to vQmods

Who is online

Users browsing this forum: No registered users and 6 guests

Hosted by Arvixe Web Hosting