I just installed this mod, but it doesnt ask for a coupon code on the checkout process...help!
-Dan
Latest News: (loading..)
Credit Class & Gift Voucher
Started by Mnemonic, Jun 24 2003 02:21 PM
3 replies to this topic
#1
Posted 24 June 2003 - 02:21 PM
#2
Posted 31 July 2003 - 02:41 AM
Wrong place - go to contributions
"If you rundown your shadow, you will never catch it"
Bob Marley
Bob Marley
#3
Posted 02 August 2003 - 01:35 PM
Hello, I also run the "credit_class_gv_dc_v5.05"
and it looks nice ... but I've a bug and don't know
what is to do (to change)...
The bug is when the customer place a GIFT product
in the basket ... note: all other pruducts run very well!
The problem is allways only with the GIFTs when the
customer will put them in the basket!
This is the error-Warning when costumer show
the shopping_cart.php after the costumer put the
GIFT product in the basket:
In line 83 und 84
Warning: Variable passed to reset() is not an array or object in catalog/includes/modules/order_details.php on line 83
Warning: Variable passed to each() is not an array or object in catalog/includes/modules/order_details.php on line 84
This is the code of my "order_details.php":
also in line 105 und 106
Warning: Variable passed to reset() is not an array or object in catalog/includes/modules/order_details.php on line 105
Warning: Variable passed to each() is not an array or object in catalog/includes/modules/order_details.php on line 106
Have anyone an idea? :?
This would be great
Regards, Tonio
and it looks nice ... but I've a bug and don't know
what is to do (to change)...
The bug is when the customer place a GIFT product
in the basket ... note: all other pruducts run very well!
The problem is allways only with the GIFTs when the
customer will put them in the basket!
This is the error-Warning when costumer show
the shopping_cart.php after the costumer put the
GIFT product in the basket:
In line 83 und 84
Warning: Variable passed to reset() is not an array or object in catalog/includes/modules/order_details.php on line 83
Warning: Variable passed to each() is not an array or object in catalog/includes/modules/order_details.php on line 84
This is the code of my "order_details.php":
// Product options names
$attributes_exist = ((isset($products[$i]['attributes'])) ? 1 : 0);
if ($attributes_exist == 1) {
reset($products[$i]['attributes']);
while (list($option, $value) = each($products[$i]['attributes'])) {
echo '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
}
}
echo '</td>' . "n";
also in line 105 und 106
Warning: Variable passed to reset() is not an array or object in catalog/includes/modules/order_details.php on line 105
Warning: Variable passed to each() is not an array or object in catalog/includes/modules/order_details.php on line 106
// Product options prices
if ($attributes_exist == 1) {
reset($products[$i]['attributes']);
while (list($option, $value) = each($products[$i]['attributes'])) {
if ($products[$i][$option]['options_values_price'] != 0) {
if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {
echo '<br><small><i>' . $products[$i][$option]['price_prefix'] . $currencies->display_price($products[$i][$option]['options_values_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</i></small>';
} else {
echo '<br><small><i>' . $products[$i][$option]['price_prefix'] . $currencies->display_price($products[$i][$option]['options_values_price'], $products[$i]['tax'], $products[$i]['quantity']) . '</i></small>';
}
} else {
Have anyone an idea? :?
This would be great
Regards, Tonio
#4
Posted 02 August 2003 - 02:32 PM
Well, could fix the "bug" ... it's not a bug,
it's up to you if you forgot things to do :oops:
If you run GIFT Voucher so you should
set any product attributes in the Admin-Area
for the GIFT's also :idea:
- Option Name
- Otion Value
...and you get no more Error Warning!!
Regards, Tonio
it's up to you if you forgot things to do :oops:
If you run GIFT Voucher so you should
set any product attributes in the Admin-Area
for the GIFT's also :idea:
- Option Name
- Otion Value
...and you get no more Error Warning!!









