Jump to content

mrsym2

Members
  • Content count

    18
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Brian Miller
  1. mrsym2

    Attribute Sets Contribution

    I forgot also that I am using ================================= Product Accessory Multiplier v1.0 ================================= which modified the code above from: vi catalog/includes/classes/shopping_cart.php find: // attributes price replace: if ($attribute_price['price_prefix'] == '+') { $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } else { $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } with: if ($attribute_price['price_prefix'] == '+') { $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } elseif ($attribute_price['price_prefix'] == '-') { $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } elseif ($attribute_price['price_prefix'] == '*') { $this->total = $this->total * $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } find: function attributes_price replace: function attributes_price($products_id) { $attributes_price = 0; if (isset($this->contents[$products_id]['attributes'])) { reset($this->contents[$products_id]['attributes']); while (list($option, $value) = each($this->contents[$products_id]['attributes'])) { $attribute_price_query = tep_db_query("select options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$products_id . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'"); $attribute_price = tep_db_fetch_array($attribute_price_query); if ($attribute_price['price_prefix'] == '+') { $attributes_price += $attribute_price['options_values_price']; } else { $attributes_price -= $attribute_price['options_values_price']; } with: function attributes_price($products_id, $products_price) { $attributes_price = 0; if (isset($this->contents[$products_id]['attributes'])) { reset($this->contents[$products_id]['attributes']); while (list($option, $value) = each($this->contents[$products_id]['attributes'])) { $attribute_price_query = tep_db_query("select options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$products_id . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'"); $attribute_price = tep_db_fetch_array($attribute_price_query); if ($attribute_price['price_prefix'] == '+') { $attributes_price += $attribute_price['options_values_price']; } elseif ($attribute_price['price_prefix'] == '-') { $attributes_price -= $attribute_price['options_values_price']; } elseif ($attribute_price['price_prefix'] == '*') { $attributes_price = ($products_price * $attribute_price['options_values_price'])-$products_price; } find: $products_array[] = array('id' => $products_id, replace: 'final_price' => ($products_price + $this->attributes_price($products_id)), with: 'final_price' => ($products_price + $this->attributes_price($products_id, $products_price)), I am not sure if this is causing the problem??
  2. mrsym2

    Attribute Sets Contribution

    I thought everything was going fine, and all was working well until I got to: /catalog/checkout_shipping.php Upon clicking "checkout" I received Line 251 of /includes/classes/shopping_cart.php begins with: function attributes_price($products_id, $products_price) { $attributes_price = 0; if (isset($this->contents[$products_id]['attributes'])) { reset($this->contents[$products_id]['attributes']); while (list($option, $value) = each($this->contents[$products_id]['attributes'])) { $attribute_price_query = tep_db_query("select options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$products_id . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'"); $attribute_price = tep_db_fetch_array($attribute_price_query); if ($attribute_price['price_prefix'] == '+') { $attributes_price += $attribute_price['options_values_price']; } elseif ($attribute_price['price_prefix'] == '-') { $attributes_price -= $attribute_price['options_values_price']; } elseif ($attribute_price['price_prefix'] == '*') { $attributes_price = ($products_price * $attribute_price['options_values_price'])-$products_price; } } } return $attributes_price; } Line 29 of /includes/functions/general.php begins with: header('Location: ' . $url); tep_exit(); What am I missing?
  3. mrsym2

    Could not execute curl help! please

    I had this problem also, and was getting nowhere with LinkPoint support. I again went to my hosting company. They checked error logs and responded with the following: Now it works.
  4. Forgive me if I'm asking something that has already been posted, but I can't find specifically my answer. I want to limit the shipping options based on price (or perhaps weight). For example, If an item is less than $10.00 offer UPS or USPS. But if the item is over $10.00, then offer only UPS. Can this be done easily?
  5. The more I read about this, the more confused I get. I want to make sure that I am making my site to be as search-engine-friendly as possible. I am using the Dynamic Product Meta Tags contribution. Is there any advantage between this and the Header Tags Controller contribution? I have the following set: Force Cookie Use True Check SSL Session ID False Check User Agent False Check IP Address False Prevent Spider Sessions True Recreate Session False Use Search-Engine Safe URLs True Could someone look at my site and advise me on if I am doing anything wrong in the BIG search engine's views. http://aquatin.com
  6. mrsym2

    NEW! Complete Order Editing Tool!

    I am using 2.2 MS2 I have order editor installed and seems to work, except that when processing orders through the LinkPoint Credit Module, it still processes the order with the same information the customer originally entered. It updates the info in admin that I see, but processes it differently through the credit module. Also it doesn't update the quantities for the stock levels. For example, I had 2 of this particular item ordered by a customer @ $2.00 each. They ordered 1 and meant to get 2 of these. I went into order editor and changed the quantity from 1 to 2. It showed: 2 X product @ $2.00 = $4.00 shipping $1.06 total $5.06 When processed it billed out as: 1 x product @$2.00 =$2.00 shipping $1.06 total $3.06 It also left one of them in inventory although I didn't have it on hand. Any help would be appreciated.
  7. I am getting the following errors after installing the UPS Choice v1.8 for 2.2 MS2 The following is my code in admin/modules.php <?php /* ?$Id: modules.php,v 1.47 2003/06/29 22:50:52 hpdl Exp $ ?osCommerce, Open Source E-Commerce Solutions ?http://www.oscommerce.com ?Copyright (c) 2003 osCommerce ?Released under the GNU General Public License */ ?require('includes/application_top.php'); ?$set = (isset($HTTP_GET_VARS['set']) ? $HTTP_GET_VARS['set'] : ''); ?if (tep_not_null($set)) { ? ?switch ($set) { ? ? ?case 'shipping': ? ? ? ?$module_type = 'shipping'; ? ? ? ?$module_directory = DIR_FS_CATALOG_MODULES . 'shipping/'; ? ? ? ?$module_key = 'MODULE_SHIPPING_INSTALLED'; ? ? ? ?define('HEADING_TITLE', HEADING_TITLE_MODULES_SHIPPING); ? ? ? ?break; ? ? ?case 'ordertotal': ? ? ? ?$module_type = 'order_total'; ? ? ? ?$module_directory = DIR_FS_CATALOG_MODULES . 'order_total/'; ? ? ? ?$module_key = 'MODULE_ORDER_TOTAL_INSTALLED'; ? ? ? ?define('HEADING_TITLE', HEADING_TITLE_MODULES_ORDER_TOTAL); ? ? ? ?break; ? ? ?case 'payment': ? ? ?default: ? ? ? ?$module_type = 'payment'; ? ? ? ?$module_directory = DIR_FS_CATALOG_MODULES . 'payment/'; ? ? ? ?$module_key = 'MODULE_PAYMENT_INSTALLED'; ? ? ? ?define('HEADING_TITLE', HEADING_TITLE_MODULES_PAYMENT); ? ? ? ?break; ? ?} ?} ?$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); ?if (tep_not_null($action)) { ? ?switch ($action) { ? ? ?case 'save': ? ? ? ?while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { ? ? ? ?if( is_array( $value ) ) $value = implode( ", ", $value); ? ? tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); ? ? ? ?} ? ? ? ?tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])); ? ? ? ?break; ? ? ?case 'install': ? ? ?case 'remove': ? ? ? ?$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); ? ? ? ?$class = basename($HTTP_GET_VARS['module']); ? ? ? ?if (file_exists($module_directory . $class . $file_extension)) { ? ? ? ? ?include($module_directory . $class . $file_extension); ? ? ? ? ?$module = new $class; ? ? ? ? ?if ($action == 'install') { ? ? ? ? ? ?$module->install(); ? ? ? ? ?} elseif ($action == 'remove') { ? ? ? ? ? ?$module->remove(); ? ? ? ? ?} ? ? ? ?} ? ? ? ?tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class)); ? ? ? ?break; ? ?} ?} ?>
×