Forums / Addon Order Total Modules / Better Together Contribution Support Thread

Better Together Contribution Support Thread

Views: 204,516

Results 101 to 120 of 696
8 Sep 2007, 7:40 PM
#101
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Better Together Contribution Support Thread

I can't dup this on php4 or php5.

I use
$this->add_twoforone_cat(21);
at

http://192.168.1.103/swguy_demo_1.3.7/
which is php4.

Cat 21 is gift certificates. Add two OF THE SAME and you'll see the discount. I know the marketing text is misleading; I will fix this in the next release.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

8 Sep 2007, 11:48 PM
#102
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

swguy:

Re 2 - the semantics (as implemented) of add_cat_to_cat(x) are "you get two for one on all items in category x" not "buy one item from category x, get another free". Of course, this is incredibly confusing given that the marketing text suggests the latter behavior. :( Add_cat_to_cat gives you what (I think) you want.

Argh! For those who weren't completely confused by this misstatement - you should have been! (This should have read, "the semantics of add_twoforone_cat(x) ...")
The documentation has been updated to reflect how this actually works, namely:

add_twoforone_cat(x) - "you get two for one on all items in category x"
add_cat_to_cat(x, x, ..) - "buy one item from category x, get another from category x free"

As noted previously, the marketing text is misleading on add_twoforone_cat; this will be fixed in the next release, which will be available shortly.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Sep 2007, 11:05 AM
#103
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

albertomrubio:

Is there a posibility to list all Better Toguether products on one list just like Specials items?

OK, this is now ready. Right now it's just a zip file on my website; I guess if people like it I'll submit it to the download area, but I wanted to keep it out of the main contribution so that people would have a choice of whether or not to use it. Here's the zip:

http://www.thatsoftwareguy.com/promo_better.zip

and if you want to see what it looks like before installing it, here's an example:

http://www.thatsoftwareguy.com/swguy_demo_1.3.7/index.php?main_page=bettertogether_promo

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Sep 2007, 5:54 PM
#104
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

Better Together 1.5 has been released and is available in the download area.
It builds on the introduction of tpl_better_together_marketing.php (as the way to add marketing text to the product info page) in the following ways:

  • The marketing text has been consolidated to a single div named
    betterTogetherDiscountPolicy. This div is only created when it is needed,
    so you are now free to style it with a border. If you have styled
    "discountPolicy" and "discountPolicyReverse" (the previous names), please
    incorporate this name change into your stylesheet.

  • Some wording changes have been made to the marketing text to further
    clarify the discount being offered. If you have made changes to the
    language file, you will want to install the new one and merge your changes.
    In particular, the change noted in post 97

http://www.zen-cart.com/forum/showpost.php?p=426127&postcount=97

is critical for two for one category discounts, and must be installed. Other
changes are required to align the marketing text with how the code actually works.

The core contribution does not include the "Promotional Page" described in the previous
post, which is packaged separately and is available as a free download off my site.

Thank you,
That Software Guy

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 Sep 2007, 7:10 PM
#105
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

If you are using Better Together and want to use Google Checkout, please upgrade to Better Together 1.5a. A bug was detected in the process() routine in ot_better_together.php that makes Google Checkout unable to determine the discount. Of course, you will also need to be running Google Checkout v1.4.1_beta2 (or better), which contains the fixes required to make Order Total modules work.

If you have made significant changes outside of the setup() routine and just want to merge in this change, look for the string 'value'. You will see

   'value' => $this->deduction);

Change this to

   'value' => $od_amount['total']);

So the whole block should look like this:

          $this->output[] = array('title' => $this->title . ':',
                                 'text' => '-' . $currencies->format($od_amount['total'], true, $order->info['currency'], $order->info['currency_value']),
                                 'value' => $od_amount['total']);

Thank you,
That Software Guy

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

22 Oct 2007, 9:18 AM
#106
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

swguy,

this mod was working okay and I have just added a second promo and now I get this error regardsless of how many promos it only goes if I take all promos off the module ot_betther_together.php file

error is

Parse error: syntax error, unexpected $end in /secure/f/mydomain/includes/modules/order_total/ot_better_together.php on line 457

odd it should suddenly occur. I have even taken a new copy of the file from the down load incase I had deleted something by error.

But still get issue. Look forward to your help and thoughts

MG

22 Oct 2007, 9:33 AM
#107
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

Typically this indicates a brace or bracket imbalance.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

22 Oct 2007, 10:02 AM
#108
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Swguy,

thank you for your speedy response. Would that be in the same file as the error (sorry not a php programmer at all)? i.e. the includes/modules/ot_bettertogether.php file rather than any where else and any clues on how to work out (I am assuming I need to go from the start of the file and work out all pairings and then close off accordingly.)

Odd it was working and then I just added an offer and it fell over?

Thanks

MG

22 Oct 2007, 10:33 AM
#109
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

MikeyG:

I am assuming I need to go from the start of the file and work out all pairings and then close off accordingly.
This is not what I would do. Instead, I would get a fresh copy of the file, type in the first discount, test. Type in the second discount. Test. Do not copy and paste; you'll copy and paste your error.
I would also delete all the comments and examples from the setup() function so that what you're doing is clear.

Odd it was working and then I just added an offer and it fell over?
Not odd at all. You're modifying code. Every little bit counts.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

22 Oct 2007, 12:02 PM
#110
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Swguy,

Thanks for the methodology. I did just start from a new file and add one offer but it fell over. I will try again

Regards

MG

22 Oct 2007, 12:13 PM
#111
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

swguy,

Thank you for your enlightened guidence. Have done fresh intall of that file deleted all examples and added two of my own.

Back up and running as you so rightly knew it would be.

Thank you again for helping a complete beginner and so quickly as well with your responses. Much appreciated

Many thanks

MG

23 Oct 2007, 12:23 PM
#112
rcrosier avatar

rcrosier

Zen Follower

Join Date:
Dec 2006
Location:
Vermont
Posts:
128
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

MikeyG:

swguy,

Thank you for your enlightened guidence. Have done fresh intall of that file deleted all examples and added two of my own.

Back up and running as you so rightly knew it would be.

Thank you again for helping a complete beginner and so quickly as well with your responses. Much appreciated

Many thanks

MG

MG,

I think I had that same error, and it was because the editor that I was using OCCASIONALLY adds an extra blank line or carriage return at the END of the file, after the last "?>". Removing that line fixed it. (At least I THINK it was the same error)

I've found that if I use my PHP editor to upload files to my server, it sometimes puts extra carriage returns after EVERY line. Using my WSFTP program to upload them does NOT do this, FYI.

VTstuff.com, Quality gifts and products from Vermont.

29 Oct 2007, 10:06 AM
#113
javier avatar

javier

New Zenner

Join Date:
Jun 2007
Posts:
79
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Hi,

I am looking at your module and it does seem great. But I have a query (in case I have set the thing incorrectly).

In the UK, Vat liable goods carry 17.5% tax. I have these products showing tax inclusive price on the product page. If I want to give a discount on final price of say 49 cents, I have to set the order total to 42 cents and then the checkout discount shows as 42 cents - which is correct before tax is applied to the lesser price, giving a further price drop. That is, giving a 42 cent discount also reduces tax by 7 cents giving an effective discount of 49 cents. (It works and displays fine with tax free goods). I have the module settings Include Tax "false" and Recalculate Tax "Standard". ( The other settings give incorrect results.)

Is there any way of showing the discount including the tax drop element? e.g. "discount including tax where applicable"

Regards,

Javier

29 Oct 2007, 10:14 AM
#114
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

Javier - unless you want to start modifying code, this would be the way to go for now. The core team is working in the checkout area, and when they provide some more switches for handling the intricacies of VAT, I'll support them.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

29 Oct 2007, 10:11 PM
#115
javier avatar

javier

New Zenner

Join Date:
Jun 2007
Posts:
79
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Thanks for the reply Scott. There's no way I am going to try modifying anything :-))

Best regards,

Javier

7 Nov 2007, 9:19 PM
#116
steveo3279 avatar

steveo3279

New Zenner

Join Date:
Nov 2007
Posts:
28
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Hey Scott...thx for the release!

Do you have a tutorial on how to exactly use this utility for a complete rookie?

Thanks,
Steve

10 Nov 2007, 9:05 PM
#118
rwerksman avatar

rwerksman

New Zenner

Join Date:
Sep 2007
Posts:
23
Plugin Contributions:
0

Re: Better Together Contribution Support Thread

Hi Scott,

What I am looking to do is give 10% of any item in multiple categories with the purchase of one item. My code currently looks like this:

$this->add_prod_to_cat(116, 10, "%", 10);
$this->add_prod_to_cat(116, 11, "%", 10);
$this->add_prod_to_cat(116, 12, "%", 10);
$this->add_prod_to_cat(116, 28, "%", 10);
$this->add_prod_to_cat(116, 15, "%", 10);
$this->add_prod_to_cat(116, 6, "%", 10);

My problem is that it find one item that the discount applies to (say in cat 10) and it basically shuts down despite there being other items in the cart that qualify for a discount. Is there a way to get it to apply a discount to correctly?

Additionally (and this might be slightly off) but does category discounts work on the top category (i.e. anything in the store)

Thanks,

Rob

10 Nov 2007, 9:16 PM
#119
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Better Together Contribution Support Thread

Better Together pairs up items. Once an item is used in a pairing, it's not available for further discounting.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Nov 2007, 4:10 AM
#120
ksoup avatar

ksoup

Zen Follower

Join Date:
Jan 2004
Posts:
413
Plugin Contributions:
1

Re: Better Together Contribution Support Thread

Thank you for such an awesome mod. I tried to look through this thread, but didn't see coupons mentioned.

When a customer orders, it appears the better together deal is discounted when they use a coupon....then taken off the order total.