Jump to content

lrdiii

Members
  • Content count

    27
  • Joined

  • Last visited

  1. lrdiii

    PayPal.sql error

    Hi, I'm trying a new install of PayPal_Shopping_Cart_IPN 3.1.5, and upon executing 'paypal.sql' in phpMyAdmin, get the following error: Error SQL query: CREATE TABLE paypal ( paypal_id int(11) unsigned NOT NULL auto_increment, txn_type varchar(10) NOT NULL default '', reason_code varchar(15) default NULL, payment_type varchar(7) NOT NULL default '', payment_status varchar(17) NOT NULL default '', pending_reason varchar(14) default NULL, invoice varchar(64) default NULL, mc_currency char(3) NOT NULL default '', first_name varchar(32) NOT NULL default '', last_name varchar(32) NOT NULL default '', payer_business_name varchar(64) default NULL, address_name varchar(32) default NULL, address_street varchar(64) default NULL, address_city varchar(32) default NULL, address_state varchar(32) default NULL, address_zip varchar(10) default NULL, address_country varchar(64) default NULL, address_status varchar(11) default NULL, payer_email varchar(96) NOT NULL default '', payer_id varchar(32) NOT NULL default '', payer_status varchar(10) NOT NULL default '', payment_date datetime default NULL, payment_[...] MySQL said: Documentation #1067 - Invalid default value for 'quantity' Any help would be greatly appreciated! Thanks, Lou
  2. lrdiii

    PayPal_Shopping_Cart_IPN_v3.1.5 MYSQL error

    Same problem here... Did you ever resolve the error? Lou
  3. lrdiii

    [Contrib] Make An Offer

    Hi Howard, What a terrific idea! I've just installed "make an offer" v3.0 as a new install. It seems to be displaying ok on the retail side of the page, but I have no function on the admin side for setting a minimum acceptable bid The "Customer Offer Allowed" buttons are there, and are highlighted, or rather are in a box along with the Tax Class and Net & Gross Product Prices. But thats it. The buttons and the box are the only new things on the page... Can you help, please? Thanks, Lou
  4. Hi, I've just tried installing "File Upload .7 (for PA - Option Type Feature)" .77. The option types (radio, checkbox, text, textarea) all appear fine, but there is no file upload feature. I'm sure its gross stupidity on my part, but could someone please point me in the right direction? Thanks, Lou
  5. I just happened to be installing this for the first time, and was open to that page of the instructions! Lou
  6. lrdiii

    [CONTRIBUTION] product setup fee

    Hey Ed, I tried your file with my PayPal mods and it kept producing an error message. So I tried your file "out of the box" thinking the worst that could happen was PayPal would fail, and I could deal with that later. Still got the error. So I went back to my install copy of osc, and this is the virgin, entire admin/includes/classes/order.php that follows. My only guess is that its a different build... FYI, my friend... Lou <?php /* $Id: order.php,v 1.7 2003/06/20 16:23:08 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class order { var $info, $totals, $products, $customer, $delivery; function order($order_id) { $this->info = array(); $this->totals = array(); $this->products = array(); $this->customer = array(); $this->delivery = array(); $this->query($order_id); } function query($order_id) { $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 from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'"); $order = tep_db_fetch_array($order_query); $totals_query = tep_db_query("select title, text from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$order_id . "' order by sort_order"); while ($totals = tep_db_fetch_array($totals_query)) { $this->totals[] = array('title' => $totals['title'], 'text' => $totals['text']); } $this->info = array('currency' => $order['currency'], 'currency_value' => $order['currency_value'], 'payment_method' => $order['payment_method'], 'cc_type' => $order['cc_type'], 'cc_owner' => $order['cc_owner'], 'cc_number' => $order['cc_number'], 'cc_expires' => $order['cc_expires'], 'date_purchased' => $order['date_purchased'], 'orders_status' => $order['orders_status'], 'last_modified' => $order['last_modified']); $this->customer = array('name' => $order['customers_name'], 'company' => $order['customers_company'], 'street_address' => $order['customers_street_address'], 'suburb' => $order['customers_suburb'], 'city' => $order['customers_city'], 'postcode' => $order['customers_postcode'], 'state' => $order['customers_state'], 'country' => $order['customers_country'], 'format_id' => $order['customers_address_format_id'], 'telephone' => $order['customers_telephone'], 'email_address' => $order['customers_email_address']); $this->delivery = array('name' => $order['delivery_name'], 'company' => $order['delivery_company'], 'street_address' => $order['delivery_street_address'], 'suburb' => $order['delivery_suburb'], 'city' => $order['delivery_city'], 'postcode' => $order['delivery_postcode'], 'state' => $order['delivery_state'], 'country' => $order['delivery_country'], 'format_id' => $order['delivery_address_format_id']); $this->billing = array('name' => $order['billing_name'], 'company' => $order['billing_company'], 'street_address' => $order['billing_street_address'], 'suburb' => $order['billing_suburb'], 'city' => $order['billing_city'], 'postcode' => $order['billing_postcode'], 'state' => $order['billing_state'], 'country' => $order['billing_country'], 'format_id' => $order['billing_address_format_id']); $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']); $subindex++; } } $index++; } } } ?>
  7. lrdiii

    [CONTRIBUTION] product setup fee

    Ed, Belay that last request, if you would, please... I think I have it figured out... BTW, Lemme tell ya from the perspective of one who doesn't have a clue what he's doing in all this, that your original instructions were about the most straightforward, easy to follow, and concise that I've yet seen. Right up to the point they met with my corrupt file, of course! Thanks again for all your efforts! I really appreciate the help! Lou
  8. lrdiii

    [CONTRIBUTION] product setup fee

    As I said, I'm not really well versed when it comes to php, but could it be the PayPal mods are in conflict? Quoting from the PayPal IPN instructions, somewhere around line 104 of the file you sent I find what appears to want to be replaced above, but it appears you've modified the line already with "setup_price"? Am I being overly technical? I really appreciate all the help, Ed... Lou
  9. lrdiii

    JUST RELEASED! Printable Catalog

    Hey again, Lewis, Just to make sure I wasn't doing something incredibly stupid, which is well within the realm of possibility, I tried the contrib on a second site with the same result of no images. http://www.wintertreeshoppe.com/eCatalog/ Thanks! Lou
  10. lrdiii

    JUST RELEASED! Printable Catalog

    Hey Lewis, I was hoping this was my problem too, but no such luck... I'm getting no images at all, though everything else seems fine Any help would be most appreciated. If it helps, the site is located: http://www.marjsquiltfabrics.com/eCatalog/catalog/ Thanks! Lou
  11. lrdiii

    [CONTRIBUTION] product setup fee

    No problem, Ed... I got distracted by my hosting service's inability to keep php up and running... Still have an interest, and here's the file, THANKS! Lou <?php /* $Id: order.php,v 1.7 2003/06/20 16:23:08 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class order { var $info, $totals, $products, $customer, $delivery; function order($order_id) { $this->info = array(); $this->totals = array(); $this->products = array(); $this->customer = array(); $this->delivery = array(); $this->query($order_id); } function query($order_id) { //begin PayPal_Shopping_Cart_IPN $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 . "'"); //end PayPal_Shopping_Cart_IPN $order = tep_db_fetch_array($order_query); $totals_query = tep_db_query("select title, text from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$order_id . "' order by sort_order"); while ($totals = tep_db_fetch_array($totals_query)) { $this->totals[] = array('title' => $totals['title'], 'text' => $totals['text']); } $this->info = array('currency' => $order['currency'], 'currency_value' => $order['currency_value'], 'payment_method' => $order['payment_method'], 'cc_type' => $order['cc_type'], 'cc_owner' => $order['cc_owner'], 'cc_number' => $order['cc_number'], 'cc_expires' => $order['cc_expires'], 'date_purchased' => $order['date_purchased'], //begin PayPal_Shopping_Cart_IPN 'payment_id' => $order['payment_id'], //end PayPal_Shopping_Cart_IPN 'orders_status' => $order['orders_status'], 'last_modified' => $order['last_modified']); $this->customer = array('name' => $order['customers_name'], //begin PayPal_Shopping_Cart_IPN 'id' => $order['customers_id'], //end PayPal_Shopping_Cart_IPN 'company' => $order['customers_company'], 'street_address' => $order['customers_street_address'], 'suburb' => $order['customers_suburb'], 'city' => $order['customers_city'], 'postcode' => $order['customers_postcode'], 'state' => $order['customers_state'], 'country' => $order['customers_country'], 'format_id' => $order['customers_address_format_id'], 'telephone' => $order['customers_telephone'], 'email_address' => $order['customers_email_address']); $this->delivery = array('name' => $order['delivery_name'], 'company' => $order['delivery_company'], 'street_address' => $order['delivery_street_address'], 'suburb' => $order['delivery_suburb'], 'city' => $order['delivery_city'], 'postcode' => $order['delivery_postcode'], 'state' => $order['delivery_state'], 'country' => $order['delivery_country'], 'format_id' => $order['delivery_address_format_id']); $this->billing = array('name' => $order['billing_name'], 'company' => $order['billing_company'], 'street_address' => $order['billing_street_address'], 'suburb' => $order['billing_suburb'], 'city' => $order['billing_city'], 'postcode' => $order['billing_postcode'], 'state' => $order['billing_state'], 'country' => $order['billing_country'], 'format_id' => $order['billing_address_format_id']); $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++; } } } ?>
  12. lrdiii

    [CONTRIBUTION] product setup fee

    Hi, Ed! I need the exact same thing, but am having a little trouble following the instructions... I can't even find the lines if ($attribute_price['price_prefix'] == '+') { $attributes_price += $attribute_price['options_values_price']; ... in STEP 5: admin/includes/classes/order.php... It says around line 245, and I only have 126 lines in my (albeit modified) file... I'm brand new it this, so "gross stupidity" isn't beyond my capacity! Thanks, Lou
  13. Hi all, Has antone tried http://www.oscommerce.com/community/contributions,3345/ (Attribute Quantity Product Info), please? It's supposed to display product attributes with checkboxes and quantity to order, though I can't seem to get it to display anything but headings. I'm new to osC, so could well be in my attribute setup... Any help would be most appreciated! Lou
×