Jump to content



Latest News: (loading..)

- - - - -

Credit Class & Gift Voucher


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1   Mnemonic

Mnemonic
  • Members
  • 27 posts

Posted 24 June 2003 - 02:21 PM

I just installed this mod, but it doesnt ask for a coupon code on the checkout process...help!

-Dan

#2   bluephoenix

bluephoenix
  • Members
  • 636 posts

Posted 31 July 2003 - 02:41 AM

Wrong place - go to contributions
"If you rundown your shadow, you will never catch it"
Bob Marley

#3   Tonio

Tonio
  • Members
  • 2 posts

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":

// 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  :lol:
Regards, Tonio

#4   Tonio

Tonio
  • Members
  • 2 posts

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!!

:P  Regards, Tonio