2gether + SPPC Compatible v2.04.1 03/02/2010 by Roaddoctor 2gether discount v2.04 by Surfalot + SPPC compatible (all credit to Jan Zonjee) 3/2/2010 v2.04.1 You should only need this version of /includes/modules/2gether.php if you have Seperate Prices Per Customer (SPPC) installed; but the file will work with non SPPC stores and does include other fixes. This is not the complete package, this package only contains /includes/modules/2gether.php and this readme.txt BACKUP your files before making any changes! New installations: This is not the complete package. First install v2.04 8/4/2009 by Surfalot, then replace: /includes/modules/2gether.php with the file in this package. Upgrade: Simply replace this one file: /includes/modules/2gether.php with the file in this package. Changes: - SPPC compatible! - Store Specials now carry into 2gether, independent of 2gether offers. - Bug fix to $_GET - Show images as link to product instead of popping up the image - modifed $products_options_query with . " order by pa.options_values_price, pa.products_attributes_id" as a sort order fix (this can be removed if not wanted) Enjoy! Support: http://forums.oscommerce.com/index.php?showtopic=189495 2gether discount 2.04 08/04/2009 by surfalot This is a complete package. + Changed the functionality to allow one item to be paired with many other items. So offers like Buy any style Hat and and style Scarf together, get a discount. + Removed some cross contribution contamination + Updated all the files to osCommerce Online Merchant RC2a + Finished the Attributes compatibility started by jaderrosa 31 Dec 2008 + Added compare file for the shopping cart addon from amanda + Added missing text definition in the admin language files. + Added required GNU release info + Removed stock check in application_top.php since that ends up overriding the shop's settings. + Started changelog Support: http://forums.oscommerce.com/index.php?showtopic=189495 2gether discount 2.03 12/31/2008 by jaderrosa I added support for attributes in this mod. I not tested 100% but I think there are no bugs. For update look in catalog/includes/application_top.php for: $cart->add_cart($HTTP_POST_VARS['buy_tinn_add'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['buy_tinn_add'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); Replace for: $cart->add_cart($HTTP_POST_VARS['buy_tinn_add'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['buy_tinn_add'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id_b']); Replace catalog/includes/modules/2gether.php 2gether discount 2.02 02/25/2008 by Job -taxfix from 2.01 gave wrong output, put in fix found in forum -added dutch languagefiles -corrected "action=assiungi" (replaced by "action=add_product") in modules/2gether.php -replaced hardcoded text with languagedependent text in modules/2gether.php 2gether discount 2.01 01/12/2008 by luckyno 2gether discount 2.01 -tax fix applied - tag position changed in the included product_info.php file -instructions updated -italian and german languages added -stylesheet classes added LAST MINUTE FIX 11/25/2007 by HairyPotter The product_info.php is in fact a big that already exist on product_info.
If you fail to do that, your customers will not be able to add just one of the products to the cart and all buttons on product_info.php will add both products to the cart.
solution:
look for at the very end of product_info.php and remove it.
add just after :
that will make sure that the normal add to cart form is closed before the 2gether form is opened.Tax Calculation Fix 11/07/2007 by futurestar This will resolve the way that tax is calculated. With the previous versions, tax was calculated BEFORE the 2gether discount, which causes customers to be charged too much tax. This is a simple fix and I give FULL credit to "Marizka" for this fix. I simply posted it here because nobody has posted the fix here or in the support forum. Only 1 file to update: includesmodulesorder_totalot_together.php Enjoy! 2gether discount FULL ver2 05/20/2007 by jlseet This is like the package below but with better install instructions. Thank you Amanda! 2gether full version file 01/21/2006 by jenso You might find a double post of this upload, the reason is that the first file was just a little of 300K, so this is the same but just under 300K. Sorry!!! ------------------------ This should be a full version, including all files and most of the changes mentioned in the forum or posted here. There is NOTHING NEW here. I only tried to put it all together for you to download in one file. what is in here? *** the needed files to make 2gether work on your store. *** the changes from 16. Jan *** as extra the change for your shopping cart including the screen shots. *** an instruction to add quantity input to your product_info.php and to make it work with this contribution. Language file to go with latest ot module 01/16/2006 by boxtel replace file includes/languages/modules/english/2gether.php with this file New display and ot_order_total modules 01/16/2006 by boxtel replace includes/modules/2gether.php replace includes/modues/order_total/2gether.php with ot_together.php uninstall & reinstall display module V2 01/15/2006 by boxtel version 2 New display module 01/15/2006 by boxtel should work for default installs with tax with option for product original prices 1 query reduction (addon) shopping cart reference (screenshots) 01/14/2006 by boxtel so you know what it is supposed to look like (Addon) shopping cart reference 01/13/2006 by boxtel add 2gether reference to shopping_cart.php (addon) disable entry if product ordered 01/13/2006 by boxtel if you wish to automatically disable the 2gether entry if 1 of the products is sold (together or not) you add this code to checkout_process.php: // disable 2gether products entry $together_query = tep_db_query("select status from " . TABLE_2GETHER . " where status = 1 and (product_1_id = '" . tep_get_prid($order->products[$i]['id']) . "' or product_2_id = '" . tep_get_prid($order->products[$i]['id']) . "')"); if (tep_db_num_rows($together_query) > 0) { tep_db_query("update " . TABLE_2GETHER . " set status = 0 where status = 1 and (product_1_id = '" . tep_get_prid($order->products[$i]['id']) . "' or product_2_id = '" . tep_get_prid($order->products[$i]['id']) . "')"); } correction and screenshots 01/13/2006 by boxtel missed in the instructions: in application_top.php add in the big case : case 'buy_tinnx' : if (isset($_GET['products_id'])) { if (tep_has_product_attributes($_GET['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['products_id'])); } else { if (tep_get_products_stock($_GET['products_id']) > 0) { $cart->add_cart($_GET['products_id'], $cart->get_quantity($_GET['products_id'])+1); } } } if (isset($_GET['buy_tinn_add'])) { if (tep_has_product_attributes($_GET['buy_tinn_add'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['buy_tinn_add'])); } else { if (tep_get_products_stock($_GET['buy_tinn_add']) > 0) { $cart->add_cart($_GET['buy_tinn_add'], $cart->get_quantity($_GET['buy_tinn_add'])+1); } } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; so that both products are added to the basket. 2gether discount 01/13/2006 by boxtel 2gether discount: -link 2 products together with a money or percentage discount. -zero discount displays as a recommendation like a 1on1 xsell -Discount is given at checkout.
As experienced osCommerce Experts, we are glad to help you to install this addon. The process is as follow:
You placed an order of this addon or other addons, checkout and receive an email notification of order status
Or you can contact us directly using email form , asking us to install this addon for you
Once you and we have agreed to start, please send us FTP access by email
You will be updated of the installation status
You may ask for customization jobs of this addon
You Risk Nothing: No Upfront Payment Required
Our
NO RISK POLICY is clear. You pay only for the successful completion of the installation. If you are not satisfied or we are unsuccessful, your site will be returned to its previous working state and
you pay nothing! NOT A PENNY!
Once you are satisfied with our help, you can pay us through Paypal.
Add to Cart: