Jump to content

joekushner

Members
  • Content count

    32
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Joe Kushner
  1. joekushner

    Temporary promotions

    you can run specials for a period of time, its built into OSC go to catalog section, and then specials
  2. joekushner

    adding orders

    http://www.oscommerce.com/community/contributions,1589
  3. joekushner

    Featured Product contribution (1.3)

    try remving the tep from the beginning, making it just array_merge... i forget exactly how its worded, search your general.php file for merge and see what the function name is
  4. joekushner

    Actual Attribute Price V1.0

    of course! its nice to have more options available, especially one that the code is fairly simple to add another IF statement :)
  5. joekushner

    Actual Attribute Price V1.0

    if you got this contrib and it's not working properly (which it wont) edit these lines line 250 replace with if (($price_prefix == '') and ($option_price != 0)) { line 278 replace with if (($price_prefix == '') and ($option_price != 0)) { and everything will function old way, and this new way enjoy
  6. joekushner

    Actual Attribute Price V1.0

    no the above code still dosent work it seems to have a problem like if i have some selectable options with no price, then one with a price it dosent calculate right
  7. joekushner

    Actual Attribute Price V1.0

    it dosent work both ways :( at least it's not for me... but i was looking at the code... is there a reason why its so many lines of code? here's what i figured out I put this in shopping_cart.php just added an elseif and the new line for both -- see example if ($attribute_price['price_prefix'] == '+') { ? ? ? ? ? ? ?$this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); ? ? ? ? ? ?} else if ($attribute_price['price_prefix'] == '-'){ ? ? ? ? ? //changed ? ? ? ? ? ? ?$this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); ? ? ? ? ? ?} else $this->total += $qty * tep_add_tax(tep_adjust_price($option_price, $products_price), $product_tax); //added and that seems to work, except the shopping cart box dosent keep the correctly updated price I just fixed it..... I cut down on your code drastically general.php stays the same for the function.... but here's the new shopping_cart.php file Original - ~ line 239 if ($attribute_price['price_prefix'] == '+') { $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } else { //changed $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); new if ($attribute_price['price_prefix'] == '+') { $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } else if ($attribute_price['price_prefix'] == '-'){ //changed $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } else $this->total += $qty * tep_add_tax(tep_adjust_price($attribute_price['options_values_price'], $products_stuff['products_price']), $product_tax); then old ~ line 256 if ($attribute_price['price_prefix'] == '+') { $attributes_price += $attribute_price['options_values_price']; } else { $attributes_price -= $attribute_price['options_values_price']; and new if ($attribute_price['price_prefix'] == '+') { $attributes_price += $attribute_price['options_values_price']; } else if ($attribute_price['price_prefix'] == '-') { $attributes_price -= $attribute_price['options_values_price']; } else $attributes_price += tep_adjust_price($attribute_price['options_values_price'], $products_stuff['products_price']); works like a charm just a suggestion to save some lines of code... but an excellent mod however! gave me the ambition to take it apart and figure out how it worked.
  8. joekushner

    Actual Attribute Price V1.0

    it dosent work both ways :( at least it's not for me... but i was looking at the code... is there a reason why its so many lines of code? here's what i figured out I put this in shopping_cart.php just added an elseif and the new line for both -- see example if ($attribute_price['price_prefix'] == '+') { $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } else if ($attribute_price['price_prefix'] == '-'){ //changed $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } else $this->total += $qty * tep_add_tax(tep_adjust_price($option_price, $products_price), $product_tax); //added and that seems to work, except the shopping cart box dosent keep the correctly updated price
  9. Anyone install this mod yet? I'm trying to figure out how to make it work both ways... if at all possible. It would be nice to have this package work with both a set product attribute price, or the normal way with the + and - its here if you need to see, its pretty new http://www.oscommerce.com/community/contributions,1716
  10. i'm using ms 2.2 and did the install to the letter, even checked it twice, all the proper code is in place nevermind i'm retarded.... completly missed the SQL entry, works fine now
  11. im getting this error in checkout_process.php i'm using ms 2.2 and did the install to the letter, even checked it twice, all the proper code is in place
  12. wrong area sorry
  13. joekushner

    New Attribute Manager v4b with sort?

    i found it In /catalog/product_info.php find this query: $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . $products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "' order by products_options_values_name"); play with the last open order by (change it to id to list in order its entered) or any other one to order it to get it to work
  14. joekushner

    New Attribute Manager v4b with sort?

    their is a way to do it but it escapes me right now... within the SQL statement to show attributes, you can its set ot 'order by name' it needs changed to order by id, and it will sort them in the order they are entered
×