tim_ver Posted January 10, 2014 Posted January 10, 2014 I need some help here. I have setup in the product attributes Size and quantity which is working fine. The issue I am having is the price is not working correctly. The first one is but the second and third are not when I set it to add the amount to the price. I have an example below to show you what is going on. Can someone please help on how to fix this issue? Size Price showing Discount Net Price Comments 30 $32.50 20% $26.00 This is working correctly 60 +$15.00 $32.50 20% $41.00 (Not working at all. Showing the wrong prices. Should be this – Price Showing: $47.50 Net Price: $38.00) 90 +$25.00 $32.50 20% $51.00 (Not working at all. Showing the wrong prices. Should be this – Price showing: $57.50 Net Price: $46.00)
tim_ver Posted January 10, 2014 Author Posted January 10, 2014 Sorry tried to upload a image file and also a table of the sample but this editor will not allow either so the same got scrambled. Size Price showing Discount Net Price Comments 30 $32.50 20% $26.00 This is working correctly 60 +$15.00 $32.50 20% $41.00 (Not working at all. Showing the wrong prices. Should be this – Price Showing: $47.50 Net Price: $38.00) 90 +$25.00 $32.50 20% $51.00 (Not working at all. Showing the wrong prices. Should be this – Price showing: $57.50 Net Price: $46.00)
♥toyicebear Posted January 10, 2014 Posted January 10, 2014 http://addons.oscommerce.com/info/1716 Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
tim_ver Posted January 10, 2014 Author Posted January 10, 2014 Thanks, I see it says version 2.2 but this should also work on version 2.3?
♥toyicebear Posted January 10, 2014 Posted January 10, 2014 More or less, you might have to make some changes. ie. do not blindly add in any files from the add-on do all code changes manually in the 2.3+ files. NOTE: Always make a backup of the original files first. Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
tim_ver Posted January 13, 2014 Author Posted January 13, 2014 I added the mod but it is not working. The prices are way off from what they should be. I have put a link below to what I am after for the mod, This site use to have a drop down option for size now it is a button you press, either of these would work fine for me. I just would like it to show the retail price for each one correctly (ie: 30, 60, 90, etc) and then show the price after the discount is applied. It does not need to show the discount given as it does on this site but would be nice if it did. vitacost.com/megafood-adrenal-strength-60-tablets-2#pv=82398
Patrick73 Posted January 21, 2014 Posted January 21, 2014 There are quite a few contributions for attributes, some with actual price, but none that I've found ever considered specials in the attributes final price. They all the same problem and do not take specials value to attribute so if: Product price:10.00$ attributes a value price 0.00$ attributes b value price: 10.00$. Actual price puts out: Price: 10.00$ attribute a :10.00$ attribute b :20.00$ Specials 10% Price: 9.00$ attribute a: 9.00$ Attributes b:19.00$ instead of 18.00$ I could not find a solution for this so I made my own on my store which looks like: if ($this->products_special_status != 0) { $attributes_special_value = ($attribute_price['options_values_price'] * ($this->products_special_price / $this->products_original_price)); } else { $attributes_special_value = ($attribute_price['options_values_price']); } I use qtpro with actual price on with single_radioset.
Patrick73 Posted January 21, 2014 Posted January 21, 2014 Corrected link: http://www.lavoliere.ca/images/osc.jpg
burt Posted January 21, 2014 Posted January 21, 2014 The specials mechanism affects product price only, not the attributes of the product... Should it affect the attribute prices also ?
Patrick73 Posted January 23, 2014 Posted January 23, 2014 The specials mechanism affects product price only, not the attributes of the product... Should it affect the attribute prices also ? May be I am not using attributes as they were intended but the way my store is set up, attributes are different sizes of the same products and some with different prices for each. So if a product is on sale, the attributes value needs to also be. I don't understand why this is not stock Osc. When using the basic Osc attributes module and adding a value to an attribute, when putting that product on sale, the attribute value should be lowered also no? By the way, for anyone interested, the code that I posted above is just the equation of my code to make it work. It is a bit more complex than just that single condition. I've wanted to pull the code and submit an addon but did not take time for it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.