Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

newburns

Pioneers
  • Posts

    253
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by newburns

  1. Not the product name... So after you select a product, you select the attribute. My attributes are downloads, and a filename must be typed for that downloadable attribute. Typing the filename usually results in user error every 1000 or so products. Is there a way to have some kind of file selector. So the filename is 100% correct each time?
  2. Is it possible to have a file selector in this attribute editor? I have downloadable content for each product, and typing the names takes a REALLY long time for each product.
  3. Is there any way to edit the order status of an order. Just having the two order statuses does not work for my installation. Please point me in the right direction. I need some orders to be pending, and some to be completed. Any ideas?
  4. Is it possible to utilize application_top.php or configure.php for db settings? I tried to change the variables and include("../includes/application_top.php"); but that failed miserably. I just hate to keep up the DB info in two separate sections.
  5. Oh DEAR GOD!!! Please rewrite the download.php I sell MP3's from my store along with the physical CD counterpart. It is a complete nightmare getting people to their download after purchase. Having them go to account history, order view, and the text-based download button is a killer. I have update the download button to be more of a button, but there has to be a better way. 1. I have had suggestions where the download was emailed to the customer after purchase. I am not particularly fond of that route. Some of my MP3 albums are over 100MB. 2. I have had suggestions for the download link immediately after purchase, as long as the payment type places the order in the proper status. I think this would be the best fix. 3. I've had issues where they've had trouble locating their download after purchase on a different device. I think that can be solved with a module showing your available downloads in a sidebar. 4. The final issue I've run into is Guest purchases. I'm not sure if that can be tackled as guests have no way to get back to their downloads once the session is gone.
  6. Any possibility to get this working in the admin side? Using the same catalog thumbs folder if possible? So all thumbs are kind of shared...
  7. I've added the function to my admin/includes/functions/general.php // Return a formatted address // TABLES: customers, address_book function tep_address_label($customers_id, $address_id = 1, $html = false, $boln = '', $eoln = "\n") { if (is_array($address_id) && !empty($address_id)) { return tep_address_format($address_id['address_format_id'], $address_id, $html, $boln, $eoln); } $address_query = tep_db_query("select entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customers_id . "' and address_book_id = '" . (int)$address_id . "'"); $address = tep_db_fetch_array($address_query); $format_id = tep_get_address_format_id($address['country_id']); return tep_address_format($format_id, $address, $html, $boln, $eoln); } I've called it like such $delivery_address = tep_address_label($customer_id, $sendto, 0, '', '<br />'); The problem is now the $customer_id The address is blank or NULL. How do I set the $customer_id from the orders page? The $customer_id is in the "orders" table, but I don't know how to set it. Or should I just leave it the way that I showed before? I don't know what is best practice. It's possible to have different shipping address on each order, that is not in the address book.
  8. tep_address_label is available in the /catalog/includes/functions/general.php How do I make that function available to the admin section? I am working on an add-on "Mail Manager", and I'm trying to get the tep_address_label function available to the "Order Editor" add-on. This is sort of combining two add-ons. What I have so far... $billing_address = "\n" . $order->billing['name'] . "<br />"; if ($order->billing['company']) { $billing_address .= $order->billing['company'] . "<br />"; } $billing_address .= $order->billing['street_address'] . "<br />"; if ($order->billing['suburb']) { $billing_address .= $order->billing['suburb'] . ", "; } if ($order->billing['state']) { $billing_address .= $order->billing['state'] . " "; } $billing_address .= $order->billing['postcode'] . "<br />" . $order->billing['country'] . "<br>"; $delivery_address = "\n" . $order->delivery['name'] . "<br />"; if ($order->delivery['company']) { $delivery_address .= $order->delivery['company'] . "<br />"; } $billing_address .= $order->delivery['street_address'] . "<br />"; if ($order->delivery['suburb']) { $delivery_address .= $order->delivery['suburb'] . ", "; } if ($order->delivery['state']) { $delivery_address .= $order->delivery['state'] . " "; } $delivery_address .= $order->delivery['postcode'] . "<br />" . $order->delivery['country'] . "<br>"; $order_comments = $order->info['comments']; $paymentmethod = $order->info['payment_method']; $ccardtype = $order->info['cc_type']; $payment_class = $payment_class->email_footer; I want to replace this with $delivery_address = tep_address_label($customer_id, $sendto, 0, '', '<br />'); $billing_address = tep_address_label($customer_id, $billto, 0, '', '<br />'); $order_comments = $order->info['comments']; $paymentmethod = $order->info['payment_method']; $ccardtype = $order->info['cc_type']; $payment_class = $payment_class->email_footer; I am sure that the order_editor needs to be updated as well for this, but I am new to coding and I'm just trying to wrap my head around how all of this works. This is the email function that calls the Mail Manager module. I tried to retain the standaard text email as much as I could. https://github.com/newburns/osCommerce-234-bootstrap-wADDONS/blob/1c91c12c009835c652d2529266a13689c5202941/admin/edit_orders_ajax.php#L934-L1016
  9. I see Gergely code for reset button is in the installation of R20, but I don't see where I missed the SQL script to run. Is that supposed to be apart of the db_install.php INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('Reset thumbs', 'RESET_IMAGE_THUMBS', 'false', 'Reset thumbs cache', 4, 9, '2013-02-20 19:36:26', '2013-01-29 17:11:10', 'tep_cfg_reset_thumbs_cache', 'tep_cfg_select_option(array(''reset'', ''false''),');
  10. @@jcall Do you have a github version of this addon? I'm looking to change some things, such as, how the database credentials are pulled. I want everything to parse from configuration.php I also like the Bootstrap version, but it doesn't seem to be moving much. Before I started from scratch, was wondering if you had something already going
  11. @@raiwa, I am going to attempt to install this into my Repo... will the state selector appear for Purchase Without Account (PWA), or does the code specifically select create_account.php? https://github.com/newburns/osCommerce-234-bootstrap-wADDONS
  12. @@dculley From what I uderstand, I should have all of the incorporated changes in my repo https://github.com/newburns/osCommerce-234-bootstrap-wADDONS Take a look at all of the issues posted before you go with this. There are some things yet to be fixed that are not related to this addon. Still working on incorporating Mail Manager into the complete OSC and all it's components for emailing
  13. @@Rainer Just updated my github collab with your changes. Do you mind checking it out before I push the changes to the master? https://github.com/newburns/osCommerce-234-bootstrap-wADDONS/tree/KISSit-R11
  14. @@iTea Have you tried https://github.com/newburns/osCommerce-234-bootstrap-wADDONS I think I did that...
  15. I have it working for the most part https://github.com/newburns/osCommerce-234-bootstrap-wADDONS I still have to pull the latest Master, but it seems to be fairly stable. Post an issue if you have problems
  16. I did not get the Gift Voucher to work. But the discount coupon works so far. There are some other bugs in the issues, but so far, it seems fairly stable. I am no longer adding to it, just maintatining this repo. It is not the proper direction for osCommerce, but it is a band-aid for some. Just know, the band-aid is not a fix. https://github.com/newburns/osCommerce-234-bootstrap-wADDONS
  17. LOL. Nice little troubleshooting. I'm going to use that for everything!!! :)
  18. I have been working away like a madman, trying to get this thing squared away. But I needs some help... I have Mail Manager installed in gBurton 2.3.4 Bootstrap. There are some things that I am trying to iron out, and wondering if anyone can help out. I have it hosted on GitHUB. https://github.com/newburns/osCommerce-234-bootstrap-wADDONS Primarily, it's this issue: https://github.com/newburns/osCommerce-234-bootstrap-wADDONS/issues/16
  19. Still having problems with the image for tell_a_friend.php I don't think this is the right way to pull the image URL $product_image = tep_image($image_urlfix.DIR_WS_IMAGES . $product_info['products_image_med'], $product_info['products_name'], '', '', ''); Still looking for a different way to get the image URL
  20. Seems the mail manager is using outdated variables. I'm assuming this is a 2.3.4 thing, so if you experience issues with the variables not parsing in the Forgotten Password email, you mush change: ./catalog/password_forgotten.php /* **Altered for Mail Manager** tep_mail($check_customer['customers_firstname'] . ' ' . $check_customer['customers_lastname'], $email_address, EMAIL_PASSWORD_RESET_SUBJECT, sprintf(EMAIL_PASSWORD_RESET_BODY, $reset_key_url), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); */ if (file_exists(DIR_WS_MODULES.'mail_manager/password_forgotten.php')){ include(DIR_WS_MODULES.'mail_manager/password_forgotten.php'); }else{ tep_mail($check_customer['customers_firstname'] . ' ' . $check_customer['customers_lastname'], $email_address, EMAIL_PASSWORD_RESET_SUBJECT, sprintf(EMAIL_PASSWORD_RESET_BODY, $reset_key_url), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } /* **End of alterations for Mail Manager** */ EMAIL_PASSWORD_REMINDER_SUBJECT has been changed to EMAIL_PASSWORD_RESET_SUBJECT EMAIL_PASSWORD_REMINDER_BODY has been changed to EMAIL_PASSWORD_RESET_BODY $new_password has been changed to $reset_key_url These same variables MUST be changed in ./catalog/includes/modules/mail_manager/password_forgotten.php Once I finish testing everything with Mail manager, I'll have it installed in my GitHUB master https://github.com/newburns/osCommerce-234-bootstrap-wADDONS
  21. @@igloobob If you have the payment module installed, then, during checkout, select the Free payment type. Do not select the Authorize.net payment when there is an amount of 0.00 Ultimately you can bypass the payment page by following the intruction.txt Be sure to change the number of payment count based on how many payment modules you have ENABLED (Including the FREE PRODUCT CHECKOUT payment module)
  22. Mail Manager seems to be just an alternate Administrative tool. Unsubscribing appears to use the standard OSC workflow. No changes there. Mail Manager does not have it's own subscription listing.
  23. The Forgotten Password template does not work. It sends the proper email template, but the "pwandmessage" is not properly parsed. Can someone please confirm?
×
×
  • Create New...