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.