Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mightyx

Pioneers
  • Posts

    60
  • Joined

  • Last visited

Everything posted by mightyx

  1. Does Mailmanager support sending mails also by SMTP?
  2. Found out by myself now!!! Very easy if you understand how coupons work! Here's the code for calling the coupon amount: array_sum($order->coupon->applied_discount)
  3. One quick question: How can I echo the total discount amount on e.g. the checkout_confirmation.php page (besides the output in order_total)?
  4. I got accross a problem with this contrib, maybe the original author or someone else can help... Contrib works fine on my store, but has one serious problem. If a product is not sold within the "MAX_DAYS_LOOKBACK_BESTSELLERS" period, the product won't be selected in the cron_update_bestsellers.php script so it will keep it's old value in recent_sales field. That's a problem, as the product is no bestseller any more. For example, assuming 30 days lookback: In June I sell 100x PRODUCT A and 10x PRODUCT B In July I sell 0x PRODUCT A and 20x PRODUCT B In August PRODUCT A would still be the best selling product, because the script didn't update PRODUCT A. cron_update_bestsellers.php needs to be fixed so that if a product is not updated, the recent_sales field is set to 0. Can someone fix that or has someone an idea?
  5. I have a tax calculation problem with different tax rates (Germany). It occurs if a customer applies a fixed discount (prices alaways incl. taxes im Germany) e.g. of 5 Euro. If all ordered products are at 19% VAT everything works fine, but if there's one or more products with reduced VAT (7%) the coupon is nor more at 5 Euro but at e.g. 4.20 Euro. Has anyone a solution for that problem???
  6. OK, here's what I want to do: I want to disappear the "zones" shipping module from the selection in shipping.php if another module is enabled (the other module is a self programmed shipping module). My plan was to tell the zones module to be disabled (enabled = false) if the other module is enabled (enabled = true). But how do I do that?
  7. Yes, that helps! btw: this contrib is currently not multilanguage? I think that would also be a good thing to include in the next version.
  8. Thanks! I am currently testing the contrib, not so bad... :) But it seems to me, that not all variables work, the $customername for exmaple in status mail doesn't work for my shop. Also I wonder where I should edit the mail subject.
  9. Just one question... When I have installed e.g. payment modules like paypal that use their own mail function in the payment module itself, can I then replace the original mail code with the mail manager email code from the cahckout_process.php and it works??? if (file_exists(DIR_WS_MODULES.'mail_manager/order_confirm.php')){ include(DIR_WS_MODULES.'mail_manager/order_confirm.php'); }else{ tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); }
  10. Here's another serious bug in wishlist I couldn't resolve but others have similar problems as well... When a logged in user sends his wishlist to his own email address and then clicks to view his public wishlist, the wishlist box breaks with a fatal error Call to a non object error. Additionally the wishlist is empty after that but wir re-appear when the user logs out and in again. I tried to reolve the bug in appplication_top.php but no success... Here's my version of the wishlist in application_top.php: // wishlist data if (tep_session_is_registered('wishlist') && is_object($wishlist)) { if (PHP_VERSION < 4) { $broken_wishlist = $wishlist; $wishlist = new wishlist; $wishlist->unserialize($broken_wishlist); } } else { tep_session_register('wishlist'); $wishlist = new wishlist; } Any ideas or at least the same error when you follow my description?
  11. Hi, I want to exclude certain shipping methods from free shipping. Has anyone an idea how to do that?
  12. Hi, just an idea for a modification for the bundled products contrib: I want to use this contrib for selling product variations (just like options) not bundles. There would be a master product that contains sub-products that can be bought. For example, the master would be an apple, the sub-products would be a green apple, a red apple and a yellow apple. The difference to product attributes is, that every sub-product is a product for itself (e.g. model no., picture, price, title, stock...). I need that, because our facturing system and some export tools (like amazon, shopping.com) can't handle attributes. Has anyone used the contrib in that way or has anyone an idea how to modificate it?
  13. Something very very very strange with coupons: When a customer adds a free (discount price 0.00 EUR) to his cart as the first product and after that he adds another product with a price above 100 EUR to his cart, then... the following happens when he uses a fixed amount coupon code. In checkout confirmation the discount applied is about 100 EUR more than the initial discount coupon amount. For example: if the disount was 5.00 EUR, then the customer sees a discount applied of 104.94 EUR!!! This ONLY happens when the first product added to the cart has a price of 0 EUR. Has anyone an idea how to solve that strange problem? Cheers Nick
  14. So here's my actual code for the "express" Shipping module. function get_products() { global $languages_id; if (!is_array($this->contents)) return false; $products_array = array(); reset($this->contents); while (list($products_id, ) = each($this->contents)) { $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); if ($products = tep_db_fetch_array($products_query)) { $prid = $products['products_id']; $products_price = $products['products_price']; $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']; } //Impulse Item by jfj $specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS_CHECKOUT . " 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']; } //Impulse Item by jfj $attribute_code_array = array(); if (is_array($this->contents[$products_id]['attributes'])) { while (list($option, $value) = each($this->contents[$products_id]['attributes'])) { $attribute_code_query = tep_db_query("select code_suffix, suffix_sort_order from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$prid . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'"); $attribute_code = tep_db_fetch_array($attribute_code_query); if (tep_not_null($attribute_code['code_suffix'])) { $attribute_code_array[(int)$attribute_code['suffix_sort_order']] = $attribute_code['code_suffix']; } } $separator = ''; if (count($attribute_code_array) > 1) { $separator = '-'; } elseif (count($attribute_code_array) == 1) { $separator = '-'; } $products_code = $products['products_model'] . $separator . implode("/", $attribute_code_array); } else { $products_code = $products['products_model']; } $products_array[] = array('id' => $products_id, 'name' => $products['products_name'], 'model' => $products['products_model'], 'code' => $products_code, 'image' => $products['products_image'], 'price' => $products_price, 'quantity' => $this->contents[$products_id]['qty'], 'weight' => $products['products_weight'], 'final_price' => ($products_price + $this->attributes_price($products_id)), 'tax_class_id' => $products['products_tax_class_id'], 'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : '')); } } return $products_array; }
  15. I copied it from shopping_cart.php and I have no SQL queries in the shipping module. What should I select from SQL for that query?
  16. I want offer express shipping in my shop, but the problem is, that nor all products are in stock and can be delivered by express. So my thought was, to build a shipping module, that checks if the contents of the cart has only products in it, that are in stock. Then the express shipping module can be enabled in checkout_shipping.php. It tried this in the flat.php module but it doesn't work... Can someone help me? class flat { var $code, $title, $description, $icon, $enabled; // class constructor function flat() { global $order, $cart; $this->code = 'flat'; $this->title = MODULE_SHIPPING_FLAT_TEXT_TITLE; $this->description = MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_FLAT_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_FLAT_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false); $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; } if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLAT_ZONE > 0) && ($any_out_of_stock = 1) ) {
  17. Hello, we had the problem in our shop, that the way osc handles attributes is not really professional. The problem is, that attributes don't have their own model number, picture, description... and that attributes are hard to display in product export files e.g. for Google Base. So, here's the idea: Instead of dealing with attributes we want to create a "container" which is a thing between a category and a product. The container contains of several products, when you open a container, a product info page is displayed with a general product description, a "from" price and a general picture. Beneath the different products are listed, all with a unique model number, picture, price and so on. An example: First you create seperately normal products "stainless steel pan red", stainless steel pan black" all with separate price, model, picture. Now you create a container called "stainless steel pans" and put the two products in it. The container is now displayed in the shop as a normal product (not a cetagory!) with a price "from 15 Euro". When a user clicks on that product, the page that opens would contain both pans red and black as separate products. The advantage would be, that real products are still products and not options and that a category is not full of products, that only differ in size, colour etc. What do you think of that enhancement? Is there already a contribution to start with? Has someone an idea how to develop that? Thanks for any thoughts about that! Nico
  18. The current version of the analytics module sets the value in ot_total as the total amount in the transaction string. If you run a store with taxes (e.g. a German store), then the total value includes all taxes and shipping. In the analytics reports the Value transaction volume (Umsatz) is displayed including taxes and shipping. However the value in the item string (Produktumsatz) is excluding any taxes! So I would rather prefer to display my transaction volume without any taxes but including shipping. Has someone ever thought about that??? The solution would be to replace $analytics_total in thev transaction string with a new variable without taxes which is defined as e.g. $analytics_total_netto = $analytics_total - $analytics_tax; Can anyone please give me some tipps if this is correct and if this is really working as it should?
  19. The current version of the analytics module sets the value in ot_total as the total amount in the transaction string. If you run a store with taxes (e.g. a German store), then the total value includes all taxes and shipping. In the analytics reports the Value transaction volume (Umsatz) is displayed including taxes and shipping. However the value in the item string (Produktumsatz) is excluding any taxes! So I would rather prefer to display my transaction volume without any taxes but including shipping. Has someone ever thought about that??? The solution would be to replace $analytics_total in thev transaction string with a new variable without taxes which is defined as e.g. $analytics_total_netto = $analytics_total - $analytics_tax; Can anyone please give me some tipps if this is correct and if this is really working as it should?
  20. Has someone get this contribution to work with the lightbox product images and can post the code here? I figured out, that this contrib detects if the picture is displayed in the "popup_image.php" file and therefore uses image magic to process it. The code for that is in html_outpu.php (search for popup). Since lightboxed images are not displayed in popup_image.php, image magic doesn't process them... Has anybody a solution that can be posted or pm?
  21. And here's the solution, I found it by myself!!! The problem is, that the encoding of the feed has to be correct! In article_rss.php on line 29 change the code to fit xour encodung of the store. For example (for german stores): echo "<?xml version='1.0' encoding='iso-8859-1'?><rss version='2.0' xml:lang='de-DE.iso-8859-1'><channel>\n
  22. I figures out that it has something to do with special characters and html! When I set the charactersto display in RSS feeds to 0 and clean all article headlines not to contain special characters (such as äüö in German) the rss feed is working. Shouldn't we clean up html and specials chars???
  23. I have installed Article Manager v. 1.5.6 and I have a problem with the rss feeds! When I try to dispolay articles as a rss feed, the feed is not displayed, because of an undefined entity "nbsp". Can someone help me please?
  24. I am currently using version 2.4! Version 1.1 from you works ok, but I don't want the longitude latutude to be displayed!
×
×
  • Create New...