-
Re: 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.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
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
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
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...together_promo
Scott
-
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/showpo...7&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
-
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
Code:
'value' => $this->deduction);
Change this to
Code:
'value' => $od_amount['total']);
So the whole block should look like this:
Code:
$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
-
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
-
Re: Better Together Contribution Support Thread
Typically this indicates a brace or bracket imbalance.
-
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
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
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.
Quote:
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.
-
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
-
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
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
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.
-
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
-
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
-
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
-
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
-
Re: Better Together Contribution Support Thread
-
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
-
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.
-
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.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Better Together pairs up items. Once an item is used in a pairing, it's not available for further discounting.
swguy which mod allows for a 5% discount off all other items in a category or group once you have purchased the first item. I wanted to offer 5% off all items in a category once one particular item is purchased for example.
Regards
MG
-
Re: Better Together Contribution Support Thread
No coupons are involved. If they buy the products you have specified as "better together," they get the discount you specify in the setup() function.
-
Re: Better Together Contribution Support Thread
We have several orders in which the coupon (from the coupon mod for a prize or something or promotional) was applied and then they got the better together discount on top of that. Do we have our order total module sort wrong? Better Together was at 292 in the sort.
Quote:
Originally Posted by
swguy
No coupons are involved. If they buy the products you have specified as "better together," they get the discount you specify in the setup() function.
-
Re: Better Together Contribution Support Thread
KSoup, I'm not sure what you're asking here. You can change the sort order, but the discounting modules don't know about each other, so discounts are cumulative.
MikeyG response by PM.
-
Re: Better Together Contribution Support Thread
Thanks!! That answered my question... we just have to make sure a coupon doesn't include an item that may be discounted by better together. :)
Your time is appreciated.
Quote:
Originally Posted by
swguy
KSoup, I'm not sure what you're asking here. You can change the sort order, but the discounting modules don't know about each other, so discounts are cumulative.
MikeyG response by PM.
-
Re: Better Together Contribution Support Thread
Hi Scott,
I seem to be in a minority with regards to this not adding up properly so I am sure it is something I am doing wrong.
When the cart doesn't include the better together discount it adds up correctly, when it does include a BT discount the VAT is wrong?
The settings:
Include Tax: True
Re-calculate Tax: None
Using $this->add_cat_to_cat(67, 68, "%", 20);
The cart prices are displayed including VAT. Site is UK (if that makes a difference)
So have I missed something obvious?
-
Re: Better Together Contribution Support Thread
With these settings, you're grossing up the discount to include the VAT. The VAT is not recomputed.
-
Re: Better Together Contribution Support Thread
But when I set Re-calculate Tax to standard this happens:
Sub-Total: £9,156.93
Table Rate (Best Way): £6.46
Better Together Discount: -£13.20
VAT: £1,363.80 Should be £1362.79
Total: £9,156.93 Should be £9150.19
-
Re: Better Together Contribution Support Thread
Sit tight - tax computation changes coming in 1.3.8; I will align my software to these algorithms which were coded by a genuine UK native. (Thank you, Wilt!)
-
1 Attachment(s)
Re: Better Together Contribution Support Thread
An issue has been reported running Better Together against Zen Cart 1.3.8.
I will release a new version later on; for now, simply replace
includes/modules/order_total/ot_better_together.php
with this file. This is only required for 1.3.8.
Thanks to Rufus for reporting this problem.
Scott
-
Re: Better Together Contribution Support Thread
Hi Scott,
Have these changes now been implemented in 1.38 - if so I will move up from 1.37
Best regards
Javier
-
Re: Better Together Contribution Support Thread
Better Together is a contribution, so it's maintained separately from the core code of Zen Cart. When you upgrade to 1.3.8, you need to grab those fixes. At some point I'll release another version that contains those fixes, but for now, you need to get that file.
-
Re: Better Together Contribution Support Thread
I was referring to message 129 on the previous page. Does 1.3.8 solve the VAT computation issue? If so, I will upgrade now, otherwise I will wait a wee while. Or is it code in your contribution that only works with 1.3.8 not 1.3.7?
Regards,
Javier.
-
Re: Better Together Contribution Support Thread
There are VAT fixes in Zen Cart 1.3.8 (in group discounts, for example) If these fixes prove acceptable to the majority of VAT liable shopkeepers, I will migrate this logic to my discounting contributions and modules (Quantity Discounts, Better Together, etc.)
-
Re: Better Together Contribution Support Thread
Better Together 1.6 is now available in the downloads area; this version includes the interoperability changes required by Zen Cart 1.3.8. No other changes are included in this release.
-
Re: Better Together Contribution Support Thread
Can this be moded to look more like Amazon.com's buy together function as in Images instead of text?
-
Re: Better Together Contribution Support Thread
That's on my list of things to do.
-
Re: Better Together Contribution Support Thread
Any solution to having better together offers but only if people enter a coupon code? Of is there a better solution to this?
I want to offer people coupon vouchers that would then give them access to an offer of buy product a and get product b 30% off etc...
Thanks
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
ctcentralinfo
Can this be moded to look more like Amazon.com's buy together function as in Images instead of text?
Using better together with the buy it now mod show get me close at this point right?
I guess I could get someone to add the image links to it.
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Looks like a great module - couple questions that came up in a variety of posts, but were never conclusively answered:
[1] What's the PHP requirement? PHP5?
[2] Can Better Together v1.6 be used on 1.3.7 ZC Stores? Or should I install v1.5a
Thanks.
-
Re: Better Together Contribution Support Thread
a) PHP4 or 5 are fine.
b) 1.6 i s fine with 1.3.7, and will save you a headache when you go to 1.3.8.
-
Re: Better Together Contribution Support Thread
Hello,
I have your module installed since several months and is working great. But now I want to offer free shipping based on amount, and of course, Free shipping takes the total from cart session, and better together put the discount on total order. So for example if i have some items at 2x1 and unit price is 20 USD, and for free shipping order must be over 60 USD, so for example, If one costumer add to cart 4 products, with the 2x1 offer the total order amount before better together discount will be 40 USD, but free shipping module see the cart session of 80 USD and automatically activates free shipping for this order.
The obvious problem is that is correct that the free shipment module needs to take the total from the cart you need to choose a shipping method before see the total order amount. But Better together module for a more accurate and user friendly usage will work better if is modified to shows discount directly on the cart session automatically. But of course is a contribution, a good one, a free one and this is just a suggestion.
So anybody can let me know who can I force free shipping module (or free rules and free options module) to takes the total from the cart session and subtract the better together total that already exists before the selection of the shipping method in order to have a real order total to calculate the free shipping.
-
Re: Better Together Contribution Support Thread
Hi swguy,
I read through your docos, but sitll have a question.
I want to give Buy 5 get 1 free for all items in category X. (No mixing and matching allowed).
Can I do this with one of your products?
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Seems a great contrib. But I am looking on how to set a discount for buy x, pay y. E.g. buy 4 items from one cat, pay 3 items (cheapest is free). Also buy 8, pay 6.... etc. Is it the language barrier, or isnt there a hint in the docs on howto?
Regards, John
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
paul3648
I've been using this mod for a while and it works great. Now I've got a new set of products and want to give a gift for any purchase of a category item i.e. category to product discount.
Since this is not part of your code, I tried adding
define('CAT_TO_PROD', '4');
and made adjustments through the code, but I get an error on line 35 - something about not expecting a Boolean AND.
Here are my modified lines 33 to 38:
if ($flavor != PROD_TO_PROD &&
$flavor != PROD_TO_CAT &&
$flavor != CAT_TO_CAT) &&
$flavor != CAT_TO_PROD) {
bailout("Bad flavor " . $flavor);
}
Any ideas?
I'm try to having this as well, do you mind sending the info to me as well, thanks,
-
Re: Better Together Contribution Support Thread
hi,
Firstly nice contribution...its really good.
But i have issue with setup function.
Why we have to add PHP code to setup()? Why didn't you put this in the Admin panel?
is there something to setup discount using admin?
plz help me
Thanx
-
Re: Better Together Contribution Support Thread
Please click on Help in the Admin screen for Better Together and see FAQ question number 2.
-
Re: Better Together Contribution Support Thread
Fantastic mod. I'm confident that this is going to help me with sales. My only suggestion (this might have already been mentioned) is that the mod should detect whether a product name starts with a vowel or not. At the moment, it says "get a". Obviously this could be manually changed to "get an" but then it wouldn't work for products not starting with a vowel. I got around this by changing it to "get the", which seems to work ok, but I think "a" and "an" would be better. Just an idea anyway. Great mod, thanks.
-
Re: Better Together Contribution Support Thread
hey thanx for yr repy.....
i have one more query...at time you r providing function for buy 2 get 1 free, now suppose how can i make it buy x(number of items) get y(number of items) for free....
do i have to make new function for this or i have to customize the existing twoforoneproduct() function.
hope to get yr promp reply
thanx
-
Re: Better Together Contribution Support Thread
I've now read through this entire thread and haven't seen my specific problem addressed. I'm building a site on ZenCart which was previously built from scratch using FrontPage and Miva Merchant. The function I'm trying to put in, which brought me to BT, is:
We have one product on which we say, "Free with any book order." Our catalog is very small. We have 3 categories:
1 - Books (5 items)
2 - Brochures (11 items)
3 - Other (3 items)
The "Free with any book order" product is #16 in category 2. After carefully reading your doc, I concluded that the appropriate call was
add_prod_to_cat(1,16,”%”,100);
but when I loaded this to my site and test in the shopping cart, I get no discount at all. The crazy thing is, my first pass was backward - add_prod_to_cat(16,1,"%",100) - and the discount worked, but on the wrong item - it discounted the category 1 item.
The statement I think is correct doesn't discount at all. Before you ask, I've established that the value in master_categories_id is NOT zero. What should I be doing?? I want product 16 in category 2 to be free with purchase of ANY item in category 1.
-
Re: Better Together Contribution Support Thread
There is no "buy category 1, get free product 16 (cat_to_prod) in Better Together. Since your catalog is small, you can do 5 prod_to_prods for each product in category 1 to product 16.
Scott
-
Doesn't show up in Admin
Hi there! I'm trying to install Better Together but - after carefully putting all the files where they're supposed to go, and allowing for the name of my custom installation - it does not show up as an item on Order Total Modules in my admin.
What might possibly be the reason for this? I'm eager to get started with cross-product discounts...
Many thanks!
adam
-
Re: Better Together Contribution Support Thread
Remember that the installation is only step 1; you need to configure the setup() routine to add your pairings. Click the help from admin to learn how to do it. If the problem you're having pertains to pairing between categories, read about categories in the Better Together FAQ.
-
Re: Better Together Contribution Support Thread
Whoops, following up on my previous post, I see that BetterTogether does appear on my cart's sidebar, but when I click it I get a string of error messages warning of missing files:
Code:
Warning: main(includes/languages/english/modules/order_total/ot_better_together.php) [function.main]: failed to open stream: No such file or directory in /home/wholebei/public_html/shop/includes/modules/pages/bettertogether_promo/header_php.php on line 24
Warning: main() [function.include]: Failed opening 'includes/languages/english/modules/order_total/ot_better_together.php' for inclusion (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/wholebei/public_html/shop/includes/modules/pages/bettertogether_promo/header_php.php on line 24
Warning: main(includes/modules/order_total/ot_better_together.php) [function.main]: failed to open stream: No such file or directory in /home/wholebei/public_html/shop/includes/modules/pages/bettertogether_promo/header_php.php on line 25
Warning: main() [function.include]: Failed opening 'includes/modules/order_total/ot_better_together.php' for inclusion (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/wholebei/public_html/shop/includes/modules/pages/bettertogether_promo/header_php.php on line 25
Fatal error: Cannot instantiate non-existent class: ot_better_together in /home/wholebei/public_html/shop/includes/modules/pages/bettertogether_promo/header_php.php on line 26
I can't figure out what this is trying to tell me though. Everything seems to be in the right place....
adam
-
Re: Better Together Contribution Support Thread
Thanks for the reply Scott! I thought I was following the install instructions to the letter: since I don't have a previous install of BT, I went to step 3, installing all the files in the appropriate places, and then read this as the next step:
4. Login to admin and in Modules->Order Total you will see 'Better Together' listed along with all the other modules available.
Nothing about configuring a setup() routine... that's the code I add to my template to enable the linkages, right? Do I have to do that first before BT will even appear on my site or admin?
As for "clicking the help from admin", ummm... what help from admin? My admin? Oh, I'm so discouraged... but hanging in there!
adam
-
Re: Better Together Contribution Support Thread
The introductory material before the install instructions explains how setup works.
If you don't see a help link on Better Together in admin under modules->order totals, you have an old version; please upgrade.
The direct link to the help is
http://www.thatsoftwareguy.com/zenca..._together.html
Yes, you have to add linkages to the setup before you will see it in your order total on checkout page 2. You don't get a discount until you specify some pairings. Please spend an hour or two and read the whole web page and README file. This is an advanced mod and not something you can just do in five minutes.
-
Re: Better Together Contribution Support Thread
Thanks - I'll have a good read through of everything. Guess I was trying to blaze through this process just a bit too fast!
adam
-
Re: Better Together Contribution Support Thread
I have read through this thread and read the Read Me file, but I still do not know in which file the promotions are set up. I'm considering adding this contribution to a friends cart, but I'm not sure if setting up the promotions is going to be too intensive for them.
From a usability standpoint, for someone that isn't familiar w/ the inner workings of Zen, how friendly is this mod?
TIA
Audra
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
audradh
I have read through this thread and read the Read Me file, but I still do not know in which file the promotions are set up.
The setup() function is in the file includes/modules/order_total/ot_better_together.php. If you go to my web page, lots of examples of how the setup() function might be coded are provided. In addition, many other common questions are answered.
The readme file in the contribution is only updated when I release the contribution (which is once in a blue moon now), but the web page is updated constantly as I see patterns in the questions that people ask. That's why the readme file points you to the web page "for more information" (see line 13).
Quote:
From a usability standpoint, for someone that isn't familiar w/ the inner workings of Zen, how friendly is this mod?
I can't answer that question for you. This mod has been downloaded thousands of times. Some people like it, others don't. No one solution is ideal for anyone.
Better Together is a highly configurable, very feature rich system. That's the upside. The downside is that it's not trivial to use. If it makes you feel better, even *I* need to read the documentation again before configuring it for clients. Sometimes I even flub it up - and I wrote the code.
Good luck,
Scott
-
Re: Better Together Contribution Support Thread
Hey thanks Scott, that's just what I was looking for:yes: Sounds like a great mod, but maybe something I will want to set up for them.
-
Re: Better Together Contribution Support Thread
Hi Scott,
My apologies - I just realized that I somehow had a copy of version 1.0 (!) of Better Together... not the latest version 1.6. I was following instructions for the new version but actually installing the old version... no wonder it didn't work!
MUCH easier to install with only three files, not a gazillion, BTW.
And it appears in my ZC admin right away, just as advertised!
Thanks for your patience with this slightly clueless newbie.
Adam
-
Re: Better Together Contribution Support Thread
Scott,
Will your Big Upsell module display my Better Together discounts? I don't have a need for Big Spender or Big Chooser just yet.
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Hi!
I have two items in my client's Zen Cart - one is a book and one is a class.
I have Better Together set up and it works beautifully - if you take a class, you get a discount on the book.
However, there's a problem. If you order them together, you get the book AT the class - thus, no shipping required!
Is there a way to handle this automatically with Better Together? I could have two versions of the book listed, one "with class" and one "without class", and only charge shipping on the latter, but it would be great if it could be done less awkwardly.
Thanks!
Adam
-
Re: Better Together Contribution Support Thread
Better Together doesn't do this sort of thing. I would add code to your shipping module to handle this situation or make the book free shipping.
-
Re: Better Together Contribution Support Thread
OK - I'll figure out another solution. Thanks!
-
Re: Better Together Contribution Support Thread
Hello Scott,
Wondered what might be causing repeated marketing links such as here:-
http://www.thegemtree.com/index.php?...ducts_id=11011
I defined one discount link, but it repeats. I figure I have done something on my setup. Any help is appreciated.
Regards,
Heathenmagic:smile:
-
Re: Better Together Contribution Support Thread
I've never seen that before. I would get a fresh copy of tpl_product_info_display.php and a fresh copy of the contrib in case you've overwritten something accidentally.
-
Re: Better Together Contribution Support Thread
Hello Scott,
Major whoops, please forgive me, my bad. Not sure how the duplicate line got into the file, must have had a mad moment
Thanks for getting back to me.
-
Re: Better Together Contribution Support Thread
Someone asked me the other day how to start, stop or start and stop Better Together discounts on a particular date; detailed instructions have been posted here:
http://www.thatsoftwareguy.com/zenca...discounts.html
Scott
-
Re: Better Together Contribution Support Thread
Hi,
have read the readme.txt, your webpage and all that, installed better together as told, but I got a problem. Do I have to do some changes in the modules.php? From the admin-folder. I get this message when I have installed:
Quote:
Warning: include(/home/3/s/www/includes/languages/norwegian/modules/order_total/ot_better_together.php) [function.include]: failed to open stream: No such file or directory in /home/3/s/www/admin/modules.php on line 173
Warning: include() [function.include]: Failed opening '/home/3/s/www/includes/languages/norwegian/modules/order_total/ot_better_together.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/3/s/www/admin/modules.php on line 173
I'm really stuck with this, and have read the support thread without finding an answer :(
Besides, I like your work, keep up the good work :cool:
-
Re: Better Together Contribution Support Thread
You need to create the language file for norwegian.
Copy
/home/3/s/www/includes/languages/english/modules/order_total/ot_better_together.php
to
/home/3/s/www/includes/languages/norwegian/modules/order_total/ot_better_together.php
Good luck,
Scott
-
Re: Better Together Contribution Support Thread
Hello,
I was hoping you could help me out. I've been using Better Together for a few months now and it has worked wonderfully. For the past few weeks though, the BT discount has not been applied to orders that qualify. Nothing to my knowledge has changed in our shop and the BT promotional text is still being displayed on items in our store... the discounts just do not get added to the totals anymore.
So far, I have tried uninstalling BT and reinstalling. Uninstalling and upgrading to a newer version and reinstalling. Uninstalling and deleting all files and than reinstalling and so fourth. Nothing seems to work. :(
Any ideas what could make BT stop working with order totals?
Best,
Rocco
-
Re: Better Together Contribution Support Thread
dont know what i did, but i managed to fit it! :flex:
i do have one more question though, is it possible to do a discount like this?:
buy X get product made by manufacturer Y for 10% off
Also, how would I go about making all items "buy one get the second at a discount?"
-
Re: Better Together Contribution Support Thread
There's no global command for 2 for 1, you'd have to do each one.
There's no support for manufacturers, just products and categories.
-
Re: Better Together Contribution Support Thread
2 hours! 2 hours and still I can't get this working!
I have been over and over and over the install instructions which are stupidly easy.
I have checked, double checked and even triple cheked everything over and over again but still nothing.
I am using:
zc 1.3.8a
PHP Version: 5.2.2 (Zend: 2.2.0)
The only thing I can thin of is that I am not setting the parameters correctly.
I have the store set up like this:
Cat 1
-- sub cat 1a
-- subsub cat 1b
-- products
Cat 2
-- sub cat 2a
-- subcat 2b
-- subcat 2c
-- products
I want to specify -
Cat 1 - buy 2 get 3rd half price
I tried $this->add_cat_to_cat(1b, 1b, "%", 100);
Cat 2 - Buy 5 get 1 free
$this->add_fiveforone_cat(2c);
Is this correct? If not, help?
Thanks in advance.
-
Re: Better Together Contribution Support Thread
You can't do the category operation you asked about with Better Together. Only parent categories are supported by default.
There is a FAQ section of the help page that explains this and many other common problems:
http://www.thatsoftwareguy.com/zenca...ether.html#faq
There is not support for five for one either; only two for one.
Scott
-
Re: Better Together Contribution Support Thread
Ah, ok.
So even if I tried:
Cat 1
-- sub cat 1a
-- subsub cat 1b
-- products
Cat 2
-- sub cat 2a
-- subcat 2b
-- subcat 2c
-- products
I want to specify -
Cat 1 - buy 2 get 3rd half price
I tried $this->add_cat_to_cat(1, 1, "%", 100);
or
Cat 2 - Buy 5 get 1 free
$this->add_fiveforone_cat(2);
These wouldn't work either (which is actually better for me)?
Thanks for your fast response.
-
Re: Better Together Contribution Support Thread
See previous response. There is no five for one support in better together, and "category" means parent category. Other options exist (see your PM), but you cannot do either of these things with the stock better together. Category behavior in my mods is explained in this page:
http://www.thatsoftwareguy.com/zenca...ry_issues.html
Scott
-
Re: Better Together Contribution Support Thread
I got your PM thanks.
Looking into purchasing.
-
Re: Better Together Contribution Support Thread
Hello
Is there a way to change the language of the text :
I want that "choisissez un produit..... recevez un produit...." appears, instead of "buy an item.... get an item...."
What must I change for it ?
Many thanks
-
Re: Better Together Contribution Support Thread
Other thing : I install Ajax Image Swapper before installing better together... and now, in the product description, I don't have the displaying of image like image swapper does... Is it normal ?
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
liliebrode
Hello
Is there a way to change the language of the text :
I want that "choisissez un produit..... recevez un produit...." appears, instead of "buy an item.... get an item...."
What must I change for it ?
Many thanks
Look at the language files and make the adjustments there. You will need to create includes/languages/french/ ... (you probably already have).
-
Re: Better Together Contribution Support Thread
What's next for Better Together?
- add_cat_to_prod() will be added in the next version.
- The semantics of "category" will be changed so you can use a top level category or a category with subcategories instead of just one with products underneath it. (This is how it works in Big Chooser and Big Spender.) This will affect add_prod_to_cat, add_twoforone_cat, and add_cat_to_cat (as well as add_cat_to_prod, if that is available at the time).
I don't know if these will be released together or one at a time. If you are using other related software (Promotional Pages, Discount Preview, Checkout Candy, Better Together Admin), you may need to upgrade; you will be advised at that time what to do, and everything will be available at once so upgrading won't break your site.
Look for these changes in the third quarter of this year.
Thanks,
swguy
-
Re: Better Together Contribution Support Thread
I was looking at the various discounting add-ons available on your site. In the Big Chooser page, it says:
See it Live: Go to product 5 in my test cart you will see the upsell message that if you buy this product (BladeRunner) or Beloved, you get $100 off a graphics card (such as this one.)
It appears this is no longer configured in the way you describe, nor does it show on the Promotional page.
I didn't see a thread for Big Chooser, here, so I am mentioning this here. Thanks.
-
Re: Better Together Contribution Support Thread
Thanks for the report; I fiddle with these things periodically and sometimes they get out of sync.
There isn't a support thread for Big Chooser; I support it by email. Please email me any further questions.
-
Re: Better Together Contribution Support Thread
Great mod Scott.
However I couldn't get better promo to work correctly no matter what have I tried. Please look at the following link, it seems it stops half way.
http://www.boldersounds.net/index.ph...together_promo
Perhaps it didn't create for downloadable music product?
Thanks in advance.
Chih How
-
Re: Better Together Contribution Support Thread
By the way, I also discovered that the xxx link of "Buy this item, get a xxx at 50% off" points to "product_info" instead "product_music_info", how can I correct it?
Chih How
-
Re: Better Together Contribution Support Thread
This is set up for regular products, not music products. You're going to have to make a bunch of changes to make it work for music.
-
Re: Better Together Contribution Support Thread
So what are the changes need to be made?
I just want to know how complicated they are in order to decide if I should give up.
Thanks.
Chih How
-
Re: Better Together Contribution Support Thread
I am trying to work out if I have got this mod set up right as I believe the tax calculation to be a bit odd.
I can get the set up so that the VAT shows correctly but the discount shows up wrong or I can get the discount to show correctly but the tax then for the order is wrong.
I have been testing this again and again and seem to have a discrepancy with the way tax is calculated. Have I got something wrong.
To simplify this I have got 2 products the same price and set better together to discount the second by 5% UK Vat is 17.5% so:
Sale Price £29.99
Discount @ 5% : £1.50
Sale Price therefore: £28.49
VAT payable is £4.47 on the £29.99 item And VAT on second item is £4.24 i.e on £28.49
Total VAT is £8.71
However I get £8.67 showing in Zencart.
The set up for this is INclude tax true tax calculation - Standard
If I change this to include tax false then the discount is £1.28 but the tax calculates correctly to £8.71.
How is the tax being calculated when the better together module is in place as I cannot get to that figure?
-
Re: Better Together Contribution Support Thread
If this is UK site? As I see zen on my test site when adding gear to the checkout it calculates vat as a total ie:
1- £28.49 = vat £4.99
2- £29.99 = vat £5.24
Total inc vat = £68.72
Vat payable = £10.23
so i would suspect you zone rates are wrong in admin. check your zone rates are active, and are at 17.5 not 7% florida default rate.
-
Re: Where does the code go?
Hi Scott,
I have a quick question...
On the Better Together Admin Panel, you furnish this code:
if (!IS_ADMIN_FLAG) {
require(DIR_WS_MODULES . 'better_together_admin.php');
}
to add to:
includes/modules/order_total/ot_better_together.php
This is all fine and good, especially since I have a "virgin" copy of the ot_better_together.php file. I have found it, located the "set up" code at the bottom, found that most of the lines have been commented out and all of that, BUT.... I don't know php, so where does it go? Do I paste it in between the {} brackets, after them, before them? I am lost! I am so sorry! You've led me to the water but I need help scooping it now. :blush:
This is the set up code at the bottom of the ot_better_together.php file:
function setup() {
// Add all linkages here
// Some examples are provided:
/*
// Buy product 83, get product 53 at 50% off
$this->add_prod_to_prod(83, 53, "%", 50);
// Buy product 83, get one free
$this->add_prod_to_prod(83, 83, "%", 100);
// Buy product 83, get an item from category 14 free
$this->add_prod_to_cat(83, 14, "%", 100);
// Buy an item from category 21, get an item from category 14 free
$this->add_cat_to_cat(21, 14, "%", 100);
// Buy item 12, get a second one free.
$this->add_twoforone_prod(12);
// Buy any item from category 10, get a second identical one free
$this->add_twoforone_cat(10);
// $this->add_twoforone_prod(17);
$this->add_prod_to_prod(26, 27, "%", 100);
$this->add_prod_to_prod(83, 15, "%", 50);
$this->add_prod_to_prod(83, 20, "%", 25);
$this->add_cat_to_cat(14, 14, "%", 100);
$this->add_prod_to_prod(3, 25, "%", 50);
*/
}
}
-
Re: Better Together Contribution Support Thread
Scrapbook supplies, I think the comments in my code make it clear where your mods go:
Code:
function setup() {
// Add all linkages here
// LifeRing linkages - Brochure Sampler free with any book order
// To make this work we had to add a separate link for every item in the Books category
$this->add_prod_to_prod(2,16,"%",100);
$this->add_prod_to_prod(3,16,"%",100);
$this->add_prod_to_prod(4,16,"%",100);
$this->add_prod_to_prod(5,16,"%",100);
$this->add_prod_to_prod(6,16,"%",100);
// Some examples are provided:
/*
// Buy product 83, get product 53 at 50% off
$this->add_prod_to_prod(83, 53, "%", 50);
// Buy product 83, get one free
$this->add_prod_to_prod(83, 83, "%", 100);
It isn't necessarily clear that all the stuff after //Some examples are provided is commented out... I had to ask about it myself.
And, of course, it all has to go inside the closing bracket } for function setup().
Hope this helps.
-
Re: Better Together Contribution Support Thread
I have updated the help on my home page to answer this question more clearly.
Thanks,
Scott
-
Re: Better Together Contribution Support Thread
I "get" that the sample text is commented out. What I didn't and am still not sure about but will just try to figure it out is where it gets pasted; even without the sample text, as there is still a set of parenthesis and then the { } brackets, plus some lines at the bottom starting with $ that are not commented out, unless a $ also comments lines out and I do not know that.
I am not a php guru, I am relatively new to Zen Cart, and have only worked with php for about 1-1/2years, but during this time I have learned that one little symbol in the wrong place has the potential to render the site useless - so I tread carefully.