Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    S?ren Somann
  1. soeren2

    Easy Menu Maker

    Hi Jack, thanks for your contribution. Is your css menu multilingual? Kind Regards Soeren
  2. soeren2

    Master Products - MS2

    Hi, I am using this revolutionary contribution to substitute the attribute system of OsC in the following way: Master product is i.e. a shirt ( I set stock amount for MP to zero because I don`t want the select amount to show up). I don`t use master products for my stock, only slave products. Slave Products are colors i.e. green, blue, red (Each slave product has amount in stock so the select amount shows up). Now if a customer does not select a slave product or the number of items in product_info.php and clicks on add to cart, OsC adds the master product to the cart as amount zero. Therefore it would be great if OsC could check if the customer has selected a slave product when clicking on the "add to cart" button. A contribution has been posted how to solve this problem when using attributes ((Must Select Attributes). These are the code snippets for checking if attributes were selected. Insert in product_info.php $products_attributes = tep_db_query("select popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'"); if (tep_db_num_rows($products_attributes)) { $products_attributes = '1'; } else { $products_attributes = '0'; } //BoF CB Show must error messages include any must select msg if ($messageStack->size('product_info') > 0) { ?> output('product_info'); ?> Insert this code in application_top.php // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; //BoF CB Enforce option selection if (isset($HTTP_GET_VARS['mustselect'])){ $error = true; switch ($HTTP_GET_VARS['mustselect']) { case 'product_info' : $messageStack->add('product_info','You must select a value from the options dropdown'); break; case 'product_listing' : $messageStack->add('product_listing','You must select a value from the options dropdown for the products you are adding to cart'); break; } } //EoF CB the add_product section in application _top looks like: // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { //BoF CB Enforce attribute selection if (is_array($HTTP_POST_VARS['id']) ) { while (list($option, $value) = each($HTTP_POST_VARS['id'])) { // 9 is the value for "-select-" if ($value == 9) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'] . '&mustselect=product_info')); break; } } } elseif (tep_has_product_attributes($HTTP_POST_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_POST_VARS['products_id'])); break; } //EoF CB $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+$quantity, $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; How can I adapt this for checking if slave products were selected and if not to show the error message? Thanks in advance ;-)
  3. soeren2

    [Contribution] Extra Fields

    thanks Butch for your comment. The problem was in the code. This is the correct code, updated by Christophe Buchi: // START: Extra Fields Contribution v2.0a $extra_fields_query = tep_db_query(" SELECT pef.products_extra_fields_name as name, ptf.products_extra_fields_value as value FROM ". TABLE_PRODUCTS_EXTRA_FIELDS ." pef LEFT JOIN ". TABLE_PRODUCTS_TO_PRODUCTS_EXTRA_FIELDS ." ptf ON ptf.products_extra_fields_id=pef.products_extra_fields_id [B]WHERE ptf.products_id=".(int)$products_id." and [/B]ptf.products_extra_fields_value<>'' and (pef.languages_id='0' or pef.languages_id='".$languages_id."') ORDER BY products_extra_fields_order"); while ($extra_fields = tep_db_fetch_array($extra_fields_query)) { echo '<b>'.$extra_fields['name'].': </b>'; echo $extra_fields['value'].'<BR>'; } // END: Extra Fields Contribution I don`t have any error message in my product_info.php which is good. But somehow the extra text option won`t show up in product_info. I also tested this with original MS2 file (unmodified). On the admin side this contribution works fine with Master Products. I`m sure this will work with Master Products on the catalog side. I`ll post this question in the master products forum. Thanks again!
  4. soeren2

    [Contribution] Extra Fields

    OK Thanks anyway for your help. I checked the database. Everything has been added correctly. Perhaps someone else reading this post knows who to solve the problem.
  5. soeren2

    [Contribution] Extra Fields

    I also tested this with an unmodified product_info.php MS2 file, in order of ruling out that it has something to do with previous modifications I made to my product_info.php (from other contributions) But the same error occurs. Hmm, strange.
  6. soeren2

    Newsletter & Subscribtion for MS2

    I would recommend you to backup your files and do that. Have a look at my previous posts. There you will find the link to the contribution. I think this specific module was concepted for a site with the WYSIWEG Controller.
  7. soeren2

    Newsletter & Subscribtion for MS2

    I will post the code snippet in my admin/mail.php: // MaxiDVD Added Line For WYSIWYG HTML Area: BOF (Send TEXT Email when WYSIWYG Disabled) if (HTML_AREA_WYSIWYG_DISABLE_EMAIL == 'Disable') { $mimemessage->add_text($message); } else { $mimemessage->add_html($message); } // MaxiDVD Added Line For WYSIWYG HTML Area: EOF (Send HTML Email when WYSIWYG Enabled) $mimemessage->build_message(); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', $from, $subject); } and this is in admin/mails.php // MaxiDVD Added Line For WYSIWYG HTML Area: BOF (Send TEXT Email when WYSIWYG Disabled) if (HTML_AREA_WYSIWYG_DISABLE_EMAIL == 'Disable') { $mimemessage->add_text($message); } else { $mimemessage->add_html_newsletter($message); } Have you already installed the Admin Wysiweg Html Area Controller?
  8. soeren2

    Newsletter & Subscribtion for MS2

    I`m not sure if that option really works. I don`t think you can split subscribers in text-format and html-format groups. It`s either one or the other. You could probably solve the html issue with the following: Go in admin folder. Admin | mail.php Open go to line = 40 $mimemessage->add_text($message); And change it to $mimemessage->add_html($message); If this doesn`t work then search for $mimemessage in admin/newsletters.php and admin/newsletter_subscriber.php That should do the trick.
  9. soeren2

    Newsletter & Subscribtion for MS2

    I'm also still battling the WYSIWYG issue. It looks like I'm sending emails in HTML format, but I'm trying to just send them in plain text. I see no WYSIWIG box or instructions anywhere. Anyone know how I can get to plain text? <{POST_SNAPBACK}> Hey sorry I can`t help with the other stuff, I still need to take a crash course in PHP. You need the following contribution: MS2 HTML WYSIWYG Editor, Product Desc, Email +Newsletter in order of switching html on and off in the admin. I recommend implementing this, it is absolutely great: UltraPics and HTML Editor + More...
  10. soeren2

    Newsletter & Subscribtion for MS2

    Hi Autum, I`m pretty sure that this contributions derives from the following: http://www.oscommerce.com/community/contri...arch,newsletter There you will also find the subscription_center.php. Did you try my recommendations to Bongo yet? I ran in the same problems as both of you. This module is a good start but I find it unlogical because it works with two modules. If the subscribers table, update etc. could be adapted to the newsletter module so that people who subscribe from the homepage are added to the customers newsletter table (instead of subscribers table), then it would be perfect. Note this is no criticism. I`m happy that so much effort has been put in this module.
  11. Just wanted to mention that I have Ebay Auction Sales Manager running flawlessly with a heavy modded site. Here are a few examples I have installed: Master Products v. 1.1.5 (contrib. Nr.: 1681) B2B Suite Beta 0.92 (contrib. Nr.: 1575), PWA v. 80 (contrib. Nr.: 355), Credit Class Gift Voucher 510b (contrib. Nr.: 282), Paypal Shopping Cart IPN (contrib. Nr.: 1753) Ultra Pics (contrib. Nr.: 1689) and lot`s of others but these were the contributions I was worried about. For those people selling clothes (products with attributes) I recommend trying out Master Products in combination with EAM. A real lifesaver! I am only a copy and paster, don`t no nothing about php coding. Sad but true! Nevertheless I managed to merge these contributions with beyondcompare, which I also recommend (winmerge is also supposed to be OK)!