Jump to content

geronimo978

Members
  • Content count

    6
  • Joined

  • Last visited

  1. geronimo978

    [Contribution] Option Types v2

    If you add a product with text attributes, then go back and try to add the same product with different text attributes......does it work? Cause mine gives the product a quantity of 2 in the shopping cart with only the last text attributes added. Let me know if yours works!! Thanks,
  2. geronimo978

    Seperate Pricing Per Customer v3.5

    Can someone PLEASSSSSEEEEEE help me. I am merging SPPC and Option Type V2 and All is well however, I need to know how to merge these two sections: Section 1: ************************************************************************ if (is_numeric($products_id) && is_numeric($qty) && ($attributes_pass_check == true)) { $check_product_query = tep_db_query("select products_status from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $check_product = tep_db_fetch_array($check_product_query); if (($check_product !== false) && ($check_product['products_status'] == '1')) { if ($notify == true) { ************************************************************************ Section 2: ************************************************************************ if (is_numeric($products_id) && is_numeric($qty) && ($attributes_pass_check == true)) { // BOF SPPC attribute hide check, original query expanded to include attributes $check_product_query = tep_db_query("select p.products_status, options_id, options_values_id, IF(find_in_set('" . $this->cg_id . "', attributes_hide_from_groups) = 0, '0', '1') as hide_attr_status from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_ATTRIBUTES . " using(products_id) where p.products_id = '" . (int)$products_id . "'"); while ($_check_product = tep_db_fetch_array($check_product_query)) { $check_product[] = $_check_product; } // end while ($_check_product = tep_db_fetch_array($check_product_query)) $no_of_check_product = count($check_product); if (is_array($attributes)) { foreach($attributes as $attr_option => $attr_option_value) { $valid_option = '0'; for ($x = 0; $x < $no_of_check_product ; $x++) { if ($attr_option == $check_product[$x]['options_id'] && $attr_option_value == $check_product[$x]['options_values_id']) { $valid_option = '1'; if ($check_product[$x]['hide_attr_status'] == '1') { // delete hidden attributes from array attributes unset($attributes[$attr_option]); } } // end if ($attr_option == $check_product[$x]['options_id'].... } // end for ($x = 0; $x < $no_of_check_product ; $x++) if ($valid_option == '0') { // after having gone through the options for this product and not having found a matching one // we can conclude that apparently this is not a valid option for this product so remove it unset($attributes[$attr_option]); } } // end foreach($attributes as $attr_option => $attr_option_value) } // end if (is_array($attributes)) // now attributes have been checked and hidden and invalid ones deleted make the $products_id_string again $products_id_string = tep_get_uprid($products_id, $attributes); if ((isset($check_product) && tep_not_null($check_product)) && ($check_product[0]['products_status'] == '1')) { // EOF SPPC attribute hide check if ($notify == true) { *********************************************************************** If I use Section 1 only the product in the cart adds to the quantity and keeps only one attribute, however if I use Section 2 only the attributes dissapear in cart. Please HELP!!!!!!!!
  3. geronimo978

    [Contribution] Option Types v2

    I have a HEAVILY Modified osCommerce shop which includes SPPC which had many conflicts with Option Types during compare. I thought I had it all working fine until I noticed that: When I add a new product no problem. When I add the same product again but change the options it adds to the cart as quantity of 2 and only holds the attributes of the later item (rather than making it a new line item with a quantity of 1) Can you please look at the site and let me know what I am missing? www.statkids.com/store Thanks,
  4. geronimo978

    Seperate Pricing Per Customer v3.5

    Found the solution: Turns out that because I was setting this all up on a fresh installation of OSC and didn't have any store info set up yet, it wasn't working. Once I put in the stores email address it worked fine.
  5. geronimo978

    Seperate Pricing Per Customer v3.5

    Update: I called my host and it is nothing on their end as I figured. I think I just screwed up somewhere. So any advise there would be awesome. Also, I can't believe that I didn't see the turn off alert radio button.....so disregard the RA field question.
  6. geronimo978

    Seperate Pricing Per Customer v3.5

    I have installed this mod and am very happy with how it functions. However, I am having issues with my create account page. When a customer creates an account without a tax id, everything runs smoothly. However, when a customer enters a tax id and hits submit I get a 500 internal server error. BUT.... the customers info goes through and they can login in the future. Does anyone know where the problem may lie? Also, is the red light in the RA field supposed to go away after you change their group?? Thanks in advance.
×