Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

J.S. Coolen

Archived
  • Posts

    22
  • Joined

  • Last visited

About J.S. Coolen

  • Birthday 04/17/1979

Profile Information

J.S. Coolen's Achievements

  1. never mind I uploaded the file to the wrong map. Thank you for the wonderfull mod. It works perfect with QPBPP_v1_3_5 mod, you just have to look at the queries and don't just copie the complete script.
  2. Thabk you very much, The admin works a lot better, but I get 1 error when I trij to open de webshop: Fatal error: Cannot redeclare tep_set_banner_status() (previously declared in /home/bajafl01/domains/bajaflightcases.nl/public_html/catalog/includes/functions/general.php:698) in /home/bajafl01/domains/bajaflightcases.nl/public_html/catalog/includes/functions/banner.php on line 23 I checked the files, but I there is no diverse in the files around 698 function tep_set_banner_status($banners_id, $status) {
  3. But where are the original files from this mod, there's only the auto update in the download.
  4. I like it very much but it doens't work. I have 1 other mod insalled: QPBPP_v1_3_5, this is a mod that allows a discount when you order a large number of items: http://www.bajaflightcases.nl/catalog/prod...products_id=100 Testitem: http://www.bajaflightcases.nl/catalog/prod...products_id=140 The script is uoploading the files: But in the admin there gone: Not a sign in the product sheet: But when you click on the picture, there back again:
  5. sorry, there was another topic: http://www.oscommerce.com/forums/index.php?sho...mp;hl=more+pics
  6. Does anyone got this mod working? Link:http://addons.oscommerce.com/info/1611 I like it very much but it doens't work. The script is uoploading the files: But in the admin there gone: Not a sign in the product sheet: But when you click on the picture, there back again:
  7. I just installed a clean version of oscommerce and de qpbpp, but now I get an error: 1146 - Table 'bajafl01_shop.administrators' doesn't exist select id from administrators limit 1 [TEP STOP]
  8. Ok On the dutch forums it was allowed. I can't change my answer anymore. I can't get this mod to work, there are a lot of errors And I don't have the knowlege or the time to learn al of that. I know a little something about PHP, but not enough to understand those functions. for now I just replace the shop with the old files. Anyway, thanks for your help.
  9. Should: function calculate() { $this->total = 0; $this->weight = 0; global $currencies, $languages_id, $pfs; // for qpbpp added: $languages_id, $pfs not be: function calculate() { $this->total = 0; $this->weight = 0; global $currencies, $languages_id, $pfs; } // for qpbpp added: $languages_id, $pfs with a clossing } ? edit: I have changed the script from currencies.php with: function calculate() { $this->total = 0; $this->weight = 0; global $currencies, $languages_id, $pfs; } // for qpbpp added: $languages_id, $pfs but I still get this error: Fatal error: Call to a member function getPriceFormatterData() on a non-object in /home/bajafl01/domains/bajaflightcases.nl/public_html/catalog/includes/classes/shopping_cart.php on line 365 Is there maybe a Chage that somebody make this script working for me, I'm willing to pay for it, dutch scripters only.
  10. I downloaded the newste version, from the dutch site. MAy it went wrong with another mod. I have another mod installed, with makes a limited of sending artikels heavyer then 30 kilo's. So where do I have to ad this lines? To Shopping_cart.php? function calculate() { $this->total = 0; $this->weight = 0; global $currencies, $languages_id, $pfs; // for qpbpp added: $languages_id, $pfs to
  11. My function is complety different: http://www.bajaflightcases.nl/shopping_cart.zip function calculate() { $this->total = 0; $this->weight = 0; if (!is_array($this->contents)) return 0; // BOF qpbpp $discount_category_quantity = array(); // calculates no of items per discount category in shopping basket foreach ($this->contents as $products_id => $contents_array) { if(tep_not_null($contents_array['discount_categories_id'])) { if (!isset($discount_category_quantity[$contents_array['discount_categories_id']])) { $discount_category_quantity[$contents_array['discount_categories_id']] = $contents_array['qty']; } else { $discount_category_quantity[$contents_array['discount_categories_id']] += $contents_array['qty']; } } } // end foreach $pf = new PriceFormatter; // EOF qpbpp reset($this->contents); while (list($products_id, ) = each($this->contents)) { $qty = $this->contents[$products_id]['qty']; // BOF qpbpp if (tep_not_null($this->contents[$products_id]['discount_categories_id'])) { $nof_items_in_cart_same_cat = $discount_category_quantity[$this->contents[$products_id]['discount_categories_id']]; $nof_other_items_in_cart_same_cat = $nof_items_in_cart_same_cat - $qty; } else { $nof_other_items_in_cart_same_cat = 0; } // EOF qpbpp // products price // BOF qpbpp $pf->loadProduct($products_id, $languages_id); if ($product = $pfs->getPriceFormatterData($products_id)) { $prid = $product['products_id']; $products_tax = tep_get_tax_rate($product['products_tax_class_id']); $products_price = $pf->computePrice($qty, $nof_other_items_in_cart_same_cat); // EOF qpbpp $products_weight = $product['products_weight']; // BOF qpbpp /* $specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$prid . "' and status = '1'"); if (tep_db_num_rows ($specials_query)) { $specials = tep_db_fetch_array($specials_query); $products_price = $specials['specials_new_products_price']; } */ // EOF qpbpp $this->total += $currencies->calculate_price($products_price, $products_tax, $qty); $this->weight += ($qty * $products_weight); } // 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); 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); } } } } }
  12. I cheked the file, but those line are include. http://www.bajaflightcases.nl/application_top.zip Maybe, the script is in conflict with my zonesx mod http://addons.oscommerce.com/info/1490 But this is just a very simpele mod
  13. The adress of the website is: www.bajaflightcases.nl, YOu don't have to make an account to get the error. Just add something to you shopping cart.
  14. I still have an error, when I add a product to my cart I get this error: Fatal error: Call to a member function getPriceFormatterData() on a non-object in /home/bajafl01/domains/bajaflightcases.nl/public_html/catalog/includes/classes/shopping_cart.php on line 365 line 365: if ($products = $pfs->getPriceFormatterData($products_id)) { I hope someone can help me
  15. Probleme is solved, there was an upload error.
×
×
  • Create New...