Jump to content

assembler

Members
  • Content count

    50
  • Joined

  • Last visited

Profile Information

  1. 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.
  2. 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.
  3. assembler

    Purchase Order (PO) Payment Module Question

    This is now posted in the contributions. http://addons.oscommerce.com/info/5710
  4. 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.
  5. 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.
  6. 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];
  7. assembler

    Product Groups / Sub Product Contribution

    Thanks for the heads up. Would you suggest Master Products over Artikelgroesse?
  8. 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?
  9. 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.
  10. assembler

    'Try Searching For' Contribution

    I'm sorry, but I am not familar with any of the template contributions.
  11. 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).
  12. 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.
  13. 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
  14. 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.
  15. 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?
×