Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fredrik.r

Pioneers
  • Posts

    531
  • Joined

  • Last visited

Everything posted by Fredrik.r

  1. Thanks Chris! I will compare 2.1d with the one I'm using then. I used the latest one which also has the addition of adding fields for products and categories in categories.php in admin. I have not yet used that feature though. Does not need that. Regarding STS, maybe I could modify this code which is the categories menu in STS; $template['langid'] = $languages_id; $sts_block_name = 'catmenu'; require(STS_START_CAPTURE); echo "\n<!-- Start Category Menu -->\n"; echo tep_draw_form('goto', FILENAME_DEFAULT, 'get', ''); echo tep_draw_pull_down_menu('cPath', tep_get_category_tree(), $current_category_id, 'class="droplista" onChange="this.form.submit();"'); echo "</form>\n"; echo "<!-- End Category Menu -->\n"; require(STS_STOP_CAPTURE); $template[$sts_block_name] = $sts_block[$sts_block_name]; function tep_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $category_tree_array = '', $include_itself = false) { global $languages_id; if (!is_array($category_tree_array)) $category_tree_array = array(); if ( (sizeof($category_tree_array) < 1) && ($exclude != '0') ) $category_tree_array[] = array('id' => '0', 'text' => PULL_DOWN_CATMENU); if ($include_itself) { $category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd where cd.language_id = '" . (int)$languages_id . "' and cd.categories_id = '" . (int)$parent_id . "'"); $category = tep_db_fetch_array($category_query); $category_tree_array[] = array('id' => $parent_id, 'text' => $category['categories_name']); } $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and c.parent_id = '" . (int)$parent_id . "' order by c.sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { if ($exclude != $categories['categories_id']) $category_tree_array[] = array('id' => $categories['categories_id'], 'text' => $spacing . $categories['categories_name']); $category_tree_array = tep_get_category_tree($categories['categories_id'], $spacing . ' » ', $exclude, $category_tree_array); } return $category_tree_array; }
  2. Hi and thanks a lot for a great contribution! Seems to work just fine althought I have like 40 contributions installed. Two questions; 1, Is it possible for the manufacturer box to use for example category_name_c_49.html right in the code instead of first sending me to index.php?manufacturers_id=49 and after that to category_name_c_49.html. It will slow down the site to redirect all pages. Or have I missed something? 2, Same question as above but in this case with the category menu, $catmenu used in the STS contribution. Thanks!!
  3. The low order fee is always on, independent of order value. Ah, how stupid of me. Really.. Of course it can have another sort order value.. Now it works fine, thanks a lot Vger! :)
  4. Ok, then I got a problem. I can't remove the invoice administration fee which is the "low order fee" function in its module. Hm.. there's now easy way to remove that feature in CCGV(trad)? Just to make it disregard low order fees? :)
  5. Hi Vger and thanks for answering so quickly! I made a test coupon of 25%. It worked ok but I realized it included the invoice administration fee in the discount. That fee seems to be based on the "low order fee". Anyway to stop CCGV(trad) from giving discount on these fees? Or is the problem entirely in the payment module?
  6. Hi, I have not yet set CCGV(trad) to live but I will need to before friday since a magazine will offer discount coupons. I am sorry if the first question has been discussed earlier, I just couldn't find it and I need to hurry to get this live. 1, I just read this in a swedish osCommerce forum; "Please notify me if you've managed to get discount and tax calculated the same way for both fixed and % coupon amounts". Is this an issue with CCGV(trad) too or is it CCGV? 2, When setting the end date, is the coupon valid through that day or is it until that day begin? 3, The shop I am building uses credit card payment using a payment processing company. There should be no risc for fraud I believe.. none yet with over 3 500 orders. Should it be ok to release the vouchers directly then? Vger, I know that you have disabled it, I am just wondering if it should be ok to change that in this case (I've seem how to change that earlier in this thread). 3, If anyone here is using CCGV(trad) in Sweden I would very much appreciate which tax configuration settings you are using, along with the order total sorting. I am not sure exactly what's right.. Thank you very much!!
  7. Thanks for the new shopping_cart.php update Vger!!
  8. Hi maomao! Products_date_added is now included in the feed, check the contribution area. It works!
  9. Found it. Changed $additional_images_id[] = tep_db_prepare_input($HTTP_POST_VARS['additional_images_id']); to $additional_images_id = tep_db_prepare_input($HTTP_POST_VARS['additional_images_id']); in admin/categories.php
  10. Thanks Nicolas! The error when adding an image is gone. I get another one when deleting an image, even if the image avtually is deleted; Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 134 Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 134 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php:134) in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/general.php on line 197 Line 134 in database.php is the second below; if (function_exists('mysql_real_escape_string')) { return mysql_real_escape_string($string, $$link); } elseif (function_exists('mysql_escape_string')) { return mysql_escape_string($string); }
  11. Should be fixed now. For other having the same issue with page_manager.php change (around row 520, mine i modified) this; Replace $bInfo_array = array_merge($pages, $info); with $bInfo_array = array_merge($pages, (array)$info);
  12. No one running Additional Images together with PHP 5? Sorry for bumping, but I need it to work.
  13. Anyone please? Should be someone running this contribution together with PHP 5.
  14. Hi Rhea! Ok, could I just search for products_id_string and replace with products_id? (keeping some of the 051113 related code)
  15. Hi Rhea, Updating quantities in shopping cart isn't working for me when using osCommerce 051113 together with the CCGV replacement in classes/shopping_cart.php (old and new code then). When only using 051113 code it works, so does the old code, but obviously not when using both old and new code. The code above the CCGV replacement is referring to "products_id_string", isn't that strange? I am not really a php programmer, just asking. I will need to remove the osC 051113 changes in the shopping cart class then. Would that be ok? Because I suppose I should not change the replacement for CCGV (the old code) to the new one in 051113. Strange if it's just me having these problems.
  16. Hi! I have an issue I can't solve. Since the hosting company updated PHP to version 5 I get an error. I do not think it has to do with the osCommerce 051113 update. Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/httpd/ws2890/blush.se/shop2/admin/page_manager.php on line 591 Warning: reset() [function.reset]: Passed variable is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/classes/object_info.php on line 18 Above is showing when clicking Page Manager in admin. Would really appreciate some help with this if possible!
  17. Please, anyone that may help me with the issue above?
  18. Hi! I'm thinking of installing this contribution but I need some suggestions and tips. 1, Would it be possible for osCommerce to recognize the old product info url's after installing this contribution? Since many sites and blogs are linking to some of the products that would be great. 2, I have installed a lot of other contributions. Does this contribution work with for example; CCGV(trad) Header Tags Controller (I think I saw a fix) STS Template 3.0 Beta 2 Wishlist 3.5d X-Sell QTPro 4.25 Featured Products Many thanks! I really appreciate some help here!
  19. I installed SPPC a couple of months ago, thank you very much for your help with implementing SPPC with other contributions Jan!! I have found another very useful contribution tat has been available since 8 august; fixed prices for different currencies Anyone know if this would be hard to use together with SPPC? Thankful for any suggestions.
  20. Since my hosting upgraded to PHP 5 I get this error. I can't add images any longer. I would be thankful for some help how t o modify the code to work with PHP 5. Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/httpd/ws2890/blush.se/shop2/admin/categories.php on line 444 Warning: reset() [function.reset]: Passed variable is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 55 Warning: Variable passed to each() is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 58 Warning: reset() [function.reset]: Passed variable is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 62 Warning: Variable passed to each() is not an array or object in /home/httpd/ws2890/blush.se/shop2/admin/includes/functions/database.php on line 63 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') values)' at line 1 insert into additional_images) values) [TEP STOP]
  21. Hi Rhea, Just wanted to ask you again. I followed the CCGV(trad) recommendation not to include the osCommece 051113 update regarding "Adding Non-Existing Products To Cart" in classes/shopping_cart.php However, when not doing so, I can't change the product quantities in the shopping cart. This is not an CCGV/trad) issue itself but I didn't have that problem when I implemented the full update for "Adding Non-Existing Products To Cart" (before installing CCGV(trad). You answer in the quote above is related to my question here
  22. The code above may not be the right one, it may be in includes/classes/shipping.php Let's hope someone knows how to fix this :)
  23. Thanks Stew! Seems to work perfectly. This is truly the best supported contribution I've used (over 40 now). Have you heard of anyone managed to modify Order Editor to adjust QTPro 4.25 attributes stock automatically when editin orders?
  24. When editing an order it's pre-filled with "Men" instead of "Men's crew neck t-shirt". If clicking update it will of course change to "Men" everywhere else too (orders.php etc) When adding a product it is correct, "Men's crew neck t-shirt". When editing that order again it's also correct.
  25. Sorry, no need to answer the question above. I realized that the 051113 update was included and then modified.
×
×
  • Create New...