Jump to content

npn2531

Members
  • Content count

    1,159
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by npn2531

  1. npn2531

    Mail Manager

    Check and make sure you have added the new tables to the database that this add-on requires. (You should see how to do this in the instructions.)
  2. npn2531

    Held Orders Email Issue

    One simple hack would be to place the language definitions directly in checkout_process.php near or at the top. If you wanted to preserve the ability to switch between french and english you could use a simple if statement. For example: if ($languages_id == '3'){ define('HELLO_CUSTOMER', 'Bonjour'); }else{ define('HELLO_CUSTOMER', 'Hello'); } (note I'm guessing that '3' is the OSCommerce database number for French)
  3. npn2531

    Mail Manager

    You can change the image size in the admin, but this changes it for everything. To change it only for tell_a_friend.php go to catalog/includes/modules/mail_manager/tell_a_friend.php and change $product_image = tep_image(HTTP_SERVER.'/'.DIR_WS_IMAGES . $product_info['products_image_xl'], $product_info['products_name'], '', '', ''); to $product_image = tep_image(HTTP_SERVER.'/'.DIR_WS_IMAGES . $product_info['products_image_xl'], $product_info['products_name'], '150', '150', ''); In other words hardcode in a image size. Note that I have arbitrarily chosen the values of 150 for width and height. You can use the numbers you need. I don't know enough about the order editor to tell you how to integrate the mail manager. I'm sure it could be done. Look at how mail manager is integrated into the tell a friend module. In the order editor you could most likely use the same call used in catalog/tell_a_friend.php //*******start mail manager***************// if (file_exists(DIR_WS_MODULES.'mail_manager/tell_a_friend.php')){ include(DIR_WS_MODULES.'mail_manager/tell_a_friend.php'); }else{ tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); } //*******end mail manager*****************// Then you would write a module similar to catalog/includes/modules/mail_manager/tell_a_friend.php. Except in the order editor the whole thing might be best in the admin folders.
  4. npn2531

    Mail Manager

    It would take considerable rewriting of mail manager to do this. One simple solution, not the most elegant, would be to enter the email in both English and French, one directly above the other in the admin when you create the letter. Placeholders: To understand placeholders you could start by learning about the php command: str_replace An excellent tutorial can be found here: www dot tizag dot com/phpT/php-string-str_replace.php This command is incorporated in the mail manager programming in the file admin/mm_bulkmail about line 260, see comment //placeholders
  5. npn2531

    Mail Manager

    genata33, the placeholders occur only in the mail manager files. See mail manager/admin/mm_responsemail.php The placeholders are referenced from that file, but are stored in the database in the table mm_response mail within the field htmlcontent and the record 'order confirmation'. _
  6. npn2531

    Mail Manager

    Cata44, If you can translate the files in mail manager/admin/includes/english into French, then perhaps you can add it to the contribution. Or if are uncertain about posting them, then email me the files, or post the files on the forum, I will add it to the contribution.
  7. npn2531

    Mail Manager

    when you create order confirmation email make sure that the placeholder $ordertotal is correct, that it is the order total. note that in the admin>response mail manager the $ordertotal = order total and not delivery address.
  8. npn2531

    Mail Manager

    I am willing to bet you have some typo somewhere. tep_hide_session_id() is not a function that is created or messed with in writing mail manager.
  9. npn2531

    Mail Manager

    The admin/mm_bulkmail, and other admin/mm_xxxx pages are set up for OSCommerce 2.2. They will work fine on 2.3 but the html isn't adjusted for 2.3. You can ignore the issue or open up those pages and adjust the html to fit.
  10. npn2531

    Mail Manager

    The html on the admin side will be off, as you've noticed, if you use this on 2.3 It will work just fine, but you have play with the layout on the admin side to get it to look right.
  11. Google 'oscommerce multiple options' or some such, you will come up with tons of tutorials and info. You can probably do what you need from the standard OSCommerce install. In any case, OSCommerce is probably the easiest cart to modify, plus with so many people using and writing contributions for OSCommerce I would be surprised if no one has posted a solution to this somewhere. Here are a couple of nice tutorials on options: clubosc dot com/sorting-options-and-attributes-in-2-3-1 dot html joomlarocket dot com/oscommerce-tutorials/oscommerce-adding-product-attributes dot html
  12. I'm just tossing out terms, when I say options and multiple options. I only use one option on one of my products, so I'm not the best one to ask about that.
  13. The term catalog directory is used to distinguish the catalog level files from the admin directory. There really is no folder called 'catalog'. Think of the 'catalog directory' as every file and folder on the same level as the admin folder. For example the file product_info.php is on the same level as the admin folder, thus product_info.php is by default consider to be in the catalog directory. Essentially the catalog files are the files the customer sees. It is just used as a convention, it just sounds better to say 'catalog directory' than to say 'not in the admin folder' PS - don't start a new folder called catalog, it will just confuse things needlessly. Also catalog directory and catalog folder are the same thing. PPS - the options, multiple options thing is really worked out well in OSCommerce. And there are lots of contributions to modify it. It's seems clunky because it takes getting used to. It's clunky in other shopping carts as well. Think of it as flexible and adaptable rather than clunky. It works quite well on the customer (or 'catalog') side.
  14. looks like you found the place, glad it worked, but the changes are made in includes/modules/cat_navbar.php
  15. I assume you are using this contribution: http://addons.oscommerce.com/info/7541 if so find this: // Close off nested lists for ($nest = 0; $nest <= $GLOBALS['this_level']; $nest++) { $output .= '</ul>'; } change to this: // Close off nested lists for ($nest = 1; $nest <= $GLOBALS['this_level']; $nest++) { //close subcategory $output .= '</ul></li>'; //extra links $output .=' <li><a href=" '.tep_href_link('reviews.php', '', 'NONSSL').'" >Reviews</a></li> <li><a href=" '.tep_href_link('articles.php/acne-t-2', '', 'NONSSL').'" >Learn More</a></li> <li><a href=" '.tep_href_link('faq.php', '', 'NONSSL').'" >Faqs</a></li> '; // close list $output .='</ul>'; } you can see this example live at www dot niora dot com
  16. npn2531

    Mail Manager

    A clickable link would be great. Go to includes/modules/product_listing.php and copy the format from there. It's a clickable image product link. It would be added to the definition above for $product_image You will have to add p.product_id to the query in catalog/tell_a_friend.php (maybe not as the product id is already in the query)
  17. npn2531

    Mail Manager

    Since you are using p.products_image in catalog/tell_a_friend.php be sure you change p.products_image_xl in includes/modules/mail_manager/tell_a_friend.php to p.products_image.
  18. npn2531

    Mail Manager

    I think you have located an error in my coding. includes/mail_manager/tell_a_friend.php is looking for the variable $product_info['products_image_xl']. That variable is defined in the query on catalog/tell_a_friend.php. If you do not have the article manager or some other contribution installed, like I do, then the standard query on catalog/tell_a_friend.php does not have the image defined. To fix, locate this query near the top of catalog/tell_a_friend.php if (isset($HTTP_GET_VARS['products_id'])) { $product_info_query = tep_db_query("select pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($product_info_query)) { $valid_product = true; change to : if (isset($HTTP_GET_VARS['products_id'])) { $product_info_query = tep_db_query("select p.products_image_xl, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($product_info_query)) { $valid_product = true; note that you may need to use products_image instead of products_image_xl . Check your products table in the database. If this fixes it, post it back here and please add the correction to the mail manager contribution, or let me know to add it. Thanks
  19. @@vampirehunter You will find it easier to style the product listings if they are coverted to div or ul. For one thing you can control the number of columns simply by setting the width of each product listing in the stylesheet. Tables are better for listing data where you are relating the x-axis to the y-axis (ie a chart with a set heading along either or both the x and y axis), but product listings are simple lists you are stacking up like bricks or legos.
  20. @@multimixer @@vampirehunter Then changing it to div or ul should be easier in 2.3 than in 2.2rc2a.
  21. @@vampirehunter There is a serious learning curve involved here, but once you get over the hump, and decipher that spaghetti code and references to files tucked away here and there, you'll start to appreciate the efficiency of OSCommerce. Check out amazon for books on oscommerce.
  22. Most big shops use unordered lists or divs instead of tables for product listings. Yes, you would list tabular data or 'chart' data in tables, but product listings are not tables or 'charts'. The way you can get the product listings in 2.3 to look like I have the product listings in 'OSC to CSS' is to change three files. includes/modules/product_listings.php, includes/classes/boxes.php and the css file. (If you are using 2.3 stick with it, you can change the product listings there to look like my demo, or even better) Compare the file includes/modules/product_listing.php. The main thing I did there was change 'new productlistingbox' to 'new plistingbox'. Since I changed it to 'pllistingbox' I now have to create a new class in includes/classes/boxes.php called plistingbox. The classes in includes/classes/boxes.php control how the product listing is displayed. Compare includes/classes/boxes.php in 2.3 and in 'OSC to CSS'. You will see that I duplicated the classes, and renamed the duplicated classes. Then I went into the duplicated classes and changed the table tags to div tags. (Renaming is an involved process as you have to carefully go through almost every line and change stuff). If you did two things you would have this product listing issue down pat. 1) Duplicate the classes in your 2.3 includes/classes/boxes.php 2) Change your duplicated classes to unordered list tags or div tags instead of table tags. It took me weeks to walk through the box classes and change them, maybe I am slow, but expect it to be a tedious task. If you do get the product listing converted to ul tags it would be awesome, and you should post your solution back on the forum.
  23. @Mention I can relate to your frustration, but once you get the hang of it, you'll find the very thing you are struggling with is exactly the reason OSCommerce, esp 2.2RCA is so nimble and flexible. Interweaving the php and html like OSC does cuts out lots of files and depth of structure that would normally be written into a program to make it more user friendly. But making a program user friendly complicates things if you prefer to just work directly with the code, instead of an admin interface. I suggest first getting a real grasp on: 1) How includes/application_top.php controls stuff in index and product_info 2) Spend a few days understanding how the box classes work. (includes/classes/boxes) OSCommerce is really efficiently written.
  24. npn2531

    Mail Manager

    Thanks! I will post the time fix on the contribution. I will test out the unsubscribe feature. The sales followup email is a bit different from the other emails, a bit more involved.
  25. npn2531

    Mail Manager

    You guys should post the changes to the contribution, it's open. The admin does need some help with display. The time issue is something I would never have spotted.
×