Post by wordspin » Fri Sep 19, 2008 1:08 am

Hi.  I'm new to opencart and php. I need help fixing the way options are listed on my site. I'm sure there's a simple way to do this ...

Right now, I have a size option for certain products.  On some products, the small size costs less than the standard size, so in the dropdown, it's listed as "small -2.0000" for $2 less.  Here are my issues:

I'd like the full price to be listed instead of the relative price.  So, instead of "Small -2.0000," I'd like it to read "Small - $9.99."  I'm sure this can be done through a concatenation of some kind, but I can't figure it out because php is not my first language.

Second, I'd like the price listed here to be 2 decimal places - I have that set under currency, but it doesn't seem to apply to this dropdown - it's showing 4 decimal places. I'm not sure why.

Any help would be appreciated.  Thanks!

Newbie

Posts

Joined
Fri Sep 19, 2008 1:00 am

Post by wordspin » Sun Sep 21, 2008 12:07 am

??? Did I ask the question the wrong way or can what I'm asking just not be done?
If it can't be done, could someone please respond and let me know that?

Thanks.

Newbie

Posts

Joined
Fri Sep 19, 2008 1:00 am

Post by bruce » Sun Sep 21, 2008 12:13 am

It can all be done. I will give you a full response tomorrow.

cheers

Bruce

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by weniggary » Fri Oct 24, 2008 8:00 am

Bruce,

This is very timely; I was just about to contact you to suggest this change for the next version. It is extremely confusing to the consumer to purchase something say at 16.24 + 7.29 for the large size. Also I would like to suggest that later versions also allow you to change the weight on the alternate item. We sell the same product in multiple sizes/weights which makes a big impact on the shipping.

Thanks, as always you are doing a great job. I am anxious to see the fix, it will save me a lot of searching php files.

Newbie

Posts

Joined
Wed Apr 30, 2008 10:34 pm
Location - Kansas City, MO, USA

Post by bruce » Fri Oct 24, 2008 8:11 am

Hi Gary,

This task is still on my todo: list but if you are thinking of doing it yourself then you would add another option to the plus/minus price modifier dropdown that was "=" and then find the places where the option price modifies the item price based on +/- and add some logic for "equals". Plus you might like to get rid of the symbol displayed in the catalog templates if the price modifier is "="

Hope this helps you both.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Qphoria » Fri Oct 24, 2008 8:13 am

Zen-Cart has an option called "Product priced by options" where the base price of the product is set to the lowest priced option, and the text is changed to "Starting at: $4.99"

That doesn't sound too hard to do, and I might be interested in making that, but it's not on my high priority list at the moment.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by weniggary » Fri Oct 24, 2008 8:20 am

Thanks to both of you, if I get a good fix to work I will post it for others.

Newbie

Posts

Joined
Wed Apr 30, 2008 10:34 pm
Location - Kansas City, MO, USA

Post by jty » Fri Oct 24, 2008 12:09 pm

weniggary wrote: Also I would like to suggest that later versions also allow you to change the weight on the alternate item. We sell the same product in multiple sizes/weights which makes a big impact on the shipping.
The way I'm doing this is I'm using Qphoria's Options Weight Contribution. I'm also using Qphoria's Category Options List contribution - not sure if this one is required as well for the desired outcome.

I set the Product Price to zero with a weight of 1
Then I set the Options to the price of the Option with a weight factor of '*' and the weight of the Option

The final result is to use the price and the weight of the Option
Product Price = 0 + Options Price = Option Price
Product Weight = 1 Weight factor ='*' Option Weight = Option Weight

The only thing I'm not getting is a price for the product but that is not useful to me as each option has a different price anyway so I remove all traces of zero price for the products and just use the pricing on the option's drop down.

The other problem is that the Category Options Listings has not yet been updated for RC3 so minimum qty may doing something weird like blow up the internet or something more exciting.

PS: I wonder if Qphoria has time to update the Category Options List mod  :D

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Fri Oct 24, 2008 9:13 pm

jty wrote: PS: I wonder if Qphoria has time to update the Category Options List mod  :D
Just about finished it yesterday, but I'd like to add more features.. like being able to choose if you want to display options or not, and some other stuff. But I should still be able to get that done today.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 3 guests