Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

pjsingh

Archived
  • Posts

    74
  • Joined

  • Last visited

Profile Information

  • Real Name
    pj
  • Interests
    webdesign
  • Website

pjsingh's Achievements

  1. Hello Here is my problem For ex: if i have price of item 12:00 and i put some attribute price as a list. How can i show only attribute prices not a signal price with attribute list. Thanks
  2. i am So Sorry i forgot i change the database on my end. once i am done with all the changes to newsletters i will post the contribution. yes the database will be in english.
  3. hello efish here are the code that will you get the first name in the newsletter. just copy the codes and replaced with this one in your catalog/ newsletter_subscribe.php file i hope this help. require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEWSLETTERS); $subscribers_info = tep_db_query("select subscribers_id from " . TABLE_SUBSCRIBERS . " where subscribers_email_address = '" . $HTTP_POST_VARS['Email'] . "' "); $date_now = date('Ymd'); if (!tep_db_num_rows($subscribers_info)) { $gender = '' ; tep_db_query("insert into " . TABLE_SUBSCRIBERS . " (subscribers_email_address, subscribers_firstname, subscribers_lastname, subscribers_city, subscribers_state, subscribers_zip, subscribers_country_id, language, birthdate, subscribers_gender, subscribers_email_type, date_account_created, customers_newsletter, subscribers_blacklist, ip_address, hardiness_zone, interest1, interest2, interest3, interest4, interest5, status_sent1, source_import) values ('" . strtolower($HTTP_POST_VARS['Email']) . "', '" . ucwords(strtolower($HTTP_POST_VARS['firstname'])) . "', '" . ucwords(strtolower($HTTP_POST_VARS['lastname'])) . "', '" . ucwords(strtolower($HTTP_POST_VARS['city'])) . "', '" . $state . "', '" . $HTTP_POST_VARS['zip'] . "' , '" . $HTTP_POST_VARS['country'] . "', 'English', '01/01/1900', '" . $HTTP_POST_VARS['gender'] . "' , '" . $HTTP_POST_VARS['email_type'] . "', now() , '1','0', '" . $IP . "', '" . $domain4 . "', '1', '1', '1', '1', '1', '1', 'subscribe_newsletter')"); } else { tep_db_query("update " . TABLE_SUBSCRIBERS . " set subscribers_firstname = '" . ucwords(strtolower($HTTP_POST_VARS['firstname'])) . "', subscribers_lastname = '" . ucwords(strtolower($HTTP_POST_VARS['lastname'])) . "', subscribers_email_type = '" . $HTTP_POST_VARS['email_type'] . "', subscribers_city = '" . $HTTP_POST_VARS['city'] . "' where subscribers_email_address = '" . $HTTP_POST_VARS['Email'] . "' "); } if ($email_type == "HTMLXX") { // build the message content $newsletter_id='3'; $newsletter_query = "select p.newsletter_info_subject, p.newsletter_info_logo, p.newsletter_info_title, p.newsletter_info_greetings, p.newsletter_info_intro, p.newsletter_info_promo1_name, p.newsletter_info_promo1_des, p.newsletter_info_promo1_img, p.newsletter_info_promo1_url, p.newsletter_info_promo1_link, p.newsletter_info_promo2_name, p.newsletter_info_promo2_des, p.newsletter_info_promo2_img, p.newsletter_info_promo2_url, p.newsletter_info_promo2_link, p.newsletter_info_final_para, p.newsletter_info_closing, q.newsletter_email_address, q.newsletter_template, q.newsletter_user, q.newsletter_site_name, q.newsletter_site_url, q.newsletter_phone, q.newsletter_mailing_address, q.newsletter_template from newsletter_info p , newsletter q where p.newsletter_id = '" . $newsletter_id . "' and q.newsletter_id = p.newsletter_id "; $newsletter = tep_db_query($newsletter_query); $newsletter_values = tep_db_fetch_array($newsletter); $gender = $HTTP_POST_VARS['gender']; if ($gender == 'F') { $email_greet1 = EMAIL_GREET_MS; } else { $email_greet1 = EMAIL_GREET_MR; } $customers_email_address = $HTTP_POST_VARS['Email'] ; $from = 'STORE <[email protected]>' ; $subject = $newsletter_values['newsletter_info_subject'] ; $firstname = $HTTP_POST_VARS['firstname']; $lastname = $HTTP_POST_VARS['lastname']; $name = $HTTP_POST_VARS['firstname'] . " " . $HTTP_POST_VARS['lastname']; $store_owner = ''; $store_owner_email = ''; $domain4 = trim($domain4); $email_address = strtolower($HTTP_POST_VARS['Email']); $gender = $gender; $email_text .= BLOCK1 . $newsletter_values['newsletter_info_title'] . BLOCK2 . $newsletter_values['newsletter_info_promo1_name'] . BLOCK3 . $newsletter_values['newsletter_info_promo1_url'] . BLOCK4 . $newsletter_values['newsletter_info_promo1_img'] . BLOCK5 . $newsletter_values['newsletter_info_promo1_des'] . BLOCK6 . $newsletter_values['newsletter_info_promo1_url'] . BLOCK7 . $newsletter_values['newsletter_info_promo1_link'] . BLOCK8 . BLOCK9 . $email_greet1 . $firstname . ' ' . $lastname . ', ' . $newsletter_values['newsletter_info_greetings'] . '<br>' . BLOCK10 . '<br>' . $newsletter_values['newsletter_info_intro'] . BLOCK11 . BLOCK12 . BLOCK13 . BLOCK14 . BLOCK15 . BLOCK16 . BLOCK17 . $newsletter_values['newsletter_info_final_para'] . BLOCK18 . $newsletter_values['newsletter_info_closing'] . BLOCK19 . BLOCK20 . $email_address . BLOCK22 . BLOCK23 . 'email=' . $email_address . '&action=view' . BLOCK23A . BLOCK24 . 'email=' . $email_address . '&action=view' . BLOCK24A . BLOCK25 ; tep_mail1($name, $email_address, $subject, $email_text, $store_owner, $store_owner_email, ''); } else { $message .= EMAIL_WELCOME . EMAIL_WELCOME1 . CLOSING_BLOCK1 . $HTTP_POST_VARS['Email'] . CLOSING_BLOCK2 . $HTTP_POST_VARS['Email'] . CLOSING_BLOCK3 . $HTTP_POST_VARS['Email'] . CLOSING_BLOCK4 ; mail(strtolower($HTTP_POST_VARS['Email']), EMAIL_WELCOME_SUBJECT, $message, "From: " . EMAIL_FROM); } if ($HTTP_POST_VARS['origin']) { if (@$HTTP_POST_VARS['connection'] == 'SSL') { $connection_type = 'SSL'; } else { $connection_type = 'NONSSL'; } tep_redirect(tep_href_link($HTTP_POST_VARS['origin'], '', $connection_type)); } else { tep_redirect(tep_href_link(FILENAME_NEWSLETTERS_SUBSCRIBE_SUCCESS, '', 'NONSSL')); } ?>
  4. hello all i install this contrubution and is work fine expect for when a customer add their name i only see last name on the admin not the first name. please help thanks
  5. sonicode i looked at the demo and this is something i would use. is this contrubutions or pay service. thanks pj
  6. hello all i have just install ship in cart v2.0 , it did not worked. i followed all INSTRUCTIONS as it said in install file. all i got was subtotal at the bottom of the page. but Shipping Estimator had nothing in it. what i am doing wrong. thanks pj
  7. hello does anyone have any idea how i can list prices for the all slave product under the the product category. for ex. if i have 4 slave product and the prices are 1. 4.95 2. 6.95 3. 8.95 4. 10.95 i want to list the price under product category image from 4.95 to 9.95 not just one price of the master product. thanks you see this website for ex. click on this
  8. Elwyn thank you i was able to find the answer as per our post. pj
  9. Elwyn Thank you i was able to find the page that had the information. another question when i log on to my site there is no logout link. where i can setup in sts template? thanks
  10. hello all I just installed STS and work fine til i go to product_info.php. my footer show up right under the add to cart bottom. i am also using master product ms2. if anyone have any input please help. thanks
  11. could some please write step where this new update goes " 21 Jun 2004 - MP Attributes" . i try to follow step by step but did not work. thanks
  12. hello all i just install sts for the first and wondering how i can modifiy the header. when i change the header.php nothing happened. what i am doing wrong? thanks
  13. any one know the answer please help?
  14. hello all i am using Shoppe Enhancement Controller and was wondering how can i use master products-ms2 contrubution. thank you pj
  15. hello joe do there anyway to write code so price show up under the master image. pj
×
×
  • Create New...