Jump to content

assembler

Members
  • Content count

    50
  • Joined

  • Last visited

Everything posted by assembler

  1. This contribution allows you to batch print the orders on the orders.php screen. You can filter based on order status, and can then select/deselect orders for printing. Can batch update order status as well. Instead of using frames or a PDF, this contrib produces 1 invoice per page by using CSS page breaks. Can easily be adapted to your custom invoice layout. Batch Printing with Frames or PDF
  2. This contribution adds reviews to the product info page. You can manually set the number of reviews per page. A screen shot is included in the package. http://www.oscommerce.com/community/contributions,3340
  3. assembler

    Purchase Order (PO) Payment Module Question

    It may be because of STS - I am unfamiliar with that contribution. Do payment errors work on any payment modules for you? If so, you should see how they are displayed with the the module. This module uses the stock oscommerce way of displaying the error with this code: if ($error != '') { $payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error); tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false)); } It redirects the user to the page where you select the payment options, and displays the error text at the top of the page.
  4. assembler

    Purchase Order (PO) Payment Module Question

    It should bring you back to the page where you select your payment method (checkout_payment.php) - and the message shows at the top of the page like all the other payment modules.
  5. assembler

    Purchase Order (PO) Payment Module Question

    This is now posted in the contributions. http://addons.oscommerce.com/info/5710
  6. assembler

    Purchase Order (PO) Payment Module Question

    Find this in catalog/includes/modules/payment/po.php function before_process() { global $HTTP_POST_VARS, $order; Add this directly after $error = ''; if (strlen($_POST['po_owner']) < 1) { $error = 'Please enter a valid Company Name'; } elseif(strlen($_POST['po_number']) < 1){ $error = 'Please enter a valid Purchase Order Number'; } if ($error != '') { $payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error); tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false)); } I'll set it up with language file support and upload it to the contributions in the morning. I'll also add the cronjob that reminds people to send a hardcopy.
  7. assembler

    Purchase Order (PO) Payment Module Question

    I'll check it out. Are you having any trouble with the results posting into the database? Some other users are reporting trouble.
  8. assembler

    AJAX Quick Search

    This is the support thread for the AJAX Quick Search Contribution. http://www.oscommerce.com/community/contributions,3413 This contribution adds an AJAX Quick Search to your advanced search page. It could easily be adapted to any search box and any query in osCommerce. This works basically the same way as Google Suggest. As you type, it guesses what you are typing and displays the product names below the search box. This works in real time, with no need to reload the page.
  9. I've noticed a lot of stores lately with a "Try Searching For" link on the product info pages, followed by the product name broken down into search strings. This should multiple the number of pages your store has by a fairly large amount. Easy to install, it should only take a few minutes. http://www.oscommerce.com/community/contributions,4218
  10. assembler

    Reviews on Product Info Page v1.0

    The names are stored in the table reviews, in one column called customers_name. You would have to explode this field to get the first name. You could do something like: $name_array = explode(" ",$reviews['customers_name']); $firstname = $name_array[0];
  11. Adds a small line to your header that displays the number of items in the shopping cart, and the current subtotal. Clicking on the number of items or the subtotal brings you directly to the shopping cart. This allows you to remove the shopping cart box from column_right.php, while still allowing your customers to have access to the basic information on every page. Very easy to install. Backup first. Cart Information in Header
  12. I'm looking for a contribution that will let me define products in my store as sub products, which can then be added to a main product. I would like the main product info page to display the sub products, with the option of adding each of the sub products to the shopping cart. I would not like the sub products to be displayed in the product listings. I am doing this because I need the products_model to be different on each of these sku's because of my order export module, but I want them to display on one product info page. Does anyone know if a project like this exists? Would anyone be interested in assisting me? I'm thinking the best way to do this would be to create a table called products_to_products... /*Table structure for table `products_to_products` */ DROP TABLE IF EXISTS `products_to_products`; CREATE TABLE `products_to_products` ( `parent_products_id` int(11) NOT NULL, `child_products_id` int(11) NOT NULL, PRIMARY KEY (`parent_products_id`,`child_products_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci; And then change all of the product queries to something like: select p.products_id, pd.products_name, ptc.categories_id, ptp.parent_products_id FROM products p, products_description pd, products_to_categories ptc, products_to_products ptp WHERE p.products_id = pd.products_id AND pd.language_id = '1' AND p.products_id = ptc.products_id AND p.products_id != ptp.child_products_id; It would then be pretty easy to pull up the sub products on the product info page, and display them with buy now links. I don't really know how the admin interface would work, but something using Ajax to add unlimited sub products would be great. Can anyone suggest something different? Would this be the best approach in terms of performance?
  13. assembler

    Product Groups / Sub Product Contribution

    Thanks for the heads up. Would you suggest Master Products over Artikelgroesse?
  14. assembler

    Reviews on Product Info Page v1.0

    The stock code to display the number of reviews a product has is in product_info.php is: <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?> <tr> <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } You could also change the contribution to find this information with the main review query. However, you would also have to change the way that the reviews box gets created.
  15. assembler

    'Try Searching For' Contribution

    I'm sorry, but I am not familar with any of the template contributions.
  16. assembler

    'Try Searching For' Contribution

    TJ, You may want to change the egrep line of the contribution, if a lot of your product names contain dashes. This line of code makes the word lowercase, and removes anything that is not a letter or number. You may wany to include - as well, so it is not removed. By doing this, you will avoid linking to blank search results pages (like your example page does).
  17. assembler

    'Try Searching For' Contribution

    It should also help to send search engines to search result pages (which they normally can't get to). They should see each search results page as a different page, immediately multiplying the number of search engine indexed pages by a large amount.
  18. assembler

    Index Ads - Banners in body_text

    You need to name the banner group "indexad1", "indexad2", etc. The title can be anything you want, and it would make sense to use a title that relates to the link being used for search engine reasons.
  19. I am having a problem with the newest version of the contribution. Basically, no links would work when activated. It appears The problem is that the PHP code (specificly in the catalog/includes/classes/seo.class.php module) tries to do a redirect from a non-secure URL to a secure URL. However, for some reason (unknown at this time) it is redirecting to a non-secure URL, which then tries to redirect again and gets another non-secure URL, around and around till maximum redirection levels are reached. The solution for now was to turn off automatic redirects in the configuration. Perhaps someone can troubleshoot the script to allow for these automatic redirects?
  20. assembler

    Batch Printing without Frames or PDF

    To change the default Yes/No on the update status, open includes/print_multi.php Change this: echo " Yes " . tep_draw_radio_field('autoupdatestatus', 'Yes', true); echo " No " . tep_draw_radio_field('autoupdatestatus', 'No'); to: echo " Yes " . tep_draw_radio_field('autoupdatestatus', 'Yes'); echo " No " . tep_draw_radio_field('autoupdatestatus', 'No',True); It is possible to send the update email when you update the status. You would need to include the regular update mail fuction it admin/print_multi.php, after: if($autoupdatestatus=='Yes') { If you want to print based on a range of numbers, this isn't the contribution for you. It was coded with the current functionality in mind.
  21. assembler

    AJAX Quick Search

    Open quickfind.php. The line that is taking out the slash is line: $q = addslashes(preg_replace("%[^0-9a-zA-Z ]%","",$_GET["keywords"])); Change this line to allow for the '/'.
  22. assembler

    AJAX Quick Search

    Glad to hear!
  23. assembler

    AJAX Quick Search

    It looks like most browsers don't like the full URL that tep_href_link was producing. I uploaded a new package that fixes the problems. I have tested the new package on a remote LINUX server and it worked successfully. I have changed most of the Javascript to work with more browsers. Instead of using the output of tep_href_link, I am now creating the link with var url="quickfind.php?osCsid=<?php echo tep_session_id();?>&keywords="+key; This is not the only change, so please download the new package. http://www.oscommerce.com/community/contributions,3413
  24. assembler

    AJAX Quick Search

    I'm working on a solution. This works with no problems on my Windows machine running the lastest version of XAMPP. Check back soon.
  25. assembler

    AJAX Quick Search

    What browser are you using? Try it with IE.
×