Contributions
EZ new fields
Easy way add retail price in the product_info.php
or some fields like this:
retail price: 89.99
our price: 45.00
you save: 44.99 or 50%
Expand All / Collapse All
i find another bug with the tax and discount
the right file is:
catalogincludesmodulesezier_new_fields.php
Sorry
if your prices are tax inclusive
in the retail price and if you display your price as tax inclusive, the "you save" amount calculated is incorrect (it misses the tax).
To fix it I changed the following:
In the same file find this line:
$save2 = osc_ez($currencies->display_price($product_info['products_retail_price'] - $product_info['products_price'], ''));
} // End of regular price
and change to:
$save2 = osc_ez(($currencies->display_price(($product_info['products_retail_price'] - $product_info['products_price']), tep_get_tax_rate($product_info['products_tax_class_id']))));
} // End of regular price
And the calculation should be correct.
Fixed a small issue in Step 9 of the HTML install file in which the product_listing.php file is modified.
Fix solves the issue of the index.php not displaying the correct % of savings for items on special.
Fix includes correct code changes to the included: catalog/includes/modules/product_listing.php
and fixed install HTML instructions.
Thanks to all those that created this extremely useful contrib.
A minor fix to allow sort by retail price in advanced search result. This will get rid of the sql syntax error.
In catalog/advanced_search_result.php(around 348), before:
case 'PRODUCT_LIST_PRICE':
$order_str .= "final_price " . ($sort_order == 'd' ? "desc" : "") . ", pd.products_name";
break;
add:
case 'PRODUCT_LIST_RETAIL_PRICE':
$order_str .= "p.products_retail_price " . ($sort_order == 'd' ? "desc" : "") . ", pd.products_name";
break;
Fixed a broken link, nothing big.
Change notes: 5 July 04:22:59
(1) Changed everything, again.
(2) Function created to take care of decimal replacements
(3) Turned into module you include in products_info.php, so you can choose where you want this to show.
(4) Updated results listing alignment
(5) Updated products_new.php to remove the extra space and only show if retail
(6) Updated boxes to only show if retail price is set.
(7) Cooler instructions
Support thread still here: http://forums.oscommerce.com/index.php?showtopic=87832
***********************************
Change notes: 17 June 09:13:59
(1) Added functionality to use this in the display results and search box, new code starts at step 6. New info under "Key to STEPS Needed"
(2) Added more language file additions.
(3) New mods for the whats new box and file, specials box and file and new products box.
Simply added the mods for the other languages. If you don't add them, you will get bull*hit text in its place on those pages in the other languages. I also listed the proper syntax for those who want to use a strikethrough on the retail price. Enjoy. :)
- 420
p.s. Outstanding hack, works flawlessly. Thanks! :)
1 more missed function missed.
Missed changing a function in the last one...
Change notes: 17 Apr 2004 15:35:59
(1) Fixed incorrect functions calls for "display_price" for those without customer discount contribution.
(2) Fixed inforrect input field for categories.php.
Support thread here: <a href="http://forums.oscommerce.com/index.php?showtopic=87832">http://forums.oscommerce.com/index.php?showtopic=87832</a>
Change notes: 15 Apr 2004 05:00:59
(1) Updated instructions with completely new code
(2) Works with special prices now!
(3) This release will work if you do/don't have customer contrib installed. Don't need a sep mod
(4) For MS2, if you need it ported for the CVS version, lemme know and I'll post the fix in the thread.
Problems, questions, comments?
Visit the support thread first.
www.nabcomdiamonds.com
Change notes: 9 Mar 2004 12:28:59
(1) Updated instructions, deleted old instructions
(2) Optimized code, again, its prettier now : ) The code that changed is marked with: (CHANGED CODE) (its on step 3 line 107)
(3) Modified code - Added option into admin console to set the number of decimal places you see. If you want to show $20.99, set to 2. To show $20.9, set to 1. To show just $20, set to 0. If anyone wants more decimal places, let me know.
(4) Included file gives instructions to integrate this with CustomerDiscount Contribution if you want, it can be found here: http://www.oscommerce.com/community/contributions,1672
Problems, questions, comments?
Email me at nrlatsha@nabcomdiamonds.com
www.nabcomdiamonds.com
Changes to orig:
1. Updated instructions
2. Optimized code
3. Modified for $0.00 retail price (ex. if you have a product with a retail price added, it will show these fields. If you have a product without a retail price, or a price of $0.00, it will not show the new fields. Making it easier to implement to a live store, without having to immediately update all products with retail price.)
List Price : $ 79.99
Our Price : $ 39.99
You Save: 50%
Problems, questions, comments?
Email me at nrlatsha@nabcomdiamonds.com
www.nabcomdiamonds.com
Noel R Latsha
EZ new fields v2.1
=======================
Updated install txt.
=======================
By Steve Tabor... AKA. cheli3
Copyright (c) Steve Tabor and 3BlindMiceDesign.com
Released 07/26/03
My 1st Contribution back to the community.
Thanks to all in the OSC Community for direction and help.
=======================
LICENSE: This code is licensed to you under the terms of the GNU Public License(GPL).
=======================
This is a modification and addition to the code originally developed by Sean Wang --- EZ new fields v1.0 ---06/21/03
I have tested this on MS1 and MS2.
Can't say if it will work on other versions.
(Ian's loaded 5 ????)
This new mod will allow the shopkeeper to not only display the product prices,
but will allow the customer to see how much He/She is saving.
Example:
List Price : $ 79.99
Our Price : $ 39.99
You Save 50% by shopping with us.
EZ new fields v2.0
=================================================================================
By Steve Tabor... AKA. cheli3
Copyright (c) Steve Tabor and 3BlindMiceDesign.com
Released 07/26/03
My 1st Contribution back to the community.
Thanks to all in the OSC Community for direction and help.
=================================================================================
LICENSE: This code is licensed to you under the terms of the GNU Public License(GPL).
=================================================================================
This is a modification and addition to the code originally developed by Sean Wang --- EZ new fields v1.0 ---06/21/03
I have tested this ONLY on MS2.
Can't say if it will work on other versions.
This new mod will allow the shopkeeper to not only display the product prices,
but will allow the customer to see how much He/She is saving.
Example:
List Price : $ 79.99
Our Price : $ 39.99
You Save 50% by shopping with us.
This is my 1st contribution so be kind, I'm still a nubee!!!
Regards,
Steve
Easy way add retail price in the product_info.php
or some fields like this:
retail price: 89.99
our price: 45.00
you save: 44.99 or 50%
Note: Contributions are used at own risk.