Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
When you say "it doesn't work," can you be more specific? In what way does it not work? What exactly are you doing in the two for one case that does work, and what are you doing in the product to product case that does not? Show your code.
When I add a two for one discount it appears in the checkout process as "Better Together Discount" with the correct discount, but when I do a product to product or category to category discount nothing actually happens.
The code is attached
function setup() {
// Using Better Together Admin? Uncomment this out
/*
if (!IS_ADMIN_FLAG) {
require(DIR_WS_MODULES . 'better_together_admin.php');
}
*/
// Add all linkages here
$this->add_twoforone_cat(36);
$this->add_cat_to_cat(33,34,"%", 15);
// Some examples are provided:
/*
Any help is apprecaited
Re: Better Together Contribution Support Thread
That's an add_cat_to_cat - I asked you for an add_prod_to_prod. But since cat 36 seems to work, please try
Code:
function setup() {
$this->add_cat_to_cat(36,36,"%", 15);
}
} // closing paren for class
I suspect that will work, which means that the real issue is with categories only, and you need to look at the help on categories
http://www.thatsoftwareguy.com/zenca...ry_issues.html
to see how they work and what can go wrong.
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
That's an add_cat_to_cat - I asked you for an add_prod_to_prod. But since cat 36 seems to work, please try
Code:
function setup() {
$this->add_cat_to_cat(36,36,"%", 15);
}
} // closing paren for class
I suspect that will work, which means that the real issue is with categories only, and you need to look at the help on categories
http://www.thatsoftwareguy.com/zenca...ry_issues.html
to see how they work and what can go wrong.
Hi,
Appreciate the help but this didnt work either...same issue with nothing actually appearing...
Re: Better Together Contribution Support Thread
Then something is either wrong with your database, your files or your installation which will require someone to have access to all three to debug it. You can hire someone off the Commercial Help Forum.
Re: Better Together Contribution Support Thread
Scott, why would a category not show as an option in bt admin but the rest do?
Re: Better Together Contribution Support Thread
Re: Better Together Contribution Support Thread
Trying to get an understanding of the discount logic.
I have three products
Product A - id1
Product B - id2 price £10
Product C - id3 price £20
If I have the following config:
$this->add_prod_to_prod(1,2,"%", 50);
$this->add_prod_to_prod(1,3,"%", 50);
I notice currently that only one discount is applied and the one that gives the least discount is applied.
Is this anything that can be configured to be different?
Re: Better Together Contribution Support Thread
No. Once an item has been "used" to provide a discount (or discounted), it is not available to provide other discounts. Discounts are applied (second parameter) from the least to the most expensive items, and items are used (first parameter) from most to least expensive.
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
No. Once an item has been "used" to provide a discount (or discounted), it is not available to provide other discounts. Discounts are applied (second parameter) from the least to the most expensive items, and items are used (first parameter) from most to least expensive.
Ok understand this, thanks. Is there anyway to change the logic so it chooses differently? I had an items that was more expensive but had less of a discount than a product that was less expensive so I assume that's why I ended up having the smaller discount applied.
Re: Better Together Contribution Support Thread
If you downloaded Better Together this week, please pull it again; there was a small bug in an update I submitted earlier this week. Thanks.
BTW the update was just code cleanup and formatting; no functional changes were involved so the update is not required.