Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Texdkr

Archived
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    Don Riley

Texdkr's Achievements

  1. OK please ignore a lot of the above, I did some searching and have it "bascially working". I still have these issues: Where does "echo category_discount_display($current_category_id);" EXACTLY go in the Products section of index.php? Right now the discount ONLY shows up on the Order Confirmation Page. How do you get it to show up in the shopping cart? My discount setting is 22:2:7:p I thought this meant a buyer would get a 7% discount on 2 or more items purchased from category 22. The discount shown is $14 (2 x $7). How does one give a PERCENTAGE discount? Here is the website I am working on: https://www.rainbowbabe.com/catalog/index.php Thanks in advance for any help you can provide.
  2. HELP! I am having a lot of trouble doing the initial install of Category Discount (Contribution 3926). 1st question: Where should the "echo category_discount_display($current_category_id);" lines be insered EXACTLY? Here is what my index.php looks like: } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories echo category_discount_display($current_category_id); } else { $category_depth = 'products'; // category has no products, but display the 'no products' message echo category_discount_display($current_category_id); } } I am getting this error message on top of the main page so I don't think above is correct: correct version of tep_get_cat_path function : function tep_get_cat_path ($current_category_id = '') { $last_category_query = tep_db_query("select parent_id from " . TABLE_CATEGORIES . " where categories_id = '" . $current_category_id . "'"); $last_category = tep_db_fetch_array($last_category_query); if ($last_category['parent_id'] != 0) { $cat_string = $last_category['parent_id'] . '_' . $current_category_id; while ($last_category['parent_id'] != 0) { $last_category_query = tep_db_query("select parent_id from " . TABLE_CATEGORIES . " where categories_id = '" . $last_category['parent_id'] . "'"); $last_category = tep_db_fetch_array($last_category_query); $cat_string = $last_category['parent_id'] . '_' . $cat_string; } return $cat_string; } else { return $current_category_id; } } 2ND QUESTION: I added this to the general.php file at the very end of the file: //---PayPal WPP Modification START ---// function tep_paypal_wpp_enabled() { $paypal_wpp_check = tep_db_query("SELECT configuration_id FROM " . TABLE_CONFIGURATION . " WHERE configuration_key = 'MODULE_PAYMENT_PAYPAL_DP_STATUS' AND configuration_value = 'True'"); if (tep_db_num_rows($paypal_wpp_check)) { return true; } else { return false; } } //---PayPal WPP Modification END ---// function tep_get_cat_path ($current_category_id = '') { $last_category_query = tep_db_query("select parent_id from " . TABLE_CATEGORIES . " where categories_id = '" . $current_category_id . "'"); $last_category = tep_db_fetch_array($last_category_query); if ($last_category['parent_id'] != 0) { $cat_string = $last_category['parent_id'] . '_' . $current_category_id; while ($last_category['parent_id'] != 0) { $last_category_query = tep_db_query("select parent_id from " . TABLE_CATEGORIES . " where categories_id = '" . $last_category['parent_id'] . "'"); $last_category = tep_db_fetch_array($last_category_query); $cat_string .= $last_category['parent_id'] . '_' . $cat_string; } return $cat_string; } else { return $current_category_id; } IS IT SUPPOSED TO GO SOMEWHERE ELSE IN GENERAL.PHP? 3RD QUESTION involves installing module through admin: 1) add the files to their respective directory and install the module in admin modules->order totals includes/modules/order_total/ot_cat_qty_discount.php includes/languages/english/modules/order_total/ot_cat_qty_discount.php I COULD NOT FIGURE OUT HOW YOU INSTALL THE 2ND ONE LISTED. SORRY IF THESE TOPICS HAVE ALREADY BEEN ADDRESSED. I AM A COMPLETE NEWBIE AT THIS.
×
×
  • Create New...