Jump to content



Photo
- - - - -

[Contribution] Better Together Discounting Module


  • Please log in to reply
64 replies to this topic

#41   swguy

swguy
  • Members
  • 183 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 26 February 2011 - 16:00

It's hard for me to know the effect of adding other mods on top of mods. As a general matter, these things don't know about each other so they might interoperate in unexpected ways.
Contributions: Better Together and Quantity Discounts, for osCommerce 2.2, 2.3.x and 3.0. See my profile for more details.

#42   swguy

swguy
  • Members
  • 183 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 21 March 2011 - 04:22

If you are upgrading to osCommerce 2.3 and you would like to use the Better Together Promotional Page, please note that the 2.3 version is separate from the 2.2 version; the 2.3 version is at

http://addons.oscommerce.com/info/7933

(The 2.2 version is at http://addons.oscomm....com/info/6960.)

Support thread for the Promotional Page is at

http://forums.oscomm...howtopic=343432
Contributions: Better Together and Quantity Discounts, for osCommerce 2.2, 2.3.x and 3.0. See my profile for more details.

#43   nnclyn

nnclyn
  • Members
  • 265 posts
  • Real Name:Nancy O

Posted 24 May 2011 - 18:30

I am using the 2.2 contrib on a OSC 2.2

ON first load of a better together product I get the following error:

Warning: require_once(includes/languages//modules/order_total/ot_better_together.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxx/public_html/xxx/better_together_marketing.php on line 5

Fatal error: require_once() [function.require]: Failed opening required 'includes/languages//modules/order_total/ot_better_together.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/xxx/better_together_marketing.php on line 5

On refreshing the page everything is fine. I've tried it on several browsers.

What do I need to correct?
Thanks
Nancy

#44   nnclyn

nnclyn
  • Members
  • 265 posts
  • Real Name:Nancy O

Posted 24 May 2011 - 20:51

Just wanted to addd that I see there is a // showing in front of modules in the path above. I can't for the life of me figure out where that is coming from and why it only effects the loading of the page the first time you view it /sad.gif' class='bbc_emoticon' alt=':(' />
Nancy

#45   swguy

swguy
  • Members
  • 183 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 25 May 2011 - 00:12

Just wanted to addd that I see there is a // showing in front of modules in the path above. I can't for the life of me figure out where that is coming from and why it only effects the loading of the page the first time you view it /sad.gif' class='bbc_emoticon' alt=':(' />


The // suggests the language has not been defined in your installation, for some reason. It should be /english/.
Contributions: Better Together and Quantity Discounts, for osCommerce 2.2, 2.3.x and 3.0. See my profile for more details.

#46   ckpepper02

ckpepper02
  • Members
  • 27 posts
  • Real Name:Chris
  • Gender:Male
  • Location:USA

Posted 10 August 2011 - 19:59

Hey SWGuy,

Great job on the module first off.

I've installed and setup the module, but I'm not getting the discount showing up on order confirmation page. I have the sort order unique as specified in the instructions, but no dice.

Any ideas?

#47   swguy

swguy
  • Members
  • 183 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 11 August 2011 - 05:50

Looks like you got it working per your update to the other thread:

http://forums.oscomm...omotional-page/
Contributions: Better Together and Quantity Discounts, for osCommerce 2.2, 2.3.x and 3.0. See my profile for more details.

#48   ckpepper02

ckpepper02
  • Members
  • 27 posts
  • Real Name:Chris
  • Gender:Male
  • Location:USA

Posted 11 August 2011 - 15:09

Looks like you got it working per your update to the other thread:

http://forums.oscomm...omotional-page/


Actually this is a separate issue. I was able to install the module, but it still is not showing up on the order confirmation page. It does show up on the correct product info pages though. I'm going to retrace my steps and see if I missed anything, but just wanted to know if you knew of anything off hand?

#49   ckpepper02

ckpepper02
  • Members
  • 27 posts
  • Real Name:Chris
  • Gender:Male
  • Location:USA

Posted 11 August 2011 - 15:16

Actually this is a separate issue. I was able to install the module, but it still is not showing up on the order confirmation page. It does show up on the correct product info pages though. I'm going to retrace my steps and see if I missed anything, but just wanted to know if you knew of anything off hand?



...and I'm just plain silly. I was expecting the product to automatically add to the cart when the linked product was purchased. Sorry. My misunderstanding. It IS REALLY WORKING now.

Thanks for your hard work on this contrib.

#50   Usfanshop

Usfanshop
  • Members
  • 13 posts
  • Real Name:Dominique Reitinger
  • Gender:Female

Posted 21 August 2011 - 08:30

Dear swguy,

this is just what I#ve been looking for - THANKS!
However, I can't get it to work. My shop runs in German, so I added the file that was meant for the english directory to the german one as well. Correct?
Or is there any other way to make sure it works in German.
I'm a novice, so please excuse my dummy-question: How do I know what number a product or category has? I tried the obvious and took the numbers the way
they are displayed - or is it something I need to check via the PHPmyAdmin? www.usfanshop.at

Please help, I need this done.

Regards,

usfanshop

#51   swguy

swguy
  • Members
  • 183 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 21 August 2011 - 11:26

The number of a product can be seen on the product info page as the products_id part of the URL.
The number of a product's category is trickier. Here's the FAQ:

http://www.thatsoftw...gether.html#faq


Q: How do I determine what the category id is?
A: In admin->catalog, single click on the category you're interested in. In the address bar of your browser, you will see something like

categories.php?cPath=3&cID=11

If you were to double click on it, you'd see something like

categories.php?cPath=3_11

The category you want to use is "11".

In the same way, in the catalog you can hover over this category in the categories sidebox and see

catalog/index.php?cPath=3_11

This re-confirms that the category is "11."
Contributions: Better Together and Quantity Discounts, for osCommerce 2.2, 2.3.x and 3.0. See my profile for more details.

#52   swguy

swguy
  • Members
  • 183 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 10 November 2011 - 12:07

Better Together 1.0.2 for osCommerce 2.2 and 2.3.1 has just been uploaded. This version provides "VAT" style tax recalculation; no other changes were made.
Contributions: Better Together and Quantity Discounts, for osCommerce 2.2, 2.3.x and 3.0. See my profile for more details.

#53   HuskyDog

HuskyDog
  • Members
  • 34 posts
  • Real Name:Ian Beadle

Posted 21 November 2011 - 07:10

Hi There,
I have installed Better Together on my local computer (WAMP) and it works fine, but once I add exactly the same code to the online version of my site I get this:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /..../..../public_html/includes/modules/order_total/ot_better_together.php on line 418

Can anyone help me here please? I just can't figure this out.

#54   HuskyDog

HuskyDog
  • Members
  • 34 posts
  • Real Name:Ian Beadle

Posted 21 November 2011 - 13:17

Sorry, I should have explained more than I did above. The Warning: mysql_num_rows... shows on the product_info.php page. oscommerce version 2.31. The discount is actually shown correctly on checkout confirmation though.

I tried installing Better Together 1.0.2 using the same exact code that works perfectly on a local site on another online site and there nothing at all shows up on the product_info.php page in this case. Server there is PHP Version 5.2.17 / MySQL 5.1.56 if that is important.

I also tried using the older version (1.0.1) of Better Together but same result. I'd really appreciate some help here if anyone has a clue what's happened.

#55   HuskyDog

HuskyDog
  • Members
  • 34 posts
  • Real Name:Ian Beadle

Posted 23 November 2011 - 12:49

I've sorted this problem out. Turns out that it did not play well with another contribution - MySQLi Extension (ver. 0.1-Beta) for OsC 2.x (http://addons.oscommerce.com/info/8168). I disabled the mysqli and all works fine again. Great contribution Scott, thanks very much for this.

#56   OpusVista

OpusVista
  • Members
  • 12 posts
  • Real Name:Ola Forslin
  • Gender:Male
  • Location:Kristianstad, Sweden

Posted 19 February 2012 - 12:37

Hello!

This is the contribution i've been looking for. But i cant get it to show in my cart. Only in the checkout. I am using the 2.2.
Can anyone help me?

#57   swguy

swguy
  • Members
  • 183 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 18 September 2012 - 14:29

It doesn't show in the cart unless you use Discount Preview (see the help).
Contributions: Better Together and Quantity Discounts, for osCommerce 2.2, 2.3.x and 3.0. See my profile for more details.

#58   Leo2

Leo2
  • Members
  • 41 posts
  • Real Name:Vladimir

Posted 05 April 2013 - 08:56

I installed v.1.0.2 on 2.2rc2
It works, but not the way I need. It adds discount for just 1 qualified item. For example, if I add 10 units with 1 linked product the discount is given only for 1 unit. If same 10 unuits are bought with 2 linked products, I get discount for 2 units.

How to make it to calculate discount for all 10 items in the order? So, if I give discount 10% for product XX if product YY is ordered, and a client orders 10*XX and 2 or 1 of YY, then he should get diiscount 10% for ALL 10 XX products, not just for 2 or 1.

Another question - is it possible to give discount for product or category if another product of specific manufacturer from specific category is bought together?

Edited by Leo2, 05 April 2013 - 08:57.


#59   14steve14

14steve14
  • Members
  • 3,529 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Dorset UK

Posted 05 April 2013 - 09:13

@Leo2

You may be better off installing something like a quantity discount mod. The mod you have installed is working as it should.

You have linked product A to product B so that when they are purchased as a set, a discount applies. Buying 10 of one item and only 2 of another is not 10 full sets so the discount will not apply.
REMEMBER BACKUP, BACKUP AND BACKUP

Don't take life too seriously. no one gets out alive anyway

#60   Leo2

Leo2
  • Members
  • 41 posts
  • Real Name:Vladimir

Posted 05 April 2013 - 10:01

I have "simple price breakdown" module installed already, adn it works for quantity discount purpose. I want to give more discount if people buy more products. The Better Discount uses quantity discounted price to calculate the discount, which is OK, but only for 1 item, not for all.

Many of my bundled products should be not 1+1, but 1+5 or 1+10, and I need to have discount on sum, not on one item. Since the discount is calculted at checkout_confirmation step, I think is should be possible to calculate discount for subtotals, not for 1 item.

And yes, I aldready have Bundled Products contribution installed /smile.png' class='bbc_emoticon' alt=':)' />