Jump to content

JohnSanders

Members
  • Content count

    9
  • Joined

  • Last visited

Everything posted by JohnSanders

  1. Hi Scott, First off, thanks for the great mod! I am curious to the ideas you have given -Buggi-. Basically I am facing the same problem. I have several main categories which consist of subcategories up to three levels deep, e.g. Women | ----> Clothing | ----> Nike | ----> Jackets ----> Shirts ----> Dresses ----> Pants When I assign a discount by category, than it will by default use the deepest level (Jackets, Shirts, Dresses, Pants), however I would love to assign it to the level above, in this case "Nike". Any ideas? Thanks, John
  2. JohnSanders

    Quantity Price Breaks

    To get rid of the error, REPLACE <?php if(array_key_exists($count, $price_breaks_array)) { echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price' . $count, $price_breaks_array[$count]['products_price'], 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '24', '15') . TEXT_PRODUCTS_QTY; echo tep_draw_separator('pixel_trans.gif', '24', '15') . tep_draw_input_field('products_qty' . $count, $price_breaks_array[$count]['products_qty'], 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '24', '15') . tep_draw_checkbox_field('products_delete' . $count, 'y', false) . TEXT_PRODUCTS_DELETE; } else { echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price' . $count, '', 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '24', '15') . TEXT_PRODUCTS_QTY; echo tep_draw_separator('pixel_trans.gif', '24', '15') . tep_draw_input_field('products_qty' . $count, '', 'size="10"'); } ?> WITH <?php if(isset($count)) { echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price' . $count, $price_breaks_array[$count]['products_price'], 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '24', '15') . TEXT_PRODUCTS_QTY; echo tep_draw_separator('pixel_trans.gif', '24', '15') . tep_draw_input_field('products_qty' . $count, $price_breaks_array[$count]['products_qty'], 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '24', '15') . tep_draw_checkbox_field('products_delete' . $count, 'y', false) . TEXT_PRODUCTS_DELETE; } else { echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price' . $count, '', 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '24', '15') . TEXT_PRODUCTS_QTY; echo tep_draw_separator('pixel_trans.gif', '24', '15') . tep_draw_input_field('products_qty' . $count, '', 'size="10"'); } ?> Cheers.
  3. JohnSanders

    Quantity Price Breaks

    My guess is you will have to find: for ($i=0, $n=sizeof($product_categories); $i<$n; $i++) { tep_db_query("delete from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$product_id . "' and categories_id = '" . (int)$product_categories[$i] . "'"); } and then add // BOF qpbpp tep_db_query("delete from " . TABLE_PRODUCTS_PRICE_BREAK . " where products_id = '" . (int)$product_id . "'"); // EOF qpbpp However, I too get the same error. It only happens when I want to add a new product. When you click on "PREVIEW" and then on "BACK", there is no more error though. Does anyone has any thoughts on this? Thanks.
×