Jump to content

oldschoo

Members
  • Content count

    163
  • Joined

  • Last visited

Profile Information

  • Real Name
    beth marquardt

Recent Profile Visitors

7,665 profile views
  1. This page might help. Different file.php but same concept http://www.parse-error-unexpected-t-string.com/
  2. oldschoo

    Product Listing 3 Columns for v2.2 RC2a

    Thanks Steve - worked perfectly!!!
  3. How do I add the words "quantity" or "# in stock" before the actual quantity. Right now just shows the quantity count with no wording in front of it.
  4. We finally got it working. Will post finished code soon.
  5. oldschoo

    One Page Checkout Support

    I have 2 different questions: 1) I have order disclaimer installed on my site - order disclaimer. How do I get that to show on one page checkout? 2) Has anyone got this to work with this Authorize Net AIM module (GPL) add on authorize aim gpl to work with one page checkout? If anyone has, please provide details.
  6. oldschoo

    Newsletter products, HTML email

    Thank you, I wll give it a try
  7. oldschoo

    Newletter products V3.0

    It sounds like you are missing some files. Make sure you have: admin/includes/modules/newsletters directory - and the three different newsletters (newsletter.php, newsletter_products.php, product_notifications.php) admin/includes/languages/english/newsletter directory and the different newsletters
  8. oldschoo

    [Contribution] Newsletter Unsubscribe v1.1

    I am trying to get this to work with products newsletter and products notifications. Does anyone have the code change in admin/includes/modules/newsletters/product_notifications.php and admin/includes/modules/newsletters/newsletter_products.php product_notifications.php original code $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); $mimemessage->add_text($this->content); $mimemessage->build_message(); reset($audience); while (list($key, $value) = each ($audience)) { $mimemessage->send($value['firstname'] . ' ' . $value['lastname'], $value['email_address'], '', EMAIL_FROM, $this->title); } newsletter_products.php original code $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer', $messageId)); //$mimemessage->add_text($this->content); //$text = $this->text_content(); $mimemessage->add_html($this->html_content(), $this->text_content(), HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES); $mimemessage->build_message(); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title); } Thanks for any help you can give.
  9. oldschoo

    Newsletter products, HTML email

    I have the contribution newsletter unsubscribe. How can I use the unsubscribe link from that add on with this add on? That contribution say to change the following in admin/includes/modules/newsletters/newsletter.php from this code $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); $mimemessage->add_text($this->content); $mimemessage->build_message(); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title); } to this code // Begin Unsubscribe hack $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->add_html($this->content . TEXT_UNSUBSCRIBE . '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '">' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '</a>'); $mimemessage->build_message(); $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title); } // End Unsubscribe hack I am assuming I change this code in admin/includes/mdules/newsletters/newssletter_products $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer', $messageId)); //$mimemessage->add_text($this->content); //$text = $this->text_content(); $mimemessage->add_html($this->html_content(), $this->text_content(), HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES); $mimemessage->build_message(); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title); } Any help would be greatly appreciated.
  10. oldschoo

    Newletter products V3.0

    John Im not sure if this will work or not. You can try changing define('DIR_WS_TEMPLATES', DIR_FS_ADMIN . 'templates/'); to define('DIR_WS_TEMPLATES', DIR_FS_ADMIN . 'spice/admin/templates/'); You can try with and without the public_html I am pretty sure your problem in the admin/includes/configure.php file. In that same file has a place for define('DIR_WS_ADMIN', '/path to admin/'); define('DIR_FS_ADMIN', '/server/username/public_html/path to admin/'); These will help you determine what should be put in define('DIR_WS_TEMPLATES', DIR_FS_ADMIN . 'templates/'); You can also try deleting the templats folder in admin and re uploading it with your template. Make sure the file name is a small "t" and not "Templates" If you can view page source, that may give you some more information, or your error report from you cpanel.
  11. I have almost got this working, thanks to steve_s for all his help. I am stuck on the includes/classes/shipping.php file. I show the four levels in admin, products, the four different shipping prices are stored in the database, so the admin part is working correctly. I need the shipping charges to be: 1st item: $ x.xx (charge for first item) 2nd item: $ x.xx (charge for second item) 3rd item: $ x.xx (charge for third item) 4th item: $x.xx (charge for the fourth item and beyond) So, If someone purchased 5 items, they would pay: 1st item ship + 2nd item ship + 3rd item ship + 4th item ship + 4th item ship. This is the part I am having problems with: //start indvship function get_shiptotal() { global $cart, $order; $this->shiptotal = ''; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (tep_not_null($products[$i]['products_ship_price'])) { $products_ship_price = $products[$i]['products_ship_price']; $products_ship_price_two = $products[$i]['products_ship_price_two']; $products_ship_price_three = $products[$i]['products_ship_price_three']; $products_ship_price_four = $products[$i]['products_ship_price_four']; $products_ship_zip = $products[$i]['products_ship_zip']; $qty = $products[$i]['quantity']; if(tep_not_null($products_ship_price) ||tep_not_null($products_ship_price_two)){ $this->shiptotal += ($products_ship_price); if ($qty > 1) { if (tep_not_null($products_ship_price_two)) { $this->shiptotal += ($products_ship_price_two * ($qty-1)); } else { if(tep_not_null($products_ship_price) ||tep_not_null($products_ship_price_three)){ $this->shiptotal += ($products_ship_price); if ($qty > 2) { if (tep_not_null($products_ship_price_three)) { $this->shiptotal += ($products_ship_price_three * ($qty-1)); } else { if(tep_not_null($products_ship_price) ||tep_not_null($products_ship_price_four)){ $this->shiptotal += ($products_ship_price); if ($qty > 3) { if (tep_not_null($products_ship_price_four)) { $this->shiptotal += ($products_ship_price_four * ($qty-1)); } else { $this->shiptotal += ($products_ship_price * ($qty-1)); } }/////////////NOT HERE <<------------ } } } } } } } } [\code] The above code is figuring the shipping for each item over 1 at the 2nd item ship. Thank you for any help
  12. oldschoo

    Newletter products V3.0

    I just installed this contribution last month and do not have any problems. Did you upload your template to that directory? Doulbe check the install directions again, to make sure you didnt miss anything.
  13. oldschoo

    One Page Checkout Support

    Just an idea - When posting an updated version It would be very useful to have update instructions for those of us updating from a prior version. Example: update from version 1.6 to 1.7 do this: It is very time consuming to check over each part of the original instructions when you only need to do certain parts for the upgrade. It would save install time for everyone that already has an older version.
  14. I am having a problem with this contribution. Once in a while when I add a new product, it doesnt always add the individual shipping to the order, even though it is stored in the database. It doesnt happen all the time, and it doesnt happen in a certain category. Most of the time, 99% it works fine. Any ideas?
  15. oldschoo

    Easy Discount

    My client wants to apply a discount to shipping only. We currently have Individual Product shipping rate contribution. That contribution sets a shipping rate per item based on quantity. For example - purchase one at $10, each additional (of same product) is $8. So, the module adds th $10 for the 1st one, PLUS the rate for each additional based on that product. My clients wants to apply a SHIPPING discount if they purchase a quantity of 4 or more. He does not want the discount to be applied to the product, subtotal or tax, JUST SHIPPING. Can this contribution do that? And if so, PLEASE provide example of how I would do that. And also which php file would I put it in?
×