Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit Class & Gift Voucher


Guest

Recommended Posts

Posted

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

 

-Dan

  • 1 month later...
Posted

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

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...