-
Re: Better Together Contribution Support Thread
Hi Scott,
function setup() {
$this->add_prod_to_prod(6753, 6744, 'X', 0);
$this->add_prod_to_prod(6744, 6753, 'X', 0);
$this->add_prod_to_prod(6585, 6589, 'X', 0);
$this->add_prod_to_prod(6589, 6585, 'X', 0);
and on and on....on...and...on and one more on...ok 7,000 more.
I wrote a excel sheet to generate the numbers and insert it into a list, as such, up to the highest current product number and create the opposite set.
Items that do not have a actual item attached to them generate a "S O L D" image and link to the Newest Items Page.
The problem I am having is even if a item is sold (0 quantity) AND/OR the status of the item is OFF. The item is still showing the image in my cross-sell, BUT when clicked it obviously would go to the Newest Items Page since it is not available. Seeing the image, a customer would expect to go to the product rather than the Newest Items List, I'm sure annoyed.
Great work by the way with all of these plug-ins, they are absolutely the best.
Thanks
GJW
-
Re: Better Together Contribution Support Thread
OK so looking at
$this->add_prod_to_prod(6753, 6744, 'X', 0);
if you're on 6753 you don't want to show 6744 if it's sold out, right? Then go to includes/modules/order_total/ot_better_together.php and modify the function get_xsell_info(). The block you want is on 676-682 of the latest update.
Before
Code:
if ($match == 1) {
$info['image'] = $second_image;
$info['link'] = $disc_href;
$info['ident'] = $li->ident2;
$info['name'] = $name;
$response_arr[] = $info;
}
add this block of code
Code:
// Don't display out of stock products for xsell if not purchaseable
if ( ($match == 1) &&
(($li->flavor == PROD_TO_PROD) || ($li->flavor == CAT_TO_PROD)) ) {
if ( (zen_get_products_stock($li->ident2) <= 0) &&
(STOCK_ALLOW_CHECKOUT == 'false') ) {
continue;
}
}
-
Re: Better Together Contribution Support Thread
Scott,
That worked great. Thank you, I would have never figured that one out.
Just a note regarding that, I'm using prod_to_prod, so I changed it so it reflected that function.
Changed CAT_TO_PROD To PROD_TO_PROD
Thanks again Scott.
GJW
-
Re: Better Together Contribution Support Thread
You are correct - I just updated the example code above.
-
Re: Better Together Contribution Support Thread
Hi Everyone...
I have a lady asking me about this module or one like it. She is wanting to install a BOGO type deal but I need to know if this module is "user friendly" enough that I can install it and leave her alone with it or does this module require manual coding for discounts and BOGO's?
I have looked into all kinds of other modules...if any one can point me in the right direction that I might be able to offer this installation without much supervision or a module available that I can be licensed to use on multiple installs if need be.
Thanks. :)
-
Re: Better Together Contribution Support Thread
The module itself requires file edits to set the discounts. The additional admin panel makes it simple.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
jeking
The module itself requires file edits to set the discounts. The additional admin panel makes it simple.
That's what I thought...I was looking for something that I could possibly use commercially that offers me a license to use on multiple sites and not have to leave my customers with trying to figure out how to change or add code themselves. Thanks for your response.
-
Re: Better Together Contribution Support Thread
Hi,
I have installed the latest files but I can't see under the Tools menu. I have the zencat 1.5.1.
I've read on your site that I need to install 'Run the bt_admin_upgrade.sql file against your database.' There was NO 'bt_admin_upgrade.sql ' included in the files when I had downloaded them.
What's wrong?
-
Re: Better Together Contribution Support Thread
I have also installed the the old paid version 2.0 and I still cannot see it in the Admin Tools.
Can you please help. Thanks
-
Re: Better Together Contribution Support Thread
See PM. Please contact me privately, not over the forum, for help with paid work.
-
Re: Better Together Contribution Support Thread
Hi there,
Just read the posts and have used my "search tool" in Chrome, but I couldn't see an answer.
Can this be used, or altered to allow for previous orders.
The situation:
My customers have purchased (A) over a 2yr period. We are now upgrading the product to version (B), we want our existing customers (A) to be able to purchase (B) at a discounted price.
A = $20
B = $30
Customers of (A) need only pay $10 for (B)
We can do a work around, mail out to the customers a coupon code (run an SQL Report then mail merge) with a discount, however it runs the risk of abuse, even with safeguards in place (limited number, limited use etc).
However I like this module and have use of it down the track and over the next few months we will be doing this for a number of our products.
Thank you.
v1.51
-
Re: Better Together Contribution Support Thread
No, it doesn't take into account historical purchases, only the current purchase.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
No, it doesn't take into account historical purchases, only the current purchase.
Thanks Scott,
Is there a way to make a work around, or insert some code to allow it to check for historical purchases?
Cheers :)
-
Re: Better Together Contribution Support Thread
It's software. You can make it do whatever you'd like. :)
-
Re: Better Together Contribution Support Thread
Ok, I have products that are linked into multiple different categories, is there a way to have a product have several different Better Together options?
Live situation:
* I have a bar of soap that is in "Bar Soap", "Porefection", and "Friday Cyber Week Sale" categories
* because it's in the category "bar soap", I want a cross sell to a product (an accessory that should be a cross sell for ALL bar soaps)
* because it's in the "Porefection" category, I want to cross sell all products in that category with all other products in that category. The other items in this category are NOT bar soap.
* on Friday, I what everything in the "Porefection" category to be Buy one Get one half price. BUT ALSO, have the soap keep the cross sell to the accessory.
Some of my products have up to 6 linked categories!!!!
Thanks!
Leslie
-
Re: Better Together Contribution Support Thread
Better Together uses the master categories id field in the products table; it doesn't know about linked categories.
-
Re: Better Together Contribution Support Thread
I would like to do the following:
Buy product A and get $5 off on 1 of product B
Buy product A and get $10 off on 2 of product B
If you wish to buy more of Product B, you can but at the normal price
Is this possible with the current module and if so what must my function setup look like?
Currently my function setup looks as follows:
$this->add_prod_to_prod(89, 91, '$', 10);
-
Re: Better Together Contribution Support Thread
you cannot do this with Better Together. You can do:
Buy product A and get $5 off on 1 of product B
or
Buy product A and get $5 off on any number of product B (using the one-to-many behavior).
That's all.
-
Re: Better Together Contribution Support Thread
I'm not sure if this has been mentioned.. but it seems that after editing the order manually (adding new products) the discount adds to the total amount instead of being deducted.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
you cannot do this with Better Together. You can do:
Buy product A and get $5 off on 1 of product B
or
Buy product A and get $5 off on any number of product B (using the one-to-many behavior).
That's all.
I saw the second but its not going to suit what I have in mind.
Thanks Scott
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
naczyls747
I'm not sure if this has been mentioned.. but it seems that after editing the order manually (adding new products) the discount adds to the total amount instead of being deducted.
Some versions of Edit Orders require tweaks to work correctly with my discount mods. (I thought the latest Edit Orders had fixed this - are you running the most recent mod on the most recent Zen Cart?) Here are the original instructions I posted on fixing this:
http://thecartblog.com/2009/12/21/ze...counting-mods/
-
Re: Better Together Contribution Support Thread
A small change was made to Better Together to allow the new One to Many feature to properly interoperate with Checkout Candy. If you don't use Checkout Candy, you don't need this update.
The error looks something like this:
Code:
PHP Warning: Missing argument 3 for ot_better_together::get_discount(), called in /includes/functions/extra_functions/checkout_candy.php on line 22 and defined in /includes/modules/order_total/ot_better_together.php on line 295
Version 2.5.1 of Better Together fixes this issue.
-
Re: Better Together Contribution Support Thread
Hi SWGUY, Thanks for this very beautiful mod on Zencart.
I have installed this recently and I have a small issue (instead clarification). I am using the this code in my setup function: $this->add_cat_to_cat(5, 2, "$", 150); But if any product in Catagory 2 has price less than 150 (lets say 100), then I expect to have only $100 to be reduce from the total amount. But in this case $150is reduced from the Order total, which is not good for my newly started business :)
However, I tested for %, (5, 2, "%", 80), and it works fine, as it reduces 80% from the product price of catagory 2.
Not sure if it is designed to work in this way only.
-
Re: Better Together Contribution Support Thread
This configuration
$this->add_cat_to_cat(5, 2, "$", 150);
reduces the order total by $150 if an item from category 5 and an item from category 2 are in the cart. It has no idea that your business is newly started.
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
This is only relevant to people who use the One to Many feature. If you don't, please ignore this post.
Please note that if you use the One to Many configuration, you should NOT be doing Buy one Get one offers on identical items (because the one to many behavior will cause your discount to double). So don't do things like
$this->add_prod_to_prod(17, 17, "%", 50); // Buy one product 17, get another product 17 at half off
if you want to use One to Many; make the discounted item different from the condition item.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Question 1: see PM.
Question 2: The cross sell display uses the columnar display template; perhaps you have customized that?
Mine also stack vertically, not in a 3x horizontal grid. I didn't customize anything. What might be the problem?
-
Re: Better Together Contribution Support Thread
Better Together works fine in Zen Cart 1.5.2 and 1.5.3.
-
Re: Better Together Contribution Support Thread
Please I need an info :
Can this module link all products from an entire category to a product ( or more products) from another category ?
Example: I have Watches category and Boxes category. If you buy a watch you can choose a free box from category boxes. I would like to display this option on watch product detail page.
-
Re: Better Together Contribution Support Thread
You can do cat to prod or cat to cat, but not cat to multiple prods with a single statement (of course you could have multiple cat to prod statements).
-
Re: Better Together Contribution Support Thread
If I can have cat to cat ( boxes are in a category ) I can't have let's say Watch + (choose: box1 or box2 or box3 for free ) ?
thx
-
Re: Better Together Contribution Support Thread
That is correct - you cannot do that with Better Together. See you PM.
-
Re: Better Together Contribution Support Thread
Not sure if this was answered somewhere in this thread, but there's 4 pages so I don't know that I'm going to look through all of that. ANd this is probably a really dumb question, but where exactly am I supposed to put the code to create a BOGO 50% sale? And exactly which code am I supposed to be using? I tried this:
$this->add_cat_to_cat(1,2,3,4,5,6,7,8,9,10,11,12,"%", 50)
but it doesn't work. I'm sure I'm having a brain fart, but I don't know exactly what to do. Help please! :blush:
-
Re: Better Together Contribution Support Thread
add cat to cat has 4 parameters. So if you want to have a Buy one, get one 1/2 off sale on cat 1, do
$this->add_cat_to_cat(1,1,"%", 50);
For cat 2, do
$this->add_cat_to_cat(2,2,"%", 50);
etc.
-
Re: Better Together Contribution Support Thread
I want to have a BOGO 50% on everything no matter what category it's in. And I have 7 categories, do I need to specify each category seperately or is there a function that includes everything? Also, I'm not sure where I should be putting the code.
-
Re: Better Together Contribution Support Thread
OK, I realize NOW you can't see the discount until the 2nd page of checkout, but it's not doing what I want. The discount that I'm seeing is 50% off the total cart. I want 50% off a 2nd item. As an example I have 2 items from different categories. I want the item with the cheaper price to be discounted. Here's a link to my site so you can see what's happening if necessary. Thanks for your help! :D
http://thecuterie.com/
-
Re: Better Together Contribution Support Thread
Better Together does discount the least expensive item in the pair, not the entire cart. See your PM for other ideas.
-
1 Attachment(s)
Re: Better Together Contribution Support Thread
This was originally posted in 'Built-in Shipping and Payment modules' but kobra suggested I move it here.
I am on ZC 1.5.4 using the Better Together 2.5.1 mod and the built-in ZC Authorize.net (AIM) payment module.
I have a Better Together deal defined so if a customer purchases item A, they receive a $1.00 discount off as many of item B as they want to purchase. Recently, a customer purchased item A and 10 of item B which should have given a total discount of 10x$1.00=$10.00. The appropriate discount was reflected in the shopping cart and on the completed order in ZC, but the amount charged to the customer's credit card did not reflect the discount. My order total modules are shown below. I checked my error logs and found nothing there that indicated a problem. What could be causing this error?
Attachment 15792
-
Re: Better Together Contribution Support Thread
One more key detail. The error occurred with the first (and only) customer who used the coupon. This isn't something that worked previously, but now doesn't.
-
Re: Better Together Contribution Support Thread
What coupon would that be?
What does the second sentence of your last post mean? You surely mistyped something.
Can you reproduce this problem? I have never heard of an interoperability issue between Better Together and AIM.
-
Re: Better Together Contribution Support Thread
The coupon with the issue is described in my previous post (#638). I did call it a 'deal' in that post, though, which is the correct term. :smile:
Quote:
Originally Posted by
swguy
What does the second sentence of your last post mean? You surely mistyped something.
I don't think I mistyped anything (except calling the BT deal a 'coupon'). The second sentence:
Quote:
Originally Posted by JeffLC
The error occurred with the first (and only) customer who used the coupon.
means only one customer has used the coupon (aka deal), and the credit card charge didn't match the order total. No customers have used it since, though I used it during my testing.
If you're referring to the third sentence:
Quote:
Originally Posted by JeffLC
This isn't something that worked previously, but now doesn't.
I've seen many posts which say something like "everything has been working fine for several months then all of a sudden 'xxx' stopped working." In this case, the discount has never worked correctly. The issue appeared the first time someone used it. I have reproduced the problem with each of the items which are entitled to a discount and it occurs with any quantity of the discounted items.
In my testing, however, I also discovered the problem occurs with other coupons, such as one I created for free shipping. Because of this and your reply about not hearing of issues between Better Together and AIM, I don't think it is an issue with Better Together. I will move this back to the thread where I originally posted the problem.
-
Re: Better Together Contribution Support Thread
Hello,
I'd like to ask if I can use this for a "buy 2 get 1 free" within the same category?
Thanks!
-
Re: Better Together Contribution Support Thread
No. Better Together deals with pairs of items only.
-
Re: Better Together Contribution Support Thread
hello swguy - can your plugin do what I have inquired about in this thread? https://www.zen-cart.com/showthread....-page-(step-3)
cheers, Mike
-
Re: Better Together Contribution Support Thread
This is just an upsell message - you don't need Better Together. You could just add the message to your checkout confirmation template.
(Personally, I would recommend putting it on checkout shipping. By the time they are at confirmation, you really want to drive them through and capture the sale, not risk it for a few additional dollars. Alternately you could put it on the checkout success page.)
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
This is just an upsell message - you don't need Better Together. You could just add the message to your checkout confirmation template.
(Personally, I would recommend putting it on checkout shipping. By the time they are at confirmation, you really want to drive them through and capture the sale, not risk it for a few additional dollars. Alternately you could put it on the checkout success page.)
Thanks for your reply swguy - in hindsight I agree that it should be lower down the process. I managed to put a similar message on the shopping cart page however I had some help in that there existed an "add message here" php for the page and in the template there is a "call that text" line (I just moved it to suit). Problem is I do not have the coding skills to create the code(s) for the php and the call to load .... unless I simply copied them and renamed them for the checkout pages? (thinking as I'm typing) Will give that a try.
cheers, Mike
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
shags38
Problem is I do not have the coding skills to create the code(s) for the php and the call to load ....
You can put an Ad in the Commercial Help Wanted forum and find someone who will work with you.
-
Re: Better Together Contribution Support Thread
A small update was just submitted - in One to Many mode 2, using identical items in a linkage was not working properly.
-
Re: Better Together Contribution Support Thread
A client is using BT and needs to set-up a discount but wants to require three items be purchased together to get the discount. Can that be done with BT? If not, does another one of your plugins offer this?
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
jeking
A client is using BT and needs to set-up a discount but wants to require three items be purchased together to get the discount. Can that be done with BT? If not, does another one of your plugins offer this?
I think I answered my own question. It's Free Gift Chooser.
-
Re: Better Together Contribution Support Thread
Discount Chooser (formerly Free Gift Chooser) is the way to handle requirements like this. Combination Discounts can do it too but it's a more expensive solution.
-
Re: Better Together Contribution Support Thread
As I am testing an upgrade from 1.5.0 to 1.5.5, I don't have this mod installed, or at least I don't need it (the products I was using it on are becoming obsolete). Now, in my test upgrade, it is using the DB from the live store. When testing a transaction, I get the message that it is looking for the ot_better_together.php file. Now, it is obviously not there, but I am wondering where it refers to it, so I can remove that reference. Or should I install it and not use it?
-
Re: Better Together Contribution Support Thread
You should install it and use it. :)
J/K. Install it, then go to admin-modules-order total-better together, and press the remove button. There are probably lingering database entries that you can delete by doing this.
-
Re: Better Together Contribution Support Thread
Quote:
You should install it and use it. :)
I did. For years.
Thanks. It fixed the error message. I might keep it... in case ;)
-
Re: Better Together Contribution Support Thread
Installed successfully on 1.5.1 Have only done rudimentary testing but creating linkages manually seems to work fine. However the Admin module does not show up in the tool bars. I have verified the install carefully, checking that all files are in the directory they should be, sql scripts have been run but there is no entry in the tool menu.
Ver 1.5.1 - PHP 5.6.31
Anything you can think of that I may have missed?
-
Re: Better Together Contribution Support Thread
You missed buying the Admin. It's a separate commercial module, available from my site. :)
-
Re: Better Together Contribution Support Thread
No - I purchased the module and followed the installation guide very carefully. As said, I have checked that all files are in the correct location scripts run etc. but no entry in tool menu. No error messages showing wither. Ajax module also installed and checked.
-
Re: Better Together Contribution Support Thread
I see you are in Tampa Florida - please stay safe. I guess this hurricane is something to take real serious. I hope you have a safe spot to ride it out. All the best.
-
Re: Better Together Contribution Support Thread
TY! We are all hunkered down.
OK, my guess would be you didn't run the separate sql that installs the admin page - it's called bt_admin_150.sql. But please contact me by email ([email protected]) - my commercial stuff isn't supported on the Zen Cart forum.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
TY! We are all hunkered down.....
Keep Safe Scott! Can well relate to what you guys are going to face, "our" Cyclones (different name, same crap) have done us some damage in the recent years....
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
TY! We are all hunkered down.
OK, my guess would be you didn't run the separate sql that installs the admin page - it's called bt_admin_150.sql. But please contact me by email (
[email protected]) - my commercial stuff isn't supported on the Zen Cart forum.
Hopefully you're now through the worst of it. When you are backup "online" I will email. BTW running the script doesn't help. (Had done this previously anyway)
-
Re: Better Together Contribution Support Thread
Ok, need a variation, namely:
1. customer buys 4 of product A and then gets 1 of product X free
2. customer buys 8 of product A and then gets 2 of product X free
3. customer buys 12 of product A and then gets 3 of product X free
So in any case the quantity ratio A/X is 4/1
Can Better Together do this without much fuzz?
There will only be one single combination, namely A + X, no such thing as B + X or B + Y etc
-
Re: Better Together Contribution Support Thread
No. Better Together only works with pairs of items. I have a module called Discount Chooser that do what you are trying to accomplish; see your PM.
-
Re: Better Together Contribution Support Thread
I'm having trouble with Better Together and Group Discount. The Group Discount is incorrect when Better Together discount is applicable to the cart. Group Discount is correct if Better Together is not applicable. The Group Discount is too low by an amount that equals the tax on the Group Discount on the Better Together discount.
Example:
Product 1 price is $100; Product 2 price is $50. Better Together discount is 50% off Product 2 price if Product 1 is also purchased. The Group Discount is 15%. I want the Group Discount to apply to the subtotal minus the Better Together discount. So the cart subtotal is $150 ($100 + $50). The Better Together discount is $25 (50% of $50). The Group Discount should be applied to $125 ($150 - $25) and equal $18.75. But Group Discount calculates $18.53. The $0.22 difference equals the tax (6% in my case) of the Group Discount on the Better Together discount ($25 * 15% * 6% = $0.225).
I also have Quantity Discount installed (v1.12.1) but this problem does not occur with Quantity Discount and Group Discount.
Zen Cart v155e, Better Together v2.5.3, php 5.6.31. The Better Together and Group Discount (as well as Quantity Discount) setting for Include Tax is false, and the setting for Recalculate Tax is standard.
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Scott,
Perfect! Thank you!!! :smile: I had installed the fix in Quantity Discounts years ago in zc v1.5.1 and forgot about it. This stuff makes my head hurt! :(
Dave
-
Re: Better Together Contribution Support Thread
I haven't used this plugin in a while, before I do I need to know if this plugin will work or if you have a commercial plugin that will...
I have 4 categories
Customer adds 2 items from any of the 4 categories
All items have Attributes
Customer gets 50% off the lesser valued item
-
Re: Better Together Contribution Support Thread
Better Together doesn't handle requirements like this. Look at Discount Chooser on my site.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Better Together doesn't handle requirements like this. Look at Discount Chooser on my site.
Scott,
Discount Chooser or Big Chooser
I forgot to mention, the discount is valid for store-pickup not shipping
-
Re: Better Together Contribution Support Thread
Discount Chooser. Used to be called Free Gift Chooser.
You will need modifications for it to be restricted by shipping method. Please contact me privately. (help at thatsoftwareguy dot com)
-
Re: Better Together Contribution Support Thread
PHP7 updates complete - see new version in the Plugins area.
-
Re: Better Together Contribution Support Thread
Is it possible to just suggest a second item if someone buys something? I don’t necessarily want to always offer a discount on the second item. Just “People who bought A also bought B?” I thought that was already part of Zencart but I’m not seeing it.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
HeleneWallis
Is it possible to just suggest a second item if someone buys something? I don’t necessarily want to always offer a discount on the second item. Just “People who bought A also bought B?” I thought that was already part of Zencart but I’m not seeing it.
You're talking about the also-purchased-products block that, when configured, is displayed at the bottom of the various product-details pages.
Check a couple of configuration settings:
Configuration->Product Info->Also Purchased Products Columns Per Row. This needs to be set to a numeric value > 0 for that block to be displayed.
Configuration->Minimum Values->Also Purchased Products. This value also needs to be set to a numeric value > 0 for that block to be displayed.
Those settings enable the block's display, but nothing will be displayed if no purchases of the associated product included other products.
-
Re: Better Together Contribution Support Thread
If you create a linkage between products A and B, then the Better Together Marketing text prompts a viewer of page A to buy B and vice versa.
There are also commercial add-ons like Checkout Candy, Checkbox Cross Sell and Auto Add that you can read about on my site.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
lat9
You're talking about the also-purchased-products block that, when configured, is displayed at the bottom of the various product-details pages.
Check a couple of configuration settings:
Configuration->Product Info->Also Purchased Products Columns Per Row. This needs to be set to a numeric value > 0 for that block to be displayed.
Configuration->Minimum Values->Also Purchased Products. This value also needs to be set to a numeric value > 0 for that block to be displayed.
Those settings enable the block's display, but nothing will be displayed if no purchases of the associated product included other products.
Thanks, I’ll check to make sure I have that configured.
-
Re: Better Together Contribution Support Thread
I think the answer is no, but wanted to ask. Can I set up a Buy Two of product A and get a third Product A free?
-
Re: Better Together Contribution Support Thread
Not with Better Together. There are other modules on my site that allow you to do this sort of thing.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Not with Better Together. There are other modules on my site that allow you to do this sort of thing.
Thanks for confirming.
-
Re: Better Together Contribution Support Thread
Are there any known issues with this and FEC? I've installed this on a heavily customized site so it could be any number of reasons it does not display at checkout. Gotta start somewhere.
-
Re: Better Together Contribution Support Thread
Test with a prod to prod linkage to be sure that the issue isn't category related.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Test with a prod to prod linkage to be sure that the issue isn't category related.
Ha, I had done that already. Same result.
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Hello. I've been using better together, but I cannot make it work for my business the way I need it, and I was wondering if there's a modification that can be added to the module or if there's perhaps another module that does what I need that I'm not aware of.
I'm looking to have product X been given for free only when $Y amount of products A,B,C are present in the cart only.
Thanks in advance for the help! :smile:
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Better Together does "Buy A get B at a discount" and that's all. I have other modules that do more complicated operations like this.
-
Re: Better Together Contribution Support Thread
Hello All,
I have a fresh install of ZC 1.5.8 running on php8.0. I've installed the better together mod dated 9/19/2022. The discount does not appear during checkout unless I switch back to php7.4. It doesn't work on 8 or 8.1. I also get no error or warning logs. It's possible that I missed an extension when provisioning 8 and 8.1, but they appear to have everything that my 7.4 has except where an extension is not available. Listed below are my 7.4, 8.0 and 8.1 builds
Any ideas ?
Thank you,
John
Code:
PHP 7.4 |
PHP 8.0 |
PHP 8.1 |
build |
build |
build |
libc-client |
libc-client |
libc-client |
libc-client-devel |
libc-client-devel |
libc-client-devel |
libc-client-static |
libc-client-static |
libc-client-static |
pear |
pear |
pear |
php-bcmath |
php-bcmath |
php-bcmath |
php-calendar |
php-calendar |
php-calendar |
php-cli |
php-cli |
php-cli |
php-common |
php-common |
php-common |
php-curl |
php-curl |
php-curl |
php-dba |
php-dba |
php-dba |
php-devel |
php-devel |
php-devel |
php-enchant |
php-enchant |
php-enchant |
php-exif |
php-exif |
php-exif |
php-fileinfo |
php-fileinfo |
php-fileinfo |
php-fpm |
php-fpm |
php-fpm |
php-ftp |
php-ftp |
php-ftp |
php-gd |
php-gd |
php-gd |
php-gettext |
php-gettext |
php-gettext |
php-gmp |
php-gmp |
php-gmp |
php-iconv |
php-iconv |
php-iconv |
php-intl |
php-intl |
php-intl |
php-ioncube11 |
|
php-ioncube12 |
php-ldap |
php-ldap |
php-litespeed |
php-litespeed |
php-litespeed |
php-mbstring |
php-mbstring |
php-mbstring |
php-mysqlnd |
php-mysqlnd |
php-mysqlnd |
php-opcache |
php-opcache |
php-opcache |
php-pdo |
php-pdo |
php-pdo |
php-pgsql |
php-pgsql |
php-pgsql |
php-posix |
php-posix |
php-posix |
php-process |
php-process |
php-process |
php-pspell |
php-pspell |
php-pspell |
php-snmp |
php-snmp |
php-snmp |
php-soap |
php-soap |
php-soap |
php-sockets |
php-sockets |
php-sockets |
php-xml |
php-xml |
php-xml |
php-zip |
php-xmlrpc |
php-zip |
runtime |
php-zip |
runtime |
|
runtime |
|
|
-
Re: Better Together Contribution Support Thread
Do you have all logging enabled (Configuration :: Logging :: Report All Errors Admin and Store)? Those settings are set to "No" by default; change the "Store" one to "Yes" and see if any PHP notices are logged.
-
Re: Better Together Contribution Support Thread
I do have all logging enabled. If I remove a ) or a { or call a var that's not been defined. I get told all about it. This though... crickets...
Thank you,
John
-
Re: Better Together Contribution Support Thread
I just did a test install on a different server on a different host. Works flawlessly. Both zc and better mod are the same files from my dev site. So it's clearly something missing from my php8, 8.1 and 8.2 upgrades. I have the admin version page on the working one. I'm gonna see what I can find..
-
Re: Better Together Contribution Support Thread
I haven't been able to resolve the issue/s with my installs of php8, 8.1 and 8.2, but I did find a solution.
I created another new subdomain and added again zc1.5.8zip. I extracted and got a white screen instead of install. Checked php and was 8.2. So I cleared out the home directory and extracted again while running on php 8.1. Again I got a white screen instead of index or install. Tried again with 8.0. Same result. Finally I set this subdomain to run on php 7.4. Extracted the zc158 and it worked fine, I got the install screen. I then switched to php 8.1 and all is well. Added better together plugin and all is well.
So it seems to be that when I'm provisioning the php8, 8.1 and 8.2 onto the server that I'm missing something. Or something else is happening and it's breaking or corrupting files when extracted. If anyone can shed any light on this I'm all ears (and eyeballs).
Thanks again,
John
-
Re: Better Together Contribution Support Thread
ATTRIBUTES!!!! It's the attributed products causing a problem. I've been at this for three days now. It's not php on the server. I have a working install and then bring in my patched database and the better together module disappears. My linkages are all for attributed products. So the linkage with product id 1119 works on php7.4 when the product id become 1119:34345345kj34jk34kj34, but on php8+ this doesn't work. If I change the linkages to products which are not attributed it works no problem.
Please advise.
Thank you,
John
-
Re: Better Together Contribution Support Thread
I'll fix it in the next week or so.
-
Re: Better Together Contribution Support Thread
Hey Scott.
That's great news! Now I can get on with my life and circle back to this. Trouble is that doesn't fit my personality. Now that I know what the problem is I've zeroed in on includes/modules/order_total/ot_better_together.php. I'm gonna see if I can get this ironed out today, but I do very much look forward to your update.
Thanks again,
John
-
Re: Better Together Contribution Support Thread
Please don't post your own fixes, which are partial and will not work in all cases. I will post the update as soon as I can.
-
Re: Better Together Contribution Support Thread
Right on. Thanks again. ;)
-
Re: Better Together Contribution Support Thread
The plugin has been updated.
-
Re: Better Together Contribution Support Thread
Just installed the latest version from ZC downloads page and getting the following error logged in checkout
Undefined constant "MODULE_ORDER_TOTAL_BETTER_TOGETHER_ONE_TO_MANY"
I don't see that define in the language file.
What is the text meant to be for that so I can add it?
-
Re: Better Together Contribution Support Thread
It's a database setting. You probably have to remove and re-install under Admin > Modules > Order Total.