Geotex's Profile
Reputation: 0
Neutral
- Group:
- Community Member
- Active Posts:
- 593 (0.23 per day)
- Most Active In:
- General Support (310 posts)
- Joined:
- 26-February 03
- Profile Views:
- 4,308
- Last Active:
Feb 03 2010 11:25 PM- Currently:
- Offline
Latest Visitors
-
double-happiness 
01 Dec 2009 - 17:37 -
exatek 
30 Sep 2009 - 10:13 -
bargalunan 
16 Aug 2009 - 22:20 -
psintra 
10 Jul 2009 - 14:53 -
m u r 
20 Jun 2009 - 03:47
Posts I've Made
-
In Topic: [CONTRIBUTION] Read More on product_info
Posted 13 Aug 2009
jwilkins, on Aug 12 2009, 07:38 AM, said:One thing I forgot to post was a link to show the Read More module in action! My personal store build is not yet quite complete (so many things to do!!) However, I have populated one Read More field to show its "working state".
Read More on product_info
NIce site. Well laid out, pleasing to view and use.
George
PS here's a little fix for Wish list that will let your user send an email or return to shopping without hitting your menu or their back-button if they do not want to mail the list to someone. Replaces the send email button. Change your graphics accordingly.
<td colspan="2" align="center"> <?php $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a> or '; } echo tep_image_submit('button_send.gif', IMAGE_BUTTON_SEND_EMAIL, 'name="email_prod" value="email_prod"'); ?> </td>
You can see it at my ugly test site, http://www.designerdogregistry.com/ -
In Topic: Searching for a contrib
Posted 13 Jul 2009
ladykaren, on Jul 12 2009, 09:09 PM, said:Hi Sam;
Yes, I've been looking and searching the contribs but haven't found anything yet. I've searched using Specials but haven't trying Discounts. I'll try that term and see what comes up.
http://www.oscommerc...y/contributions,3142/ does what you want except the expire date. Should be easy to add. -
In Topic: Master Products - MS2
Posted 10 Jul 2009
update, I waited too long to edit. I am in the process of switching all http_*_vars to super globals, so some strange things occasionally happen until the transition is complete. Things do not always work the same on the web as they do on the local site. That is why I have a live test site. -
In Topic: Master Products - MS2
Posted 10 Jul 2009
jasonabc, on Jul 10 2009, 10:59 AM, said:Hi guys - I have a scenario and am wondering if Master Products (or Linked Products) is the solution?
I need to "attach" a product with another product when an item is purchased? Lets say, for example, that if you buy product A you would also need to buy product B. Is there any way to put both product A and product B into the cart when you click "buy me" on product A?
thanks!
Jason
I am not familiar with linked products. It is too new, and appears to still be in Alpha stage. Master products can do the job, but not out of the box. Once you get it installed and working, you can mod it to sell sets only. I have done that, an example is on my live test site, www.designerdogregistry.com.
You can see the options in Holly Cow category, standard - Master Test Cow, set only - Master Set of Cow Parts. Clicking on any individual part of either will take you to the appropriate Master.
This is a test site, so any purchases made will not be processed. -
In Topic: Master Products - MS2
Posted 2 Jul 2009
desmoworks, on Jul 1 2009, 11:17 PM, said:Here is where I'm at. In application_top if I run this code:
//Master Products
I can add slave products only with no master (so that is correct), but I can no longer add standard products from product_info.php - I can however add products with no attributes from the product listing page and new_products, etc...
I don't really understand that bit of code, but the problem definitely seems to be related given the function with and without that bit.
Any thoughts on that?
Most of your code looks good. I am not sure where the lines you add/remove should go, if at all. Here is my complete Shopping Cart Actions in Application_top.php. remember that $_POST may need to be replaced with $HTTP_POST_VARS, etc. if your code overall has not bee updated to use super globals.
This code is in use in at least 7 production sites, and works. If it does not work in yours, we may need to look elsewhere for problems. If the denuz txt sections cause a problem, remove them.
// Shopping cart actions if (isset($_GET['action'])) { // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled if ($session_started == false) { tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE)); } if ($_GET['products_set_only']) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO . '?products_id=' . $_GET['products_master'])); } if (DISPLAY_CART == 'true') { $goto = FILENAME_SHOPPING_CART; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { $goto = basename($PHP_SELF); if ($_GET['action'] == 'buy_now') { $parameters = array('action', 'pid', 'products_id'); } else { $parameters = array('action', 'pid'); } } switch ($_GET['action']) { // customer wants to update the product quantity in their shopping cart case 'update_product' : for ($i=0, $n=sizeof($_POST['products_id']); $i<$n; $i++) { if (in_array($_POST['products_id'][$i], (is_array($_POST['cart_delete']) ? $_POST['cart_delete'] : array()))) { $cart->remove($_POST['products_id'][$i]); // denuz text attr // tep_db_query("delete from customers_basket_text_attributes where products_id = " . tep_get_prid($_POST['products_id'][$i]) . " and session_id = '" . $osCsid . "'"); // eof denuz text attr } else { if (PHP_VERSION < 4) { // if PHP3, make correction for lack of multidimensional array. reset($_POST); while (list($key, $value) = each($_POST)) { if (is_array($value)) { while (list($key2, $value2) = each($value)) { if (ereg ("(.*)\]\[(.*)", $key2, $var)) { $id2[$var[1]][$var[2]] = $value2; } } } } $attributes = ($id2[$_POST['products_id'][$i]]) ? $id2[$_POST['products_id'][$i]] : ''; } else { $attributes = ($_POST['id'][$_POST['products_id'][$i]]) ? $_POST['id'][$_POST['products_id'][$i]] : ''; } $cart->add_cart($_POST['products_id'][$i], $_POST['cart_quantity'][$i], $attributes, false); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // customer adds a product from the products page case 'add_product' : if (isset($_POST['products_id']) && is_numeric($_POST['products_id'])) { $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $_POST['id']))+$quantity, $_POST['id']); // denuz text attr // tep_db_query("delete from customers_basket_text_attributes where products_id = " . $_POST['products_id'] . " and session_id = '" . $osCsid . "'"); // $attr_query = tep_db_query("select * from products_text_attributes_enabled where products_id = " . $_POST['products_id']); // while ($attr = tep_db_fetch_array($attr_query)) { // tep_db_query("insert into customers_basket_text_attributes values ('$osCsid', " . $_POST['products_id'] . ", " . $attr['products_text_attributes_id'] . ", '" . addslashes($_POST['products_text_attributes_' . $attr['products_text_attributes_id']]) . "');"); } // eof denuz text attr } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; //Master Products // customer adds multiple products from the master_listing page case 'add_slave' : reset($_POST); while ( list( $key, $val ) = each( $_POST ) ) { if (substr($key,0,11) == "Qty_ProdId_") { $prodId = substr($key,11); $qty = $val; if(isset($_POST["id_$prodId"]) && is_array($_POST["id_$prodId"])) { // We have attributes $cart->add_cart($prodId, $cart->get_quantity(tep_get_uprid($prodId,$_POST["id_$prodId"]))+$qty, $_POST["id_$prodId"]); } else { // No attributes $cart->add_cart($prodId, $cart->get_quantity($prodId)+$qty); } } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; //Master Products EOF // performed by the 'buy now' button in product listings and review page case 'buy_now' : if (isset($_GET['products_id'])) { if (tep_has_product_attributes($_GET['products_id'], (int)$languages_id)) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['products_id'])); } else { $cart->add_cart($_GET['products_id'], $cart->get_quantity($_GET['products_id'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; case 'notify' : if (tep_session_is_registered('customer_id')) { if (isset($_GET['products_id'])) { $notify = $_GET['products_id']; } elseif (isset($_GET['notify'])) { $notify = $_GET['notify']; } elseif (isset($_POST['notify'])) { $notify = $_POST['notify']; } else { tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } if (!is_array($notify)) $notify = array($notify); for ($i=0, $n=sizeof($notify); $i<$n; $i++) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $notify[$i] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] < 1) { tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . $notify[$i] . "', '" . $customer_id . "', now())"); } } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'notify_remove' : if (tep_session_is_registered('customer_id') && isset($_GET['products_id'])) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $_GET['products_id'] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { tep_db_query("delete from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $_GET['products_id'] . "' and customers_id = '" . $customer_id . "'"); } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($_GET['pid'])) { if (tep_has_product_attributes($_GET['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['pid'])); } else { $cart->add_cart($_GET['pid'], $cart->get_quantity($_GET['pid'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; } }
My Information
- Age:
- 66 years old
- Birthday:
- July 21, 1943
- Real Name:
- George Snell
- Gender:
-
- Location:
- Houston, TX USA
- Add-On Dev:
- Yes
Contact Information
- E-mail:
- Click here to e-mail me
- AIM:
-
geotex
- MSN:
-
geotex@hotmail.com
- Website URL:
-
http://www.ameriwebs.net
- ICQ:
-
322090642
- Yahoo:
-
geotex@sbcglobal.net
Friends
Geotex hasn't added any friends yet.

Sign In
Register
Help

Find Topics
Find Posts
Comments
Geotex has no profile comments yet. Why not say hello?