Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

RusNN

Members
  • Posts

    199
  • Joined

  • Last visited

Everything posted by RusNN

  1. This is double post: You should disable QT Pro plugin in attributeManagerConfig.class.php file. Replace this $this->add('AM_USE_QT_PRO', true); to this $this->add('AM_USE_QT_PRO', false);
  2. Do you have QT Pro installed? Does this irregular things happens before AJAX AM installation? Do you install other contrib in the same time with AJAX AM?
  3. Most of your questions are related to Order Editor contribution, not to Manual Order Maker. This contrib only alllows you to create an empty order with basic info about your customer and quickly add order without customer registration. You should ask the questions here. You may enter credit card info in Order Editor page, by choosing default payment mathod wich you assign as credit card in Order Editor configuration page. Nothing about PayPal. This is not payment system of my country. Sorry.
  4. Robert, a couple pages earlier the question about cyrilic and greek characters were asked. There were no answer. SO, again. Should I modify Security Pro adding all possible national characters (incredible in some cases) or there is another way?
  5. Hi, Jack Please, pay attention on line 88 in catalog\includes\header_tags.php. You forgot to sanitize $languages_id in the query: $the_product_info_query = tep_db_query("select p.products_id, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.manufacturers_id from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_id = '" . (int)$_GET['products_id'] . "' and pd.language_id ='" . $languages_id . "'"); Also, may be the line in the same file echo ' <meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '" >'."\n"; should be a bit upper? Just before echo ' <title>' . $header_tags_array['title'] . '</title>' . "\n"; . This may be critical for non-latin langauge shops, that uses other charset encoding to prevent XSS in <title> tag. Thank you.
  6. First of all, I am only one of many contributors, done a very small part of this contrib. So I didn't monitor the progress of this contrib. Now I take a time to overview your solution by reading comments of version history. Unfortunatelly I have no time to carefully test your solution. But I compare two versions by contributor mytool: 2.8.4 and 2.8.5. The changes you are reverted back to 2.8.9 was made in 2.8.5 and the reason is cerefully described. I quote them: So if you are wonder by your solution it is good, but I cant contribute your changes and don't advice you to do that before complete testing of the feature.I must notice other moment. In 2008 QT Pro addon was not work. But now it is work and work good. Definitely it can't work with your solution. Need testing.
  7. This addon can only edit existing product. The reason is simple - linking attributes to undefined product is impossible. The linking uses internal database identifiers of attributes, options and first of all, of a product which you link to. No product means no product ID, so linking is impossible. The internal mechanism of osC allows you to create product (should read as "create new product ID") only after clicking button "Confirm" (sorry, I don't remember actual name of it in english). After you click this, the new product record with new product ID saved in database and you redirected to product listing. This is why AJAX AM can't work with newly product - there are no product, before you not save it. Adding attributes to product through this contrib is always editing product. So like a standart osC.
  8. I can give you only one advice: carefully check all the installation process, all modified code, every SQL you uploaded, every semicolon etc. If everything seems OK, but error still present, try to install on vanilla osCommerce distrib. This is all I can help at the moment. Several times I got same error with other contrib. But after close look all of them are caused by mistakes in code. Suddenly, but these mistakes generally are very simple. They are so simple and stupid, that when you are looking at the code you can't find them, because all seems OK.
  9. Yes, you should paste this code before the last ?> tag in admin/includes/function/general.php.
  10. Difficult to say whats wrong. Only general words, such as check her or there. Need to see closely. Does other AJAX and javascript site work on your hosting? Are the path settings OK? Try on other computers, browsers, operating systems.
  11. The Manual Order Maker is only create an empty order filling general information about your customer. Products are filled in Order Editor. So ask the question in Order Editor support thread.
  12. I implemented contribution More Product Weight v1.0 to AJAX AM since version 2.8.7. It deals with individual attributes weight, but not with products weight. Product's weight remain unchanged and goes as default. To switch on the support for MPW find in attributeManagerConfig.class.php $this->add('AM_USE_MPW', false); and replace with $this->add('AM_USE_MPW', true);
  13. Yes. You may run xsell box withiout cache system. Find in catalog\product_info.php something like that: if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_xsell_products(3600); //added for Xsell echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS); //added for Xsell include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } and REPLACE with if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS); //added for Xsell Now you xseel will randomly displayed on every page load. Cache system for xsell will not work. So ther server load will rise. Unfortunatelly there is no way to use both the cache and random xsell on every page load at one time.
  14. 1. You may delete them through standart osC Product Attribute page. 2. I'am afraid I can't tell this better. It is very simple, just look to the code and try to understand. In the old instruction for Ajax AM this is described also, but you just to do only client side.
  15. To do all of this you need just to modify a query in catalog\includes\modules\xsell_products.php. 1. Find in the query order by sort_order asc limit " . MAX_DISPLAY_XSELL); and replace with order by rand() limit " . MAX_DISPLAY_XSELL); This is not very good, because such construction need a lot of memory, it is slow. But this is the fastest way. Oh! Don't forget to disable cache! Or your xsell will stay the same for a couple of time. 2. If products not in stock AND their status set to 0 (false), than they doesn't display. But if you don't disable such products, like me, you need to insert " and p.products_quantity > 0 " without quotes, but surrounding with spaces just before order by sort_order asc limit " . MAX_DISPLAY_XSELL); in the same query as above. Not tested, seems will work. As if having problems.
  16. No special permissions. Seems the error in code. What your browser says (except IE)?
  17. I'm not exactly shure if it is, but I never saw plugin like you described. Seems not to difficult to do such functionality yourself. One field in database, couple of modified querries on client side, some coding on admin to allow to manipulate with on/off switch.
  18. Please, check installation instruction once more. Carefuly see the places where you modify existing files. Also, I recommend to use FireFox browser, because some times InternetExplorer displays 500 error, but the real reason are errors in PHP code. In that case FireFox correctly display PHP errors. Also check .httaccess file for correct permissions.
  19. Please, read my post just above yours and go through the link in it. All your answers there.
  20. I remeber! It is from Order Editor contrib, but discussion has been in Manual Order Maker theme. Read my posts here and here.
  21. This issue is not from OE contrib. I reply on it in other topic. Suddenly I can't remeber it, but very close to OE.
  22. Very interesting. Your code is default for xsell contrib. But text on a button is the text of a button "alt" tag. Please say, is all your buttons are text or images? Seems you have a plugin that do such a convertation. Try to modify your code to following and see the result. If buttons begin smaller in size, let me know, we modify other text. Don't forget to reset the cache if using it! Replace your code with:
  23. Emmm... See catalog\includes\modules\xsell_products.php file and find constants like TEXT_BUY and TEXT_NOW. Change them and code between them. To change constants itself find them in your language file (ex. catalog\includes\languages\english.php). You also may replace this two with another one, giving it a unique name, eg.: define('TEXT_XSELL_ADD_TO_CART', 'Add to Cart');
  24. ronin13 Try to decrease size of your buy_now buttons. Also check html of result page, may be there is unclosed tags.
  25. Lets try to install POST buy_now button? Find in catalog\includes\modelus\xsell_products.php $text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . $xsell['products_name'] .'</a><br>' . $xsell_price. '<br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=buy_now&product_to_buy_id=' . $xsell['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $xsell['products_name'] . TEXT_NOW) .'</a>'; REPLACE with $text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . $xsell['products_name'] .'</a><br>' . $xsell_price. '<br><form name="buy_now_' . $xsell['products_id'] . '" method="post" action="' . tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=buy_now', 'NONSSL') . '"><input type="hidden" name="product_to_buy_id" value="' . $xsell['products_id'] . '">' . tep_image_submit('button_buy_now.gif', TEXT_BUY . $xsell['products_name'] . TEXT_NOW) . '</form>'; FIND in catalog\includes\application_top.php // BOE: XSell if (isset($HTTP_GET_VARS['product_to_buy_id'])) { $parameters = array('action', 'pid', 'products_to_but_id'); } else { $parameters = array('action', 'pid', 'products_id'); } // EOE: XSell REPLACE with // BOF: XSell if (isset($HTTP_POST_VARS['product_to_buy_id'])) { $parameters = array('action', 'pid', 'products_to_buy_id'); } else { $parameters = array('action', 'pid'); } // EOF: XSell FIND in catalog\includes\application_top.php // BOF: XSell case 'buy_now' : if (isset($HTTP_GET_VARS['product_to_buy_id'])) { if (tep_has_product_attributes($HTTP_GET_VARS['product_to_buy_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['product_to_buy_id'])); } else { $cart->add_cart($HTTP_GET_VARS['product_to_buy_id'], $cart->get_quantity($HTTP_GET_VARS['product_to_buy_id'])+1); } } elseif (isset($HTTP_GET_VARS['products_id'])) { // EOF: XSell REPLACE with // BOF: XSell case 'buy_now' : if (isset($HTTP_POST_VARS['product_to_buy_id'])) { if (tep_has_product_attributes($HTTP_POST_VARS['product_to_buy_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_POST_VARS['product_to_buy_id'])); } else { $cart->add_cart($HTTP_POST_VARS['product_to_buy_id'], $cart->get_quantity($HTTP_POST_VARS['product_to_buy_id'])+1); } } elseif (isset($HTTP_GET_VARS['products_id'])) { // EOF: XSell Seems that's all, but I found a little potential bug in my own code on working shop. Everything works OK, but additional testing are welcome. Test carefuly before apply to working shop. And take in memory, that all my buy_now buttons are on forms. That comes from that contrib and need to rework product_info so, that in your result html page there are no to <form> tags one followed by other <form>. Or your POST can't work. Don't hesitate to write me about any bugs/suggestions/qustions/etc.
×
×
  • Create New...