Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

andyshea

Archived
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • Real Name
    andy shea

andyshea's Achievements

  1. if i made the last modification as mentioned, i can see this page without a problem: http://www.xxx.com/admin/orders.php this page basically shows a summary of all orders that i have. from here, when i try to click on "details", invoices", "packing slip" and "edit", i can only see a blank page except for the side bar and the header. one thing, the "delete" button on the same page works without a problem though if i don't make the last modification, everything seems to be running fine and there is no blank page. seems like i can edit and update orders correctly but i suspect that certain fields will not be updated by the way, i m running mysql 4.1.10-standard thank you
  2. hi, I have followed what you suggested and put back the original file for admin/includes/classes/order.php and this time, it works almost perfect except for some minor error. so i make the changes according to the installation note one by one and upload the file after every change to see if there is any problem. My problem finally arrives after i made this change: ###Find this starting at line 80: $index = 0; $orders_products_query = tep_db_query("select orders_products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'"); while ($orders_products = tep_db_fetch_array($orders_products_query)) { $this->products[$index] = array('qty' => $orders_products['products_quantity'], 'name' => $orders_products['products_name'], 'model' => $orders_products['products_model'], 'tax' => $orders_products['products_tax'], 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price']); $subindex = 0; $attributes_query = tep_db_query("select products_options, products_options_values, options_values_price, price_prefix from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . (int)$order_id . "' and orders_products_id = '" . (int)$orders_products['orders_products_id'] . "'"); if (tep_db_num_rows($attributes_query)) { while ($attributes = tep_db_fetch_array($attributes_query)) { $this->products[$index]['attributes'][$subindex] = array('option' => $attributes['products_options'], 'value' => $attributes['products_options_values'], 'prefix' => $attributes['price_prefix'], 'price' => $attributes['options_values_price']); ****Replace it with this: $countryid = tep_get_country_id($this->delivery["country"]); $zoneid = tep_get_zone_id($countryid, $this->delivery["state"]); $index = 0; $orders_products_query = tep_db_query(" SELECT op.orders_products_id, op.products_name, op.products_model, op.products_price, op.products_tax, op.products_quantity, op.final_price, p.products_tax_class_id, p.products_weight FROM " . TABLE_ORDERS_PRODUCTS . " op LEFT JOIN " . TABLE_PRODUCTS . " p ON op.products_id = p.products_id WHERE orders_id = '" . (int)$order_id . "'"); while ($orders_products = tep_db_fetch_array($orders_products_query)) { $this->products[$index] = array('qty' => $orders_products['products_quantity'], 'name' => $orders_products['products_name'], 'model' => $orders_products['products_model'], 'tax' => $orders_products['products_tax'], 'tax_description' => tep_get_tax_description($orders_products['products_tax_class_id'], $countryid, $zoneid), 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price'], 'weight' => $orders_products['products_weight'], 'orders_products_id' => $orders_products['orders_products_id']); $subindex = 0; $attributes_query = tep_db_query("select * from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . (int)$order_id . "' and orders_products_id = '" . (int)$orders_products['orders_products_id'] . "'"); if (tep_db_num_rows($attributes_query)) { while ($attributes = tep_db_fetch_array($attributes_query)) { $this->products[$index]['attributes'][$subindex] = array('option' => $attributes['products_options'], 'value' => $attributes['products_options_values'], 'prefix' => $attributes['price_prefix'], 'price' => $attributes['options_values_price'], 'orders_products_attributes_id' => $attributes['orders_products_attributes_id']); i think the problem arises from here: $orders_products_query = tep_db_query(" SELECT op.orders_products_id, op.products_name, op.products_model, op.products_price, op.products_tax, op.products_quantity, op.final_price, p.products_tax_class_id, p.products_weight what are these objects referring to i.e op and p? is there any other way i can overcome this? my code currently seems to work perfectly without this modification but i m sure i have missed out something if I don't modify these code. pls advise :D
  3. When I mouse over the button 'details', this is what i seen in the status bar: http://xxx.com/admin/orders.php?selected_b...amp;action=edit For 'delete' http://xxx.com/admin/orders.php?selected_b...p;action=delete For others: http://xxx.com/admin/invoice.php?oID=106 http://xxx.com/admin/packingslip.php?oID=106 http://xxx.com/admin/edit_orders.php?oID=106
  4. i can see this page without a problem: http://www.xxx.com/admin/orders.php this page basically shows a summary of all orders that i have. from here, when i try to click on "details", invoices", "packing slip" and "edit", i can only see a blank page except for the side bar and the header. one thing, the "delete" button on the same page works without a problem though thank you
  5. only a blank page except for the header and the left navigation bar thanks
  6. Hi, Thank you for your advice. The first part indeed come from: admin/orders.php and the rest come from: admin/includes/classes/order.php However, it still doesn't work. Any more advice? thanks
  7. Hi, I have installed PayPal IPN 3.1.5 and would like to install order editor 2.6.3 But there is some overlapping codes and would like to seek your advice: First part: original: <td class="pageHeading" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action','referer'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td> replacement: <td class="pageHeading" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS_EDIT, 'oID=' . $_GET['oID']) . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $_GET['oID']) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $_GET['oID']) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action','referer'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a> '; ?></td> second part: original: $order_query = tep_db_query("select customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, currency, currency_value, date_purchased, orders_status, last_modified, customers_id, payment_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'"); replacement: $order_query = tep_db_query("select * from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'"); third part: $index = 0; //begin PayPal_Shopping_Cart_IPN $orders_products_query = tep_db_query("select orders_products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price, products_id from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'"); //end PayPal_Shopping_Cart_IPN while ($orders_products = tep_db_fetch_array($orders_products_query)) { $this->products[$index] = array('qty' => $orders_products['products_quantity'], //begin PayPal_Shopping_Cart_IPN 'id' => $orders_products['products_id'], 'orders_products_id' => $orders_products['orders_products_id'], //end PayPal_Shopping_Cart_IPN 'name' => $orders_products['products_name'], 'model' => $orders_products['products_model'], 'tax' => $orders_products['products_tax'], 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price']); $subindex = 0; //begin PayPal_Shopping_Cart_IPN $attributes_query = tep_db_query("select products_options, products_options_values, options_values_price, price_prefix, products_options_id, products_options_values_id from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . (int)$order_id . "' and orders_products_id = '" . (int)$orders_products['orders_products_id'] . "'"); //end PayPal_Shopping_Cart_IPN if (tep_db_num_rows($attributes_query)) { while ($attributes = tep_db_fetch_array($attributes_query)) { $this->products[$index]['attributes'][$subindex] = array('option' => $attributes['products_options'], //begin PayPal_Shopping_Cart_IPN 'option_id' => $attributes['products_options_id'], 'value_id' => $attributes['products_options_values_id'], //end PayPal_Shopping_Cart_IPN 'value' => $attributes['products_options_values'], 'prefix' => $attributes['price_prefix'], 'price' => $attributes['options_values_price']); $subindex++; } } $index++; } } } replacement: $countryid = tep_get_country_id($this->delivery["country"]); $zoneid = tep_get_zone_id($countryid, $this->delivery["state"]); $index = 0; //modifed for Order Editor 2.4, Products Description, and PayPal IPN $orders_products_query = tep_db_query(" select op.orders_products_id, op.products_id, op.products_name, op.products_model, op.products_price, op.products_tax, op.products_quantity, op.final_price, p.products_tax_class_id, pd.products_description from " . TABLE_ORDERS_PRODUCTS . " op join " . TABLE_PRODUCTS_DESCRIPTION . " pd on op.products_id = p.products_id join " . TABLE_PRODUCTS . " p on op.products_id = p.products_id where orders_id = '" . (int)$order_id . "'"); while ($orders_products = tep_db_fetch_array($orders_products_query)) { $this->products[$index] = array('qty' => $orders_products['products_quantity'], 'id' => $orders_products['products_id'], 'name' => $orders_products['products_name'], 'model' => $orders_products['products_model'], 'tax' => $orders_products['products_tax'], 'description' => $orders_products['products_description'], 'tax_description' => tep_get_tax_rates_description($orders_products['products_tax_class_id']), 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price'], 'orders_products_id' => $orders_products['orders_products_id']); $subindex = 0; $attributes_query = tep_db_query("select * from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . (int)$order_id . "' and orders_products_id = '" . (int)$orders_products['orders_products_id'] . "'"); if (tep_db_num_rows($attributes_query)) { while ($attributes = tep_db_fetch_array($attributes_query)) { $this->products[$index]['attributes'][$subindex] = array('option' => $attributes['products_options'], 'value' => $attributes['products_options_values'], 'option_id' => $attributes['products_options_id'], 'value_id' => $attributes['products_options_values_id'], 'prefix' => $attributes['price_prefix'], 'price' => $attributes['options_values_price'], 'orders_products_attributes_id' => $attributes['orders_products_attributes_id']); $subindex++; } } $index++; } } } //End Order Editor, Products Description and PayPal IPN ?> Can you please advise me if there is any problem with the replacement codes? I have tried it and ms2.2 returns with a blank screen(i can only see the side navigation on the left). Thanks a million!!
  8. Hi all, I have just installed PayPal IPN 1.1 and everything works fine except for the item name appears on the PayPal receipt. I have installed CCGV as well and if I were to set the transaction type to "Per Item", discount value will not appear on PayPal at all. However, if I were to set the transaction type to "Aggregate", I can only see my page's title under item purchased. I ve read previous posts and I understand that this is the limitation of the contribution, which I can accept. My only question is is there a way to use some other generic name other than my page's title? Will be very grateful if someone can point me to the right direction. :blink: Thank you!
  9. Hi, I m looking for a solution which will allow payment method displayed according to product purchased? Is this possible? I have tried to look in the contribution but unable to find any Can someone help me please? Thank you regards, Andy
×
×
  • Create New...