Orphon Posted March 29, 2003 Share Posted March 29, 2003 All the searching did not answer my questions.... First, I want a mall type Store. I own them all and they can use the same DB but I want different shipping one would use USPS and UPS mods and another would use table rate and another would use none.... but I want everyone to go to mydomain.com/catalog and see all three (the whats new and specials and all of that could even have parts from all three) BUT I want them to look a little seperate.... There will be a "Music Store" a "gift Shop" and a section for "web Hosting" Like in the left side instead of picking a catagory they pick a store like.... Anyway, I am not sure if the virtual mall will allow this but I am playing with it..... right now I am getting this error.... Parse error: parse error, unexpected T_IF in /home/orphonso/public_html/mall/checkout_process.php on line 229 of course the line number changes if I move the code but can't seem to figure out where to put this bit of code from the mall instructions without getting that error.... $store_index = $order->products[$i]['store_id'] if (is_array($store_totals[$store_index])) { //------- Stuff the store array with the data needed to create individual store emails------ $store_totals[$store_index]['store_products'] .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "n"; $store_totals[$store_index]['store_weight'] += ($order->products[$i]['qty'] * $order->products[$i]['weight']); $store_totals[$store_index]['store_tax'] += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty']; $store_totals[$store_index]['store_cost'] += $total_products_price; } else { $store_totals[$store_index]['store_id'] = $order->products[$i]['store_id']; $store_totals[$store_index]['store_products'] .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "n"; $store_totals[$store_index]['store_weight'] += ($order->products[$i]['qty'] * $order->products[$i]['weight']); $store_totals[$store_index]['store_tax'] += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty']; $store_totals[$store_index]['store_cost'] += $total_products_price; } Any help would be appreciated.... Angela Link to comment Share on other sites More sharing options...
Orphon Posted March 30, 2003 Author Share Posted March 30, 2003 Through some more playing around I figured out that if I totally remove that bit of code it goes through fine.... but I don't know what this code does so I can only assume it is important for the shopping mall :( Still no luck in figureing out where to put it Angela Link to comment Share on other sites More sharing options...
coltact Posted May 22, 2003 Share Posted May 22, 2003 I have the exact same problem, but whwn I removethe code completely I am getting extra errors. If you find a solution, please let me know, and I will do likewise. Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.