HLT Posted February 13, 2003 Share Posted February 13, 2003 We would like to remove the +$20.00 that appears next to attributes which have additional cost. I believe it appears on the product pages, the shopping cart page, and a couple checkout pages. My programmers have told me it will take them 1 hour to do this, and will require going into each page and manually modifying several files. Is there a more simple way to do this, that you might be aware of? I have been advised by frequent posters here to not take what my programmers say at face value, so any input will be welcome. HLT . www.hairlosstalk.com Consumer Hair Loss Information & Support Link to comment Share on other sites More sharing options...
floridagal Posted February 13, 2003 Share Posted February 13, 2003 Someone else will probably know better - I'm still very new at this --- but your question got me curious so I tested this out with a product w/ attributes & it seems to do the trick... Go to your products_info.php file, located in the /catalog directory. Somewhere around line 233 or so, you'll see code like this... if ($products_options_values['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text//'] .= ' (' . $products_options_values['price_prefix'] . $currencies->display_price($products_options_values['options_values_price'], tep_get_tax_rate($product_info_values['products_tax_class_id'])) .') '; } YECH - that didn't paste properly at all -- sorry!!!! Not used to trying to paste blocks into the forum :oops: I can try to PM it to you if that might help... Anyway, if you can locate that bit of code, just comment it out -- when I did this with my 'test item' -- it then showed the little drop-down box with the different options, but the +$price was no longer shown. The additional amount WAS still added to the person's amount due (which I gather you DO want??) Hope this helps, but someone else will probably explain it alot better, if this is even the 'proper' way of doing it... :cry: Anyway[/code] Link to comment Share on other sites More sharing options...
greree Posted February 13, 2003 Share Posted February 13, 2003 Which products? I'd like to look at it. Is it at www.hairlosstalk.com? Link to comment Share on other sites More sharing options...
HLT Posted February 13, 2003 Author Share Posted February 13, 2003 Its here, next to Large: http://www.hairlosstalk.com/progs/shop/cat...?products_id=42 . www.hairlosstalk.com Consumer Hair Loss Information & Support Link to comment Share on other sites More sharing options...
HLT Posted February 13, 2003 Author Share Posted February 13, 2003 wouldn't the add'l charge need to show up somewhere, so the customer could see what figures were making up their final total? Actually I consider adding dollar amounts to product attributes to be more confusing than helpful to the user. It's perfect if you're dealing with a base product with a base price and you want to add features. Then saying "Plus $20" is totally logical. However for anyone who is just selling a single item that happens to come in two sizes (most people), its not desireable at all. Usually, online stores just tell you on the page that a small is $19.95 and a large is $39.95. They don't say "A large is $19.95 plus $20.00". :) ... and then carry that "Plus 20" all throughout the ordering process. So we'd like to get rid of it. . www.hairlosstalk.com Consumer Hair Loss Information & Support Link to comment Share on other sites More sharing options...
greree Posted February 13, 2003 Share Posted February 13, 2003 Probably the best way to do it is to have two different products instead of one. Add the product "Large Toppik" for $39.95, and a seperate product called "Small Toppik" for 19.95. In the description of both put a link to the other, like on the large Toppik page put this "Click here to go to the small Toppik page" or something like it. Make the "here" a link to the other page. This can be done entirely from the Admin panel without changing the code at all. Link to comment Share on other sites More sharing options...
Guest Posted February 13, 2003 Share Posted February 13, 2003 you can try this: on line 218 theres this: <select name="id[2]"><option value="10">Large (+$20.00)</option><option value="9"> (in bold) you should be able to delete that... give it a try but keep a back up copy of that page... Link to comment Share on other sites More sharing options...
burt Posted February 13, 2003 Share Posted February 13, 2003 FloridaGals solution looks OK at first glance. Implement that and see how it goes, all you would need to do is put in the description, that the large is XYZ dollars. However, in the shopping cart page, it will still show as; 19.95 large +20.00 total: 39.95 2 ways around this (without coding): 1) 2 seperate products as someone else mentioned. 2) Set base price to zero, put in an if to say something like: [pseudo code] if products_price == 0 then don't show the price // will need to be done globally [/pseudo code] In products attributes set large = 39.95, small = 19.95 hth Link to comment Share on other sites More sharing options...
Ajeh Posted February 15, 2003 Share Posted February 15, 2003 We would like to remove the +$20.00 that appears next to attributes which have additional cost. I believe it appears on the product pages, the shopping cart page, and a couple checkout pages. My programmers have told me it will take them 1 hour to do this, and will require going into each page and manually modifying several files. Is there a more simple way to do this, that you might be aware of? I have been advised by frequent posters here to not take what my programmers say at face value, so any input will be welcome. HLT Just change the logic in /catalog/includes/classes/shopping_cart.php and /admin/includes/classes/shopping_cart.php and change all references to '+' ... example: if ($attribute_price['price_prefix'] == '+') { $attributes_price += $this_attribute_discounted_price; } else { $attributes_price -= $this_attribute_discounted_price; } Changes to: if ($attribute_price['price_prefix'] == '-') { $attributes_price -= $this_attribute_discounted_price; } else { $attributes_price += $this_attribute_discounted_price; } Then after each change has been done, do a global replace on databases that when prefix is blank make it - and if + make it blank Be sure to check your use of the blank so that you set the correct one to - or + Now, you have the option to use + or nothing to add on $20 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.