Jump to content

bugnet

Members
  • Content count

    20
  • Joined

  • Last visited

  1. I kept with KGT so I don't know, may this is redeclaring functions because it's not private on module ? take a look at add-ons for deposito transferência modules wich is brazilian bank transfer ones, they're working for me !
  2. bugnet

    Header Tags SEO

    had same problem, dunno why my previous code was : /*** Begin Header Tags SEO ***/ // add category names or the manufacturer name to the breadcrumb trail if (isset($cPath_array)) { for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) { $categories_query = tep_db_query("select categories_htc_title_tag from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "' LIMIT 1"); if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); $breadcrumb->add($categories['categories_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } else { break; } } } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_htc_title_tag from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' AND languages_id = '" . (int)$languages_id . "' LIMIT 1"); if (tep_db_num_rows($manufacturers_query)) { $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $_GET['manufacturers_id'])); } } // add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $products_query = tep_db_query("select pd.products_head_title_tag 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 ='" . (int)$languages_id . "' LIMIT 1"); if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($products['products_head_title_tag'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $_GET['products_id'])); } } /*** End Header Tags SEO ***/ still don't know from where it came from, anyway, repaste and now its ok !
  3. some stores use domain.com/catalog some don't, I use mydomain.com/loja , it doesnt matter since you put that files on your store root directory (where index.php product_info.php shopping_cart.php goes) as far as I know, this is the best coupon contrib for oscommerce 2.2 but its not meant for 2.3 @@dnl07 !
  4. Is there a way that I can make a payment module only visible (or available) on admin área, through Order Editor ?' its because I need a payment module for orders one elsewhere wich my buyers are not supposed to see on payment options, but I need to set this method when editing Orders, someone had this done before ? Osc 2.2 ms2
  5. 7397 didn't work, doesn't even show on order totals, 4269 did the job, thanks !
  6. Nice, I took a look at their vídeo, seens good contrib, but the one I already install in other store was http://addons.oscommerce.com/info/4269 this one also seens good option http://addons.oscommerce.com/info/7397 I will try one and other and get back with wich option I'll stick with, categories and products exclusion/selection are awesome addon to coupon codes, thanks !
  7. Hi there, I'm willing to apply a discount code to my store, but I'm wondering wich is better option, in another store that I support, I had installed old OT Discount codes wich goes in order total, but I'm wondering if CCGV are better option ? the shopping in case are Osc 2.2 version thanks, David
  8. bugnet

    NEW! Complete Order Editing Tool!

    Hi there all, I was doing some mods to Order Editor because on my shop some products have their stocks controlled, and others don't, so every product has an 'ignore_qtde' field that defines this on database wich is set on product edit as checkbox (on or off), I am trying to Order editor do not lower stock on this itens when added to an order and to not put back them in stock when deleting from order, but it still happend and I don't know where else to mess, I'm with AJAX activated and done modes on admin/edit_oders.php as follows: around line 190: if ($products_details['qty'] != $order_products['products_quantity']){ $quantity_difference = ($products_details['qty'] - $order_products['products_quantity']); if (STOCK_LIMITED == 'true'){ $productstock_query = tep_db_query("SELECT ignore_qtde FROM ". TABLE_PRODUCTS . " WHERE products_id = '" . (int)$orders_products_id . "'"); $productstock = tep_db_fetch_array($productstock_query); if($productstock['ignore_qtde'] != 'on') { tep_db_query("UPDATE " . TABLE_PRODUCTS . " SET products_quantity = products_quantity - " . $quantity_difference . ", products_ordered = products_ordered + " . $quantity_difference . " WHERE products_id = '" . (int)$order_products['products_id'] . "'"); } } else { tep_db_query ("UPDATE " . TABLE_PRODUCTS . " SET products_ordered = products_ordered + " . $quantity_difference . " WHERE products_id = '" . (int)$order_products['products_id'] . "'"); } } and around line 220 (about deleting product from an order): if (STOCK_LIMITED == 'true'){ $productstock_query = tep_db_query("SELECT ignore_qtde FROM ". TABLE_PRODUCTS . " WHERE products_id = '" . (int)$orders_products_id . "'"); $productstock = tep_db_fetch_array($productstock_query); if($productstock['ignore_qtde'] != 'on') { tep_db_query("UPDATE " . TABLE_PRODUCTS . " SET products_quantity = products_quantity + " . $products_details["qty"] . ", products_ordered = products_ordered - " . $products_details["qty"] . " WHERE products_id = '" . (int)$order_products['products_id'] . "'"); } } else { tep_db_query ("UPDATE " . TABLE_PRODUCTS . " SET products_ordered = products_ordered - " . $products_details["qty"] . " WHERE products_id = '" . (int)$order_products['products_id'] . "'"); } but it still backing products where ignore_qtde is 'on' (checkbox on products edit page), any lights on this ? it happends when I delete a product on order editor, code seens to be correct. thanks, David
  9. bugnet

    NEW! Complete Order Editing Tool!

    No one has this issue before ?
  10. bugnet

    NEW! Complete Order Editing Tool!

    Easy-Easy install contrib, very practical to use and to edit itself (if needed, add fields etc) !!! I was trying to fix some bug with urlencode or anything like that, because order editor do not support special characters for payment methods or shipping methods, so I got a payment method "Cartão de crédito" and when changed, shows only "Cart" and ends up missing the rest of sentence, any idea ? thks !
  11. The thing is that contrib is messed up, many functions missing and can´t find them, even the V4 (actually messed with lil german stuff) are screwd !
×