Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

creationsfromeden

Archived
  • Posts

    55
  • Joined

  • Last visited

Profile Information

  • Real Name
    Randi

creationsfromeden's Achievements

  1. There I got Firfox and the add-oj you suggested. I'll see where that brings me :)
  2. Thank you Chris... yeah I found out one of the other problems (I think) is the alterations in the code for product_info.php evidently I left it all as one LONG string instead of breaking it all up, so I'll try and get that fixed up when I get a chance and see where I am after that. Sometimes just posting it seems to fix it (inspiration perhaps? lol) It is not a vanilla install by any means. I have added quite a few contributions... from teh vanilla was easy... now I'm having the problems. I am amazed I have got this far though being that I knew absoltely nothing of php a month ago :)
  3. Okay I have the index page fixed, but not the other two...
  4. Hi there, I have been working on this problem for about a week and I am hoping someone can help me. After installing this contribution, my index page as well as my category and subcategory pages have become skewed. The main text areas have centered themselves and the footer has moved itself to the right and the left column has dropped down. I believe it has to do with this contribution (through playing with it a bit) and the code on the catalog/index.php page. I am thinking I am missing the proper formatting of the php (I tried from the instructions, but it just doesn't want to jive it seems). The contribution works great but the formatting is a big issue. As an example please look at http://creationsfromeden.com/store/index.php this is the skewed part (and if I click on a category or subcategory link). I want it to look like http://creationsfromeden.com/store/shipping.php (it did before I installed this contribution). Can anyone help? Thank you, Randi
  5. Hi there, I have been working on this problem for about a week and I am hoping someone can help me. After installing this contribution, my index page as well as my category and subcategory pages have gone a little skewed. The main texta reas have centered themselves and the footer has moved itself to the right and the left column has dropped down. I believe it has to do with this contribution (through playing with it a bit) and the code on the catalog/index.php page. I am thinking I am missing the proper formatting of the php (I tried from the instructions, but it just doesn't want to jive). The contribution works great but the formatting is a big issue. Can anyone help? Thank you, Randi
  6. I fixed it... not sure what I did, but it is fixed...
  7. Alrighty, now I have done the following (logically (to me anyway) I think blending the two would look like this... // BOF - AAP V1.0 - updated to account for no price prefix to equal actual price // attributes price 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)$prid . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'"); $attribute_price = tep_db_fetch_array($attribute_price_query); $price_prefix = $attribute_price['price_prefix']; $option_price = $attribute_price['options_values_price']; $products_query = tep_db_query("select products_price from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $products_stuff = tep_db_fetch_array($products_query); $products_price = $products_stuff['products_price']; if ($price_prefix == '+') { $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } if ($price_prefix == '-') { $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } if ($price_prefix == '') { $this->total += $qty * tep_add_tax(tep_adjust_price($option_price, $products_price), $product_tax); if(!empty($attribute_price['options_values_weight'])) { // [email protected] // add-weight-to-product-attributes mod: $this->weight += ($qty * $attribute_price['options_values_weight'])-($qty * $products_weight); } // END if(!empty($attribute_price['options_values_weight'])) { } } } } // subtotal function for attributes price 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); $price_prefix = $attribute_price['price_prefix']; $option_price = $attribute_price['options_values_price']; $products_query = tep_db_query("select products_price from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $products_stuff = tep_db_fetch_array($products_query); $products_price = $products_stuff['products_price']; if ($price_prefix == '+') { $attributes_price += $option_price; } if ($price_prefix == '-') { $attributes_price -= $option_price; } if ($price_prefix == '') { $attributes_price += tep_adjust_price($option_price, $products_price); } } } return $attributes_price; } // EOF - AAP V1.0///////////////////////////////////////////////////////////////////////////////// Now I get the Parse Error: Syntax error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION of T_VAR or '}' on line 405 (which is my final ?> and nothing else on the line. So where it is getting the semi colon, I don't know.
  8. Nope that is not what it means... it is still doing it....sigh.....
  9. Okay I found a fix, but I do not understand it... this is what it says to do: FIX to add an attribute's actual weight for checkout and shipping The only problem with this contribution is that it doesn't account for weights. So I came up with this fix. What this does is allow you to assign specific weights to each attribute. When you select an attribute product for purchase, that attribute's weight is added to cart (for checkout and shipping purposes) WITHOUT BEING ADDED TO THE PRODUCT'S ORIGINAL WEIGHT!!! The product's base weight is replaced with the weight of the attribute! Before proceeding make sure you already have the Actual Attribute Price mod correctly installed, as this edits one of it's lines of code. STEP 1: Install the contribution: "Add Weight To Product Attributes v0.2" STEP 2: In catalog/classes/shopping_cart.php: Find this line: $this->weight += ($qty * $attribute_price['options_values_weight']); And replace it with this line: $this->weight += ($qty * $attribute_price['options_values_weight'])-($qty * $products_weight); That's it!! ---------------------------------- Contributed by Philip [email protected] And that's great BUT.... when I install the product weights module (which I had done, then add the Pricing contribution, I have the two parts above that seem to conflict with one another... Does the fix mean, install the weights contribution ad then edit the one line and that is it? Don't worry about installing the pricing one for the shoppingcart file? LOL I think I've stared wayyy too long at his and need a gentle SHOVE in the appropraite direction lol.
  10. Apparently I don't know how to post code in this forum... hmmm... I'm fixing it right now, it's not going to be 100% with the spacing, but enough to get the drift. I don't want someone to do it for me, just tell me how... Thank you.
  11. Hi all, I have tried and tried and tried to work this out and much to my dismay, I just can't and I now have a syntax error I cannot get rid of. I installed the add weights to product attributes contribution and it works fine. I then went ahead and installed the Attribute Pricing Contribution and it didn't work. I started looking through the shopping_cart.php file only to discover that the two contributions use the same string of commands. So basically I had them doubled up. So, deciding to really get into this, I though heck I can figure this out... So now here I am lol. The problem areas are as follows... Attribute weight contribution: // attributes price // [email protected]/ / add-weight-to-product-attributes mod: // added weight to db query 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, options_values_weight from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$prid . "' 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'] == '+') { $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); } if(!empty($attribute_price['options_values_weight'])) { // [email protected] // add-weight-to-product-attributes mod: $this->weight += ($qty * $attribute_price['options_values_weight']); } // END if(!empty($attribute_price['options_values_weight'])) { } } } } 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']; } } } return $attributes_price; } and then the pricing attribute contrib has this: ////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////// // BOF - AAP V1.0 - updated to account for no price prefix to equal actual price/ / attributes price 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)$prid . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'"); $attribute_price = tep_db_fetch_array($attribute_price_query); $price_prefix = $attribute_price['price_prefix']; $option_price = $attribute_price['options_values_price']; $products_query = tep_db_query("select products_price from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $products_stuff = tep_db_fetch_array($products_query); $products_price = $products_stuff['products_price']; if ($price_prefix == '+') { $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } if ($price_prefix == '-') { $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } if ($price_prefix == '') { $this->total += $qty * tep_add_tax(tep_adjust_price($option_price, $products_price), $product_tax); } } } } } // subtotal function for attributes price 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); $price_prefix = $attribute_price['price_prefix']; $option_price = $attribute_price['options_values_price']; $products_query = tep_db_query("select products_price from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $products_stuff = tep_db_fetch_array($products_query); $products_price = $products_stuff['products_price']; if ($price_prefix == '+') { $attributes_price += $option_price; } if ($price_prefix == '-') { $attributes_price -= $option_price; } if ($price_prefix == '') { $attributes_price += tep_adjust_price($option_price, $products_price); } } } return $attributes_price; } // EOF - AAP V1.0////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// I tried to amalgamate them by keeping the common strings (and comparing them to the original file) but I keep getting an error. IF anyone can help me or at least point me in the right direction I would very much appreciate it. Thank you, Randi
×
×
  • Create New...