Contributions
GroupDiscount
About
-----
This contribution allow to create Customers Groups, and to bind a discount rate
to them.
The administrator can set groups, group's discount, and bind customers to
groups.
The prices in catalogue are already shown with the applied discount, unlike
other contributions like this that use the "order_total" method, to show a
final discount.
Discount rate is applied on every price, also on product attributes, but it is
not applied on special prices.
Please visit osCommerceITalia @ http://www.oscommerceitalia.com
Expand All / Collapse All
FOR: checkout_confirmation.php, with this code at top of page...
$Id: checkout_confirmation.php,v 1.139 2003/07/24 17:34:53 Strider Exp $
$Id: checkout_confirmation.php,v 1.139 2003/06/11 17:34:53 hpdl Exp $
$Id: checkout_confirmation.php,v 1.6.2.3 2003/05/10 20:12:14 wilt Exp $
Notes / Symptoms:
I'm not sure what error this may give on some servers, but on the one I'm working on all I got was a blank page with blank source.
I hope this saves others a lot of time.
Cause:
These lines appear twice in the document.
require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;
Things to consider before fix:
I was merging GroupDiscount’s checkout_confirmation.php over Credit Class - Gift Vouchers 1.51a’s checkout_confirmation.php, but I am doubtful this fix will cause errors with a clean install.
Fix:
1. Look for where the above 2 lines of code appear together. Around line 89.
2. Comment or delete them.
//GroupDiscount start
$info_box_contents[] = array('align' => 'center',
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br><s>' . $currencies->display_price_nodiscount($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price_nodiscount($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>');
//GroupDiscount end
NOT: DIR_WS_PRODUCT_IMAGES
The greek language files for this contribution
www.boxproject.gr
You have to use the display_price_nodiscount function twice in the specials php files or you discount price will be higher than the original.
add a constant to show the right wording of page spliting. etc.
v1.3 - by hOZONE
----
. fix a bug in catalog/includes/modules/product_listing.php
v1.2 - by hOZONE
----
. clean some code in catalog/admin/customers_groups.php
About
-----
This contribution allow to create Customers Groups, and to bind a discount rate
to them.
The administrator can set groups, group's discount, and bind customers to
groups.
The prices in catalogue are already shown with the applied discount, unlike
other contributions like this that use the "order_total" method, to show a
final discount.
Discount rate is applied on every price, also on product attributes, but it is
not applied on special prices.
Please visit osCommerceITalia @ http://www.oscommerceitalia.com
Note: Contributions are used at own risk.