Jump to content

npn2531

Members
  • Content count

    1,159
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by npn2531

  1. npn2531

    Ultimate Buttons

    This contribution, http://addons.oscommerce.com/info/7307 , replaces the several dozen individual buttons with a single image, (or no image, if pure CSS styling is preferred), and converts buttons to CSS. Buttons can be given 'hovering' and 'rollover' effects, and automatically resize to fit text. Eliminates the need to reproduce an entire set of buttons every redesign. Download file contains CSS and images for 5 different button styles. Screenshots, instructions and links to examples also included. Installation consists of two code replacements in includes/functions/html_output.php, uploading the two images to the images folder, and pasting the CSS selectors into stylesheet.css. You can also create your own images for buttons, or adapt an existing button. Google 'CSS buttons' and 'sliding doors technique' for the basic process. Essentially you create the button image without text. Then cut the image into a left and right hand side. Then upload these two images to the images folder and adjust the CSS in the stylesheet to set the padding and text styling. The button adjusts to text + padding by hiding varying widths of the left hand side 'under' the div tag containing the right hand side of the button. see screenshots at and details at: http://www.niora.com/oscommerce-ultimate-buttons.php
  2. npn2531

    Mail Manager

    As far as getting to work with the attachments contribution, you should be able to do it. After a quick look, I'm not real sure how the variable $attachment is generated but once you define it, you can add to the mail msg string in mm_email.php like so: change: $output_content_html = $template['htmlheader'].tep_db_prepare_input($HTTP_POST_VARS['message'].$template['htmlfooter']); $output_content_txt = strip_tags($template['txtheader'].tep_db_prepare_input($HTTP_POST_VARS['message'].$template['txtfooter'])); to something like this: $output_content_html = $template['htmlheader'].tep_db_prepare_input($HTTP_POST_VARS['message'].$attachment. $template['htmlfooter']); $output_content_txt = strip_tags($template['txtheader'].tep_db_prepare_input($HTTP_POST_VARS['message'].$attachment.$template['txtfooter']));
  3. npn2531

    Mail Manager

    Spongeobob bhbilbao, thanks for the work on account_notifications.php. I should have incorporated that in the first place. Is it something you can post here?
  4. npn2531

    PDF Datasheet Module

    Open includes/template_bottom.php and make sure you have this : <div id="columnLeft" class="grid_<?php echo $oscTemplate->getGridColumnWidth(); ?> pull_<?php echo $oscTemplate->getGridContentWidth(); ?>"> <?php echo $oscTemplate->getBlocks('boxes_column_left'); ?> </div> You appear to have deleted this part of the above statement: class="grid_<?php echo $oscTemplate->getGridColumnWidth(); ?> pull_<?php echo $oscTemplate->getGridContentWidth(); ?>"
  5. npn2531

    OSC to CSS v2

    OSC to CSS version 2.0 :Convert OSCommerce 2.2RC2a to tableless CSS The new version of OSC to CSS has been posted at http://addons.oscommerce.com/info/7263 Support, demos and screenshots at: www.niora.com/css-oscommerce.php NEW FEATURES FOR V2: 960 Grid System: The 960 grid system facilitates alignment, proportion and layout issues. It speeds up design, creates consistency and solves cross browser problems. 4 new JQuery Features: Product Information Tabs, SuperFish Horizontal Navigation Bar, Json 'add to Cart' lightbox, and Pretty Photo Reorganized Stylesheets/ and Cleaner layout: CSS selectors are more intuitive and cleanly organized. Stylesheets are separated by component and function to facilitate quick design. The layout within the catalog pages is simplified, better notated and consistent. Infoboxes: Infoboxes are completely mobile, and can be placed anywhere on the shop and styled independently depending on their location Buttons: Buttons are CSS generated and have their own stylesheet. This feature can revert to standard buttons easily.
  6. npn2531

    OSC to CSS v2

    Looking closer at your question I see what you are asking. Nothing wrong with adding an extra div, but that should not be necessary. You can do this by doing nothing more than changing the stylesheet. If .infobox, .infoboxcontents, .infobox-image{text-align:center;} does not center the image then rest assured that something else in the stylesheet is overriding it. Try #column_left .infobox-image{text-align:center;} or even img {text-align:center;} Some combination will work. Try putting your guesses at the bottom of the stylesheet. try this: img.infoboxcontents{ text-align:center; }
  7. npn2531

    Mail Manager

    The bulkmail manager inside the mail manager has a newsletter already installed called 'thank you' that is integrated with the xsell contrib. It will mail out to emails on recent orders and add images and links of recently purchased items, and the cross-sold items. Look at the 'email manager' (admin>mail manager>send email). It will send out single templated emails to selected customers. It also has a feature for quickly selecting customers from the database. In the order-confirm and the status-update mail the placeholder '$customername' should give you the customer name.
  8. npn2531

    OSC to CSS v2

    Note that these two div are nested within your div custominfoboxcontents, and therefore the styling for these may be overriding your code. Also pay attention to any padding in any of these classes as that will affect centering. <div class="infobox"> <div class="infoboxcontents">
  9. npn2531

    Newsletter templates

    Set the email up as a simple html webpage and view it a browser. That way what you see is what the email recipient will see. Html emails are webpages. For example I have my newsletters in a folder on my catalog level. I build them on the web first and then copy and paste them into the newsletter manager. Copy and paste from the browser source and you cut out the web editor and what ever issue that may be causing. That way I can include a link to that webpage in the email ( the little lines that read 'if you cannot view this correctly etc') Previewing it in the oscommerce admin, or on your computer as a web editor renders it may or may not be accurate. You can include html tags, header tags, title tags, etc in a email without issue. The next time you get an nice html email from some company, view the source, or better yet copy and paste the source into a new blank page on your website. You'll see the email on the web on your website exactly like it appears in your email. Some have the html tags, even the css in a header and some don't. (some contain odd line breaks so you may have to remove them first) The oscommerce off the shelf newsetter manager works just fine to send html newsletters. It sounds like you already know how to configure the admin to send html. If you are using a wysisyg on the newsletter be sure you have that set to html as well.
  10. npn2531

    Mail Manager

    Yes, the placeholders will work even if you hardcode them into the templates. However, note that all templates work for all emails, but placeholders are specific to email types. For example the placeholder $invoiceurl works on the order confirmation email, but not on the create account email, as there is simply no invoice involved in the creation of a new account, but both these email types can use the same template.
  11. npn2531

    Mail Manager

    The emails can be sent to newsletter subscribers, all customers, or customers who recently ordered. It only takes a click in the admin to switch out the target groups. If you can write a simple php query you can easily create custom groups of email recipients. There is no automatic opt out, you have to add an 'unsubscribe' link to the emails. Examples are included in the installation.
  12. npn2531

    Mail Manager

    The only overlap would possibly be the mailbeez review letter and the mail manager sale_followup letter. Both are mailing out to customers who recently ordered, and include product links and product review links. The main query in the sale_followup is an adaptation of your query in the review letter. Also tep_mm_sendmail is a direct adaptation of mailbeez's osc_sendEmail function. Mail Manager differs in that it is a program that manages and templates all the existing mail functions in OSCommerce from the admin. It does add the excell functions and bulk mail features, but it is tied really close to OSCommerce's existing programming and structure. It would not be adaptable to ZenCart for example, as Mailbeez is.
  13. npn2531

    Mail Manager

    delete
  14. npn2531

    Mail Manager

    I doubt it is damaged as others have successfully used that same file. I am assuming you are getting from here http://addons.oscommerce.com/info/8120 What does seem odd is all the extraneous info in your error message. What should happen is just this: CREATE TABLE IF NOT EXISTS `mm_bulkmail` ( `bulkmail_id` int( 11 ) NOT NULL AUTO_INCREMENT , `title` varchar( 255 ) NOT NULL , `htmlcontent` text NOT NULL , `txtcontent` text NOT NULL , `date_added` datetime NOT NULL , `date_sent` datetime DEFAULT NULL , PRIMARY KEY ( `bulkmail_id` )
  15. npn2531

    Mail Manager

    It is not clear to me from the above what happened, but it appears from the error msg that you somehow did not select the database. Be sure you are importing this file, mail_manager_DB__.sql. Once you are in phpMyAdmin, select the database you are working with, then select the import tab. It should work.
  16. npn2531

    Mail Manager

    open includes/modules/mail_manager/order_confirm.php to the list under '//define values for placeholder variables' add this: $moneyorder_comments = MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER; Then change this: //define placeholders $placeholders=array('$storeurl', '$storename','$storeemail','$separator','$orderno','$orderdate','$invoiceurl','$productsorderedhead','$productsordered','$deliveryaddresshead','$deliveryaddress','$billingaddresshead', '$billingaddress', '$paymentmethodhead', '$paymentmethod', '$paymentclass','$ordercomments', '$ordertotalhead', '$ordertotal'); $values=array(HTTP_SERVER,STORE_NAME,STORE_OWNER_EMAIL_ADDRESS,EMAIL_SEPARATOR, $order_no,$order_date, $invoice_url,EMAIL_TEXT_PRODUCTS,$products_ordered, EMAIL_TEXT_DELIVERY_ADDRESS,$delivery_address, EMAIL_TEXT_BILLING_ADDRESS, $billing_address, EMAIL_TEXT_PAYMENT_METHOD, $method_of_payment,$payment_class, $order_comments,$ordertotal_head,$ordertotal); to this: $placeholders=array('$storeurl', '$storename','$storeemail','$separator','$orderno','$orderdate','$invoiceurl','$productsorderedhead','$productsordered','$deliveryaddresshead','$deliveryaddress','$billingaddresshead', '$billingaddress', '$paymentmethodhead', '$paymentmethod', '$paymentclass','$ordercomments', '$ordertotalhead', '$ordertotal', '$moneyordercomments'); $values=array(HTTP_SERVER,STORE_NAME,STORE_OWNER_EMAIL_ADDRESS,EMAIL_SEPARATOR, $order_no,$order_date, $invoice_url,EMAIL_TEXT_PRODUCTS,$products_ordered, EMAIL_TEXT_DELIVERY_ADDRESS,$delivery_address, EMAIL_TEXT_BILLING_ADDRESS, $billing_address, EMAIL_TEXT_PAYMENT_METHOD, $method_of_payment,$payment_class, $order_comments,$ordertotal_head,$ordertotal, $moneyorder_comments); This adds a new placeholder, $moneyordercomments, that you can use in the order_confirm email. Note that the \n in the money order language file are 'text' line breaks, you may have to replace them with html line breaks <br>. If it does not work then run this test to see if it is all the punctuation in that langauge definition that is a issue. in the language file change: define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "Make Payable To:\nBank: ". OWNER_BANK_NAME . "\nOwner of an account: ". OWNER_BANK_ACCOUNT . "\nBank code number: ". STORE_OWNER_BLZ . "\nAccount number: ". OWNER_BANK . "\nSWIFT Code: ". OWNER_BANK_SWIFT . "\nIBAN: ". OWNER_BANK_IBAN . "\n\nnSend To:\n" . STORE_NAME_ADDRESS . "\n\n" . 'Your order will not ship until we receive payment.'); to this: define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', 'It is the stuff in the language file that is an issue');
  17. npn2531

    Mail Manager

    Post a link to the contribution and I will take a look.
  18. npn2531

    Mail Manager

    Try this: open includes/modules/mail_manager/status_update.php replace $invoice_url = EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL'); with // SADESA ORDER TRACKING //$invoice_url = EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL'); $invoice_url = $email ; // /SADESA ORDER TRACKING Note on admin/orders.php you will find a variable $email on about line 76. That variable contains all the info needed for the tracking module. This should put the tracking info in the email. However it is going to duplicate info contained in the other mail_manager placeholders. This is not a problem, as you can simply not use those mail_manager placeholders. Note also that the string defined by the variable $email in the tracking module uses \n\n\ for line breaks. The html version of the resulting mail_manager email is going to ignore those line breaks and run everything together on one line. If the above works, experiment with isolating the tracker code you need for example, on order.php that string that defines $email is this: $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" .tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "'>" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "</a>\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . Nederland_URL . ' ' . "<a HREF='" .(URL_TO_TRACKNR.''. $track_num.''.URL_TO_TRACKPC.''.$track_pcode) . "'>" .(URL_TO_TRACKNR.''. $track_num.''.URL_TO_TRACKPC.''.$track_pcode) . "</a>\n\n\n". Europa_URL . ' ' . "<a HREF='" .(URL_TO_TRACKNRBL.''. $track_num) . "'>" .(URL_TO_TRACKNRBL.''.$track_num) . "</a>\n\n\n". URL . ' ' . "<a HREF='" .(URL_TO_TRACKNR.''. $track_num.''.URL_TO_TRACKPC.''.$track_pcode) . "'>" .(URL_TO_TRACKNR.''. $track_num.''.URL_TO_TRACKPC.''.$track_pcode) . "</a>\n". $notify_tracking .$notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); changing it to: $email = EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" .tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "'>" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "</a>\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . Nederland_URL . ' ' . "<a HREF='" .(URL_TO_TRACKNR.''. $track_num.''.URL_TO_TRACKPC.''.$track_pcode) . "'>" .(URL_TO_TRACKNR.''. $track_num.''.URL_TO_TRACKPC.''.$track_pcode) . "</a>\n\n\n". Europa_URL . ' ' . "<a HREF='" .(URL_TO_TRACKNRBL.''. $track_num) . "'>" .(URL_TO_TRACKNRBL.''.$track_num) . "</a>\n\n\n". URL . ' ' . "<a HREF='" .(URL_TO_TRACKNR.''. $track_num.''.URL_TO_TRACKPC.''.$track_pcode) . "'>" .(URL_TO_TRACKNR.''. $track_num.''.URL_TO_TRACKPC.''.$track_pcode) . "</a>\n". $notify_tracking .$notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); would remove the store name and order id. Again if you get a single . or ' ' or ; out of place it won't work.
  19. npn2531

    Mail Manager

    Add the original url to the string similar to I have done below. You can vary the definition of $invoice_url any way you need. Unless I have made a typo this should add both urls to your email: $invoice_url = EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "'>" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "</a>\n" . ' <br/>View the invoice on your account below<br>'. tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL'); Play around with it. Be careful with the . and ' 's. Note that the html email will ignore the line break \n , and the text version will add the <br/> literally as <br/>. To solve that you can create another placeholder to use only on the text version.
  20. npn2531

    Mail Manager

    Open includes/modules/mail_manager/status_update.php change: $invoice_url = EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL'); to: // SADESA ORDER TRACKING //$invoice_url = EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL'); $invoice_url = EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "'>" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "</a>\n" . // /SADESA ORDER TRACKING
  21. npn2531

    Mail Manager

    Glad it works. You only need the xsell module if you use the sale_followup.php module. This is a separate module that sends a post sale letter to customer and includes links and images to cross sold items.
  22. npn2531

    Mail Manager

    Glad that was the issue. Language: If you make a translation into another language post the files here: http://code.google.com/p/mobile-oscommerce-addon/downloads/list and I will have them available to add them to the next Mail Manager update.
  23. npn2531

    Mail Manager

    Look at line 34 in catalog/includes/modules/mail_manager/status_update.php. The variable '$name' is probably not properly defined. Try adding this: $name=$check_status['customers_name']; just above the comment //define placeholders which should add it to the list under //define values for placeholder variables
  24. npn2531

    Mail Manager

    Mail Manager only interrupts that one line in checkout_process.php ie tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); All the programming previous to that line is intact and available to the paypal module. In other words, the paypal module should function exactly the same with or without the Mail Manager module installed.
  25. npn2531

    Mail Manager

    Sorry about that, the folder was too big to upload to the OSCommerce site. You can find them on google code. http://code.google.com/p/mobile-oscommerce-addon/downloads/list
×