Jump to content

Archived

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

surfinagain

--- How does checkout_confirmation work?

Recommended Posts

can some one tell me where this code from checkout_confirmation.php get it's values?

 

 

  if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
     for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
       echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
     }
   }

 

the function 'sizeof' returns the correct number of attributes a product in the cart has but the $order->products[$i]['attributes'][$j]['option'] and $order->products[$i]['attributes'][$j]['value'] don't seem to have the actual values of those attributes. As a result I'm seeing the option/attributes in the cart but not in the checkout confirmation OR order.

 

Thanks for any help...

Share this post


Link to post
Share on other sites

someone has to know how this section of checkout_confirmation works or at the very least where these arrays are being populated. I'm dying over this. Literally every order has at least one product with an option selection and they are being lost at checkout/order. PLEASE HELP IF YOU CAN.

 

Thanks....

Share this post


Link to post
Share on other sites

Resolved my problem by uninstalling PayPal 2.2 I'm sure it was my install and not PayPal mod. I just wasn't able to determine exactly where I went wrong and I really needed to fix the attributes problem I was having.

Share this post


Link to post
Share on other sites

I decided to test it on the stock osc install and it work. So it must be one of the mod I installed that mess up this thing...But which one ?????? :unsure:

Share this post


Link to post
Share on other sites

michael...first, i feel your pain! i spent too much time with 'beyond compare' looking for that needle in the hay stack of php code. you've at least got the code in front of you now that writes out order at checkout....so that should give you a good starting point. it has to be a botched mod install as it was with me.

 

good luck!

Share this post


Link to post
Share on other sites

Update Info

 

I removed the paypal contribution 2.6a and everything is working now. The stock paypal module work. The Paypal IPN contribution author is aware of the problem if he read the paypal ipn thread cause I also posted there.

 

Oh ya, removed paypal contribution mean completely remove files not disable the module in the admin.

 

Cheer! :D :D :D

Share this post


Link to post
Share on other sites

×