swguy Posted August 22, 2009 Posted August 22, 2009 If you're using Better Together for osCommerce 2.2: http://addons.oscommerce.com/info/6733 Take a look at the Better Together Promotional Page http://addons.oscommerce.com/info/6960 It builds a page from all your discounts that's linked from the Information Box. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details.
ciscoeuk Posted January 13, 2010 Posted January 13, 2010 i would like to ask if this add-on can be controlled from the admin side of osc or is that a later version? Quote All the best & Kind Regards Richard Armstrong AKA Ciscoeuk all help greatly apprecated
swguy Posted January 14, 2010 Author Posted January 14, 2010 i would like to ask if this add-on can be controlled from the admin side of osc or is that a later version? I have not created an admin panel for Better Together for osCommerce. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details.
swguy Posted March 21, 2011 Author Posted March 21, 2011 The Promotional Page for Better Together is now available for osCommerce 2.3 here: http://addons.oscommerce.com/info/6960 Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details.
Guest Posted May 24, 2011 Posted May 24, 2011 How would I go about editing the image sizes that appear on this page? I'd like them all a uniform size of 150 x 150 Thanks :) Quote
ckpepper02 Posted August 10, 2011 Posted August 10, 2011 (edited) Hi I installed your module, but when I go to activate it in the Admin panel I get Warning: include(/catalog/includes/languages/english/modules/order_total/better_together.php) [function.include]: failed to open stream: No such file or directory in /catalog/admin/modules.php on line 129 Warning: include() [function.include]: Failed opening '/catalog/includes/languages/english/modules/order_total/better_together.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /catalog/admin/modules.php on line 129 Fatal error: Class 'osC_OrderTotal' not found in /catalog/includes/modules/order_total/better_together.php on line 98 I've looked over it a bunch a times and I've installed everything from the package. Is there something I'm doing wrong? I'm using OSC version 2.3.1 Edited August 10, 2011 by ckpepper02 Quote
ckpepper02 Posted August 10, 2011 Posted August 10, 2011 Nevermind. I must have downloaded the wrong version somehow. I got the BetterTogether for 2.3.1 and it seems to be working now. Quote
ckpepper02 Posted August 11, 2011 Posted August 11, 2011 How would I go about editing the image sizes that appear on this page? I'd like them all a uniform size of 150 x 150 Thanks :) Hi Nancy, I'm trying to do this too. I've poked around and it looks like I need to edit the catalog/includes/modules/better_together_promo.php file. Looks as if there is a global function called get_products_image that would need to be edited. Can't find where that variable is though. Quote
ckpepper02 Posted August 11, 2011 Posted August 11, 2011 (edited) Hi Nancy, I'm trying to do this too. I've poked around and it looks like I need to edit the catalog/includes/modules/better_together_promo.php file. Looks as if there is a global function called get_products_image that would need to be edited. Can't find where that variable is though. FOUND IT!!! Line 152 of catalog/includes/modules/better_together_promo.php Change return tep_image(DIR_WS_IMAGES . $product['products_image'], tep_get_products_name($product_id), $width, $height); To: return tep_image(DIR_WS_IMAGES . $product['products_image'], tep_get_products_name($product_id), x, x); x being the number you want to set it to. Edited August 11, 2011 by ckpepper02 Quote
cheapo Posted November 27, 2011 Posted November 27, 2011 I am installing this on CRELoaded. It works except it has the same cat_to_prod problem that the Zencart version has which prompted version 2.2A. I looked and can't seem to debug the issue, could you point me to the fix that was made to the zencart version? (I'm hoping I could make a simple fix and have it work in CREloaded.) Thank you, Mike Quote
Guest Posted November 30, 2011 Posted November 30, 2011 This may be a stupid question, since no one else has asked, but how do you know which is product 1, product 2, etc.? Is there some way of listing them in the order required for this to work? Quote
Leo2 Posted April 5, 2013 Posted April 5, 2013 (edited) FOUND IT!!! Line 152 of catalog/includes/modules/better_together_promo.php Change return tep_image(DIR_WS_IMAGES . $product['products_image'], tep_get_products_name($product_id), $width, $height); To: return tep_image(DIR_WS_IMAGES . $product['products_image'], tep_get_products_name($product_id), x, x); x being the number you want to set it to. This work for product images. What to change to reduce the categories images as well? Also, where to change text style for the page? Edited April 5, 2013 by Leo2 Quote
swguy Posted April 14, 2013 Author Posted April 14, 2013 This may be a stupid question, since no one else has asked, but how do you know which is product 1, product 2, etc.? Is there some way of listing them in the order required for this to work? If your Better Together discount works, then the discount will be shown on the promotional page. If you have a question about Better Together for osCommerce, please post it to the support thread here: http://www.oscommerce.com/forums/index.php?showtopic=335710 Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details.
swguy Posted April 14, 2013 Author Posted April 14, 2013 (edited) This work for product images. What to change to reduce the categories images as well? Also, where to change text style for the page? There is currently no class or id for the text. If you want to set one, modify ./catalog/better_together_promo.php and change where the data is written out, i.e. change echo '<tr><td>'.$marketing_data[$i]['data'] . "<br />"; to echo '<tr><td><span class="your_class"'.$marketing_data[$i]['data'] . "</span><br />"; For the category images, in ./catalog/includes/modules/better_together_promo.php you need to change the calls to tep_image which use get_categories_image() to include the length and width. I should have done it the same way I did products and then you'd only have to make one change. Edited April 14, 2013 by swguy Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details.
Leo2 Posted April 15, 2013 Posted April 15, 2013 (edited) Thank you, style class works, but is it possible to have special class for the discount number? Now I can apply the style only to the whole text. For the category images, in ./catalog/includes/modules/better_together_promo.php you need to change the calls to tep_image which use get_categories_image() to include the length and width. I should have done it the same way I did products and then you'd only have to make one change. That doesn't work for me. I have the following function there function get_categories_image($category_id) { global $languages_id; $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$category_id . "' and cd.categories_id = '" . (int)$category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($category_query); return tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], 80, 80); // return $category['categories_image']; } and it doesn't find any images. I have OnTheFly Thumbnails mod installed too, and it puts "no image" picture with it initial 200*200 size to all the categories pictures, and the size is not changed by the parameters in the return tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], 80, 80). If I use second (commented now) 'return' call, I get the categories pictures with no scaling. Edited April 15, 2013 by Leo2 Quote
ggoran Posted October 3, 2013 Posted October 3, 2013 Hi, I have installed module Better Together and Better Together Promo in osc 2.3.3.4. Everything working ok, except, on promo page, only first discount is shown. for example if I have this : $this->add_prod_to_prod(26, 27, "%", 100); $this->add_prod_to_prod(83, 15, "%", 50); then I see on promo page only discount of 100% it doesn't show product 83 with 50% discount.Same with all combinations of examples provided in ot_better_together.php. thank you rgd, Goxy Quote
swguy Posted October 4, 2013 Author Posted October 4, 2013 Those examples are just examples. You will need to adjust them to actual product and category ids which exist in your store. I just tested with a fresh 2.3.3.4 download and it works fine as long as the items being discounted actually exist. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details.
ggoran Posted October 6, 2013 Posted October 6, 2013 Thank you Scott, I have messed up with file btter_together_promo.php in modules folder and again uploaded same instead of original one. cheers Quote
swguy Posted October 19, 2019 Author Posted October 19, 2019 Phoenix users: please get this mod here: https://apps.oscommerce.com/QSfOw&better-together-promotional-page-phoenix peterpil19 1 Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details.
♥peterpil19 Posted October 20, 2019 Posted October 20, 2019 @swguy Excellent and thank you! Quote CE PHOENIX SUPPORTER Support the Project, go PRO and get access to certified add ons Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design. Download the latest version of CE Phoenix from gitHub here
♥peterpil19 Posted October 25, 2019 Posted October 25, 2019 @swguy Scott, Just a note to say thank you. These modules work perfectly and I have them running in my live shop. Peter Quote CE PHOENIX SUPPORTER Support the Project, go PRO and get access to certified add ons Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design. Download the latest version of CE Phoenix from gitHub here
swguy Posted October 26, 2019 Author Posted October 26, 2019 Thanks for taking the time to write those kind words, Peter. It's really fun for me to see people benefiting from my creative output. peterpil19 1 Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.