-
Re: Better Together Contribution Support Thread
My Better Together isn't working - the Order total isn't showing the discount. The discount amount is correct, but the total amount isn't.
You can see it here: http://www.rodandriflerag.com/store - look for the CYBER MONDAY specials (yes, it's live!)
-
Re: Better Together Contribution Support Thread
I got it working... the order makes a huge difference.
I'd also like to change the "Better Together" like at the checkout side. It would be great if it were configurable!
-
Re: Better Together Contribution Support Thread
Yep, the order does make a difference.
You can change the text displayed to your customers by editing the language file.
-
Re: Better Together Contribution Support Thread
Had been using this mod successfully for the last 12 months where you'd buy 1 product and get the other at 50% off.
Then we sold out of the 1 product, so I went into the ot_better_together.php file and updated the code to another product.
The product pages are showing the discount correctly.
However the discount doesn't show up at checkout, the 50% product is not even listed there.
Haven't upgraded ZC or anything, still on v1.3.9b.
Any solution?
-
Re: Better Together Contribution Support Thread
Double check your change. If you're using a CAT linkage instead of a PROD one, double check the master categories id of the product in question.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Double check your change. If you're using a CAT linkage instead of a PROD one, double check the master categories id of the product in question.
Everything is correct.
$this->add_prod_to_prod(283, 267, "%", 50);
-
Re: Better Together Contribution Support Thread
Clearly *something* is not correct, or you wouldn't have this problem.
Double check the file on your server and make sure it has been updated the way you think it has. Check to see if Better Together shows as being installed in Admin->modules->order total. If you are running SEO URLs turn them off and triple check the id's of the products.
There is nothing organic in Better Together that would cause it to suddenly break down. Something has changed in your environment.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Clearly *something* is not correct, or you wouldn't have this problem.
Double check the file on your server and make sure it has been updated the way you think it has. Check to see if Better Together shows as being installed in Admin->modules->order total. If you are running SEO URLs turn them off and triple check the id's of the products.
There is nothing organic in Better Together that would cause it to suddenly break down. Something has changed in your environment.
File is correct.
Module is installed.
Not using SEO URLs.
Triple checked, IDs are correct.
-
Re: Better Together Contribution Support Thread
I have installed the mod accordingly, but where on the store will this Combo sell show? It does not come up anywhere??
Do I have to do something more than what the instructions say in the readme file for the customers to be able to see my better together sale?
-
Re: Better Together Contribution Support Thread
You could use the marketing text, which is described in the readme file.
You could use the Promotional Page, which is described in the readme file.
You can use the Better Together Centerbox, which is another contribution in the Free Software Add Ons.
You can refer to the in-depth documentation on my site, a link to which is provided in the readme.
.
-
Re: Better Together Contribution Support Thread
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
<br class="clearBoth" />
<!--better together -->
<?php
require($template->get_template_dir('/tpl_better_together_marketing.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_better_together_marketing.php');
?>
I put in this text in the correct file and copied it to the (or should I delete it from template_default?) /classic/templates
nothing is showing anywhere on the site? maybe I'm too noob, lol
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
Argyle
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
<br class="clearBoth" />
<!--better together -->
<?php
require($template->get_template_dir('/tpl_better_together_marketing.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_better_together_marketing.php');
?>
I put in this text in the correct file and copied it to the (or should I delete it from template_default?) /classic/templates
nothing is showing anywhere on the site? maybe I'm too noob, lol
no it is working, I did just not find it... it is under product description... would like the combos to be shown on the main page though?
-
Re: Better Together Contribution Support Thread
My better together module seem to work fine in the store, the discounts are coming up as they should and being displayed. But when the costumer orders a discounted combo, it does not work. Nothing is shown anywhere on invoice or calculations?
Why can this be?
my site is www.pbmarkers.co.nz
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
Argyle
My better together module seem to work fine in the store, the discounts are coming up as they should and being displayed. But when the costumer orders a discounted combo, it does not work. Nothing is shown anywhere on invoice or calculations?
Why can this be?
my site is
www.pbmarkers.co.nz
It works when I specifically discount one product with another, but not when I discount a whole category with one product? Is this how it should be?
-
Re: Better Together Contribution Support Thread
Please read the documentation on categories - most likely the category isn't what you think it is.
http://www.thatsoftwareguy.com/zenca...ry_issues.html
-
Re: Better Together Contribution Support Thread
can any one tell me how to do this
buy 2 items for $10 using better together or any another mod..
i m using 1.3.9h
thanx in advance.. :smile:
-
Re: Better Together Contribution Support Thread
Better Together provides a discount, not a final price.
-
Re: Better Together Contribution Support Thread
Hello,
I have four products, each of which has four attributes with their own prices.
Product A
Option 1 ($10)
Option 2 ($25)
Option 3 ($50)
Option 4 ($100)
Product B
Option 1 ($10)
Option 2 ($25)
Option 3 ($50)
Option 4 ($100)
etc...
I would like to be able to offer a sale where if a shopper buys "Product A Option 1" and "Product B Option 1", they receive a 30% discount on the total price of those two products. I do NOT want any of the other attributes to be considered for discounts.
Is this possible with Better Together (or any other mod)? Or am I thinking about things all wrong and missing a simpler way to accomplish this?
Thanks!
-
Re: Better Together Contribution Support Thread
This is not possible with Better Together.
-
Re: Better Together Contribution Support Thread
Greetings swguy, thanks for sticking with me today. Weird, but the missing emails showed up this evening. Anyway, I have installed:
- better_2.3b
- bt_admin_3.1
- bt_admin_xajax
- candy_1.3.9_5
- center_better_1.0a
- marketing
- preview_1.3.9_8_subtotal
- promo_better_2.2a
Everything is up and running without any hassle and I have very little experience working with this type of customization. Well done on your part!
The only question I have is the "Better Together" display on the product_display_page. On my site, it is just a simple line of text with the correct linked information but what needs to be done (or what might I have missed) to get it "boxed" so that it stands out as in your example? I would prefer it to look like the example you gave with the field set.
http://www.ranchdogoutdoors.com/GIF/...set_sample.gif
Any help you or anyone else can offer would be appreciated.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
Ranch Dog
On
my site, it is just a simple line of text with the correct linked information but what needs to be done (or what might I have missed) to get it "boxed" so that it stands out as in your example? I would prefer it to look like the example you gave with the field set.
http://www.ranchdogoutdoors.com/GIF/...set_sample.gif
Modify includes/templates/YOUR_TEMPLATE/templates/tpl_better_together_marketing.php.
Above
echo '<div class="content" id="betterTogetherDiscountPolicy">';
add
echo '<fieldset>';
echo '<legend>' . MODULE_ORDER_TOTAL_BETTER_TOGETHER_TITLE . '</legend>';
then below
echo '</div>';
add
echo '</fieldset>';
-
Re: Better Together Contribution Support Thread
BTW, thanks for your kind words.
I also updated the help page with these instructions.
-
Re: Better Together Contribution Support Thread
Thanks! Looks very nice on the product page plus with the "Candy" package, I should be able to get some stale inventory moving!
This Zen-challenged fellow found all the different modules that I installed very easy, even the file merge with candy/discount preview. Now, I might redo my products so that their attributes make them individual products then I could use the "Buy Now" button options you offer. A lot of people use the quick spur of the moment mouse click to make a buying decision. Give them a couple of extra pages to move through and and the outcome at checkout might be different!
-
Re: Better Together Contribution Support Thread
Hello, thanx for this great mod.
I'just installed, but i have a problem. I put the code
Code:
<?php
require($template->get_template_dir('/tpl_better_together_xsells.php',DIR_WS_TEMPLATE,
$current_page_base,'templates'). '/tpl_better_together_xsells.php');
?>
in tpl product info display, but it cause an error .. nothing display after that code . the require function call the tpl file in the right root ... i can't figure .. please help !!
Thanx in advance
-
Re: Better Together Contribution Support Thread
I suspect you stuck this inside a block of PHP code. Put it *after* a
?>
on the next line.
-
Re: Better Together Contribution Support Thread
Thanx for the prompt response .. i checked, but .. no . I suspected that the require function call to an unexisting file, but .. no .. ive replaced require with echo and the call is right ... can't figure .. :shocking:
-
Re: Better Together Contribution Support Thread
oK, SOLVED THE FIRST PROBLEM, checked the debug file and error was ok 756 raw of ot_better_together.php , uncommented "better_together_admin.php" . Now i've got no error, but ... nothing happens, can't see any doscount, any suggestion ?? :no:
-
Re: Better Together Contribution Support Thread
ok all .. it's ok !! Thanx for this great contribution .. going to study to better adapt to my site ;))
-
Re: Better Together Contribution Support Thread
Here is a possible fix if like me you sell products that have different tax rates:
Product A 10% tax
Product B 0% tax.
buy Product A and get B at discount. Or buy B and get A at discount.
Will give you the right result depending on your tax setting in admin.
i.e for items that have 0% TAX for discount you must set "Include Tax"=false and "Re-calculate Tax"=none
i.e for items that have X% TAX for discount you must set "Include Tax"=true and "Re-calculate Tax"=Standard
Possible Fix (test it first)
open includes/modules/order_total/ot_better_together.php
and add the following function:
Code:
function get_indvidual_tax(){
require_once(DIR_WS_CLASSES . 'order.php');
$orderz = new order;
$getid = array();
$globTAX = array();
for ($i=0, $m=sizeof($orderz->products); $i<$m; $i++) {
//gather up all the different types of tax rates used in our cart
$getTAX_group = array();
foreach ($orderz->products[$i]['tax_groups'] as $j => $value) {
$getTAX_group[$j] = $value;
if (isset($globTAX[$j]) == false){
$globTAX[$j] = 0;
}
}
unset($value);
//collect tax rates for each items in our cart
$getid[(int)$orderz->products[$i]['id']] = $getTAX_group;
}
$combinLocalGlob = array();
array_push($combinLocalGlob,$getid);
array_push($combinLocalGlob,$globTAX);
return $combinLocalGlob;
}
This function captures the tax rates for each individual products in our basket.
Now go to the calculate_deductions() function and assign these tax rates to our products.
replace in the calculate_deductions() function with:
Code:
function calculate_deductions() {
global $db, $order, $currencies;
$od_amount = array();
$od_amount['tax'] = 0;
$products = $_SESSION['cart']->get_products();
reset($products);
$rc = usort($products, "bt_cmp");
$discountable_products = array();
// Build discount list
$getindTAX = $this->get_indvidual_tax(); //collects tax rates from function
$getindTAXglobal = $getindTAX[1];// collects all the tax rates used in our cart (will be used to calculate final tax amount)
$getindTAXlocal = $getindTAX[0];// collects tax rates for eaxh individual products in cart
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
$discountable_products[$i] = $products[$i];
$discountable_products[$i]['tax_value'] = $getindTAXlocal[(int)$discountable_products[$i]['id']]; // assign the tax rate for each individual item in cart
}
// Now compute discounts
$discount = 0;
for ($i=0, $n=sizeof($discountable_products); $i<$n; $i++) {
// Is it a twofer?
if ($this->is_twofer($discountable_products[$i])) {
$npairs = (int)($discountable_products[$i]['quantity']/2);
$discountable_products[$i]['quantity'] -= ($npairs * 2);
$item_discountable = $npairs * $discountable_products[$i]['final_price'];
$discount += $item_discountable;
if ($this->include_tax == 'true') {
$item_being_discounted = $discountable_products[$i];
foreach ($item_being_discounted['tax_value'] as $taxrate => $taxvalue) {
//calculate tax amount for discounted item
$item_tax_at = ($item_being_discounted['final_price']*$taxvalue)/100;
$remove_discount_from_tax = $item_tax_at*($item_discountable/$item_being_discounted['final_price']);
//add this amount to the global tax variable (ready to be used to calc tax)
$getindTAXglobal[$taxrate] += $remove_discount_from_tax;
}
unset($taxvalue);
}
}
// Otherwise, do regular bt processing
while ($discountable_products[$i]['quantity'] > 0) {
$discountable_products[$i]['quantity'] -= 1;
$item_discountable = $this->get_discount(
$discountable_products[$i], $discountable_products);
$discount_amount = $item_discountable[0];
if (isset($item_discountable[0]) == false){
$discount_amount = 0;
}
if ($discount_amount == 0) {
$discountable_products[$i]['quantity'] += 1;
break;
} else {
$discount += $discount_amount;
if ($this->include_tax == 'true') {
$item_being_discounted = $item_discountable[1];
foreach ($item_being_discounted['tax_value'] as $taxrate => $taxvalue) {
//calculate tax amount for discounted item
$item_tax_at = ($item_being_discounted['final_price']*$taxvalue)/100;
$remove_discount_from_tax = $item_tax_at*($discount_amount/$item_being_discounted['final_price']);
//add this amount to the global tax variable (ready to be used to calc tax)
$getindTAXglobal[$taxrate] += $remove_discount_from_tax;
}
unset($taxvalue);
}
}
}
}
$od_amount['total'] = round($discount, 2);
switch ($this->calculate_tax) {
case 'Standard':
reset($order->info['tax_groups']);
while (list($key, $value) = each($order->info['tax_groups']))
{
$tax_rate = zen_get_tax_rate_from_desc($key);
if ($tax_rate > 0) {
// this will deduct the correct tax amount for each individual items
$od_amount[$key] = $tod_amount = round($getindTAXglobal[$key], 2) ;
$od_amount['tax'] += $tod_amount;
}
}
break;
case 'VAT':
reset($order->info['tax_groups']);
while (list($key, $value) = each($order->info['tax_groups']))
{
$tax_rate = zen_get_tax_rate_from_desc($key);
if ($tax_rate > 0) {
$od_amount[$key] = $tod_amount = $this->gross_down($od_amount['total']);
$od_amount['tax'] += $tod_amount;
}
}
break;
}
return $od_amount;
}
you will also need to replace the get_discount function with:
Code:
function get_discount($discount_item, &$all_items) {
$discount = 0;
for ($dis=0, $n=count($this->discountlist); $dis<$n; $dis++) {
$li = $this->discountlist[$dis];
// Based on type, check ident1
if ( ($li->flavor == PROD_TO_PROD) ||
($li->flavor == PROD_TO_CAT) ) {
if ($li->ident1 != $discount_item['id']) {
continue;
}
} else { // CAT_TO_CAT, CAT_TO_PROD
if ($li->ident1 != $discount_item['category']) {
continue;
}
}
for ($i=sizeof($all_items) - 1; $i>= 0; $i--) {
if ($all_items[$i]['quantity'] == 0)
continue;
$match = 0;
if ( ($li->flavor == PROD_TO_PROD) ||
($li->flavor == CAT_TO_PROD) ) {
if ($all_items[$i]['id'] == $li->ident2) {
$match = 1;
}
} else { // CAT_TO_CAT, PROD_TO_CAT
if ($all_items[$i]['category'] == $li->ident2) {
$match = 1;
}
}
if ($match == 1) {
$all_items[$i]['quantity'] -= 1;
if ($li->type == "$") {
$discount = $li->amt;
} else { // %
$discount = $all_items[$i]['final_price'] *
$li->amt / 100;
}
$discount_and_product = array();
array_push($discount_and_product,$discount);//discount amount
array_push($discount_and_product,$all_items[$i]);//item being discounted need to be used to calculate tax
return $discount_and_product;
}
}
}
return 0;
}
now you will have to set "Include Tax"=true and "Re-calculate Tax"=Standard
and it should work with different tax rated items!
-
Re: Better Together Contribution Support Thread
Interesting! Thanks for sharing your code.
-
Re: Better Together Contribution Support Thread
Good work, swguy. This was what I was looking for, and saved me the hassle of having to code it all from scratch. :)
Just a quick note, instead of using the define FILENAME_PRODUCT_INFO to construct the href link to the products, I suggest using the function zen_get_info_page($product_id) instead. This will cover custom product types.
-
Re: Better Together Contribution Support Thread
Thanks - this is a good suggestion.
-
Re: Better Together Contribution Support Thread
Greetings from the other side of the world
Thank you so much for your work swguy.
I have been tring to customize the shipping cart and create a combined discount for 2 categories. Part of your work is exactly what I was tring to do. :-)
One more question, I wonder if your module has got the function to allow customer to buy ONLY one item from the 2nd category at discounted price. (a single item added allowed)
Once again, great work, Thank you!
-
Re: Better Together Contribution Support Thread
No, Better Together does not have a method to cap it at one discount.
-
Re: Better Together Contribution Support Thread
Hi Scott I'm getting half a info product page when I try to insert your code. Do I need to put each category I have between the 2 () or what. What I really like to have is buy any product in any category get the second one for 50% off. Thanks in advance.
If a straight two for one discount is what is desired, the calls are
* add_twoforone_prod()
* add_twoforone_cat()
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
countrycharm
Hi Scott I'm getting half a info product page when I try to insert your code. Do I need to put each category I have between the 2 () or what.
Correct. But note that the function only supports one parameter, so you'll have to list each category. You can do this programmatically though.
Code:
function setup() {
$list = array(3, 5, 7, 11, 13, 17, 19);
foreach ($list as $i) {
$this->add_twoforone_cat($i)
}
}
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Correct. But note that the function only supports one parameter, so you'll have to list each category. You can do this programmatically though.
Code:
function setup() {
$list = array(3, 5, 7, 11, 13, 17, 19);
foreach ($list as $i) {
$this->add_twoforone_cat($i)
}
}
I'm not understanding this or something. Is the code above and example of what I need to put in the bottom of ot_better_together.php and just replace the number you provided with my category number? If this is correct what else do I add because when I go to admin/modules/ order total I get no module showing.
-
Re: Better Together Contribution Support Thread
Look at "Common Installation Problems" in the help file for Better Together on my site. (There's a link in the readme.) It looks like you might have problem #3.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Look at "Common Installation Problems" in the help file for Better Together on my site. (There's a link in the readme.) It looks like you might have problem #3.
Hi Scott I know it's problem #3 but I seem not to be able to get it to work. Here' are the codes I tried at the bottom. It still get no modules showing in admin.
PHP Code:
function setup() {
$list = array(4,6,7,10,11,13,18,21,36,37,46,58,73,76,77,81,82,89,98,109,111,113,116,118,120,121,124,133,134,142,148,154,163,166,168,170,177,179,180,181,182,183,184);
foreach ($list as $i) {
$this->add_twoforone_cat($i)
}
PHP Code:
function setup() {
$list = array(4,6,7,10,11,13,18,21,36,37,46,58,73,76,77,81,82,89,98,109,111,113,116,118,120,121,124,133,134,142,148,154,163,166,168,170,177,179,180,181,182,183,184);
foreach ($list as $i) {
$this->add_twoforone_cat($i)
}
}
Lets work on this one here instead.
I want to be able to offer, buy any item from any category and get 50% off any other item from any other category. What code would I use to get this to work. Here are my category numbers. Thanks in advance
Quote:
4,6,7,10,11,13,18,21,36,37,46,58,73,76,77,81,82,89,98,109,111,113,116,118,120,12 1,124,133,134,142,148,154,163,166,168,170,177,179,180,181,182,183,184
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
countrycharm
Hi Scott I know it's problem #3 but I seem not to be able to get it to work. Here' are the codes I tried at the bottom. It still get no modules showing in admin.
PHP Code:
function setup() {
$list = array(4,6,7,10,11,13,18,21,36,37,46,58,73,76,77,81,82,89,98,109,111,113,116,118,120,121,124,133,134,142,148,154,163,166,168,170,177,179,180,181,182,183,184);
foreach ($list as $i) {
$this->add_twoforone_cat($i)
}
PHP Code:
function setup() {
$list = array(4,6,7,10,11,13,18,21,36,37,46,58,73,76,77,81,82,89,98,109,111,113,116,118,120,121,124,133,134,142,148,154,163,166,168,170,177,179,180,181,182,183,184);
foreach ($list as $i) {
$this->add_twoforone_cat($i)
}
}
Lets work on this one here instead.
I want to be able to offer, buy any item from any category and get 50% off any other item from any other category. What code would I use to get this to work. Here are my category numbers. Thanks in advance
I guess this is not and option either or do I have to purchase one of your paid modules to get it to work? Scott you are not ignoring me are you? I feel like this should work some how.
Quote:
buy any item from any category and get 50% off any other item from any other category
-
Re: Better Together Contribution Support Thread
You may or may not need something more complex than Better Together. But you definitely need to hire someone to do this installation for you. There's a limit to how much time I can spend debugging a failed install on the forum.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
You may or may not need something more complex than Better Together. But you definitely need to hire someone to do this installation for you. There's a limit to how much time I can spend debugging a failed install on the forum.
I have it installed Scott It's not a failed install I just want to know is there a way to make this work. Yes or no, and if it will how do I get it to work. When I help or answer someone question in other threads I try to help all I can. I don't come back with There's a limit to how much time I can spend debugging a failed install on the forum. If we all did that nothing would get accomplish. No disrespect to you but I'm pretty good at sorting things when pointed in the right direction. I know you’re in the business of making money who isn’t. Like I said no disrespect to you. Thanks anyway for your time.
Quote:
buy any item from any category and get 50% off any other item from any other category
-
Re: Better Together Contribution Support Thread
You have stated multiple times that you can't see the module in admin. This is the definition of a failed install.
Can you do the two things you've asked about with Better Together? Yes, but you have to write some code (which I gave you an outline for). But this level of modification is beyond the abilities of many people - perhaps including you. This is why I suggested that you stop banging your head against the wall and just hire someone.
You have been working on this for *days* and still haven't completed it. Perhaps this isn't the best use of your time?
-
Re: Better Together Contribution Support Thread
I've followed all the instructions to install the Better Together module and it is not even appearing in my admin page. The basic instructions for installing a mod, while helpful, did not address what could be the cause of this problem. Any help is appreciated.
--Zen Cart Novice
-
Re: Better Together Contribution Support Thread
Please re-read the basic instructions for installing a mod, focusing on the "Common Problems" section. I just updated that part, please read it again.
http://www.thatsoftwareguy.com/zencart_install_mod.html
-
Re: Better Together Contribution Support Thread
i add the code
PHP Code:
$this->add_cat_to_cat(7, 9, "%", 60);
$this->add_cat_to_prod(7, 52, "%", 50);
but it only works for
Quote:
$this->add_cat_to_cat(7, 9, "%", 60);
then i change the code to
PHP Code:
$this->add_cat_to_prod(7, 52, "%", 50);
$this->add_cat_to_cat(7, 9, "%", 60);
now it only works for
Quote:
$this->add_cat_to_prod(7, 52, "%", 50);
what do i make one product or the products of one category to have several better together discounts?
ex:
buy item A from category 7, get item B from category 9 at 60% off,
buy item A from category 7, get item C (id 52) at 50% off,
so, if you buy the 3 items together: item A, item B, item C, you get 60% off of item B AND get 50% off of item C
but now, you only get 60% off of item B and none discounts of item C
is that possible?
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
quick1
what do i make one product or the products of one category to have several better together discounts?
...
is that possible?
No. Every product is only discounted (or used in a discount) once.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
No. Every product is only discounted (or used in a discount) once.
does Combination Discounts do this?
-
Re: Better Together Contribution Support Thread
Please ask questions about my commercial mods by email, not on the forum.
-
Re: Better Together Contribution Support Thread
I just downloaded your package and am installing. I see only one directory "Includes" - -do these files go in the store includes directory or the store/admin includes directory?
John
-
Re: Better Together Contribution Support Thread
Another question: I'd like to create a scenario where if a customer buys 5 units of one product they get a free product from another category. Can this be done?
John
-
Re: Better Together Contribution Support Thread
Question 1: They go into includes. (If they went into admin/includes, there would be an admin directory at the top level). If you haven't installed a mod before, please see http://www.thatsoftwareguy.com/zencart_install_mod.html
Question 2: No. Better Together is "Buy A, Get B at a discount."
-
Re: Better Together Contribution Support Thread
Is there a way to restrict the number of associated items that are displayed? I have Better Together with Checkout Candy with the buy it now button.
For example if I set up item A to have items B, C, D, E, and F associated with it, and I add item A to my cart, all five associated items will show in my shopping cart. Is there a way to only have two randomly show from the list of B, C, D, E, and F?
-
Re: Better Together Contribution Support Thread
Please email me with questions on my commercial offerings; they are not supported on the Zen Cart forum.
-
Re: Better Together Contribution Support Thread
Hi Scott,
Sorry if this has been explained elsewhere, but I'm trying to figure out if Better Together is what I need. I want to offer a discount on any items in a category, as long as 2 or more are ordered. This isn't a typical volume discount, because I want it to go across products.
If it makes a difference in your recommendation. All products in this category are the same price - $89 - and once the threshold of two items is purchased then all items in this category should sell for $74 - so one for $89, two for $148, three for $222. Is there a better way of offering this kind of discount besides "Better Together?"
Using zc v1.50 . . . thanks, Sean
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
I have installed Better Together & this is all I see in my admin: Seems Like there should be more... may be I need to do more?
Help - View the Documentation
This module is installed
true
Sort Order
Sort order of display.
Include Tax
Include Tax in calculation.
true
false
Re-calculate Tax
Re-Calculate Tax
None
Standard
VAT
Credit Note
Cancel
-
Re: Better Together Contribution Support Thread
You do need to do more! You need to read the documentation.
-
Re: Better Together Contribution Support Thread
Hello,
I have a quick question about the mod. I understand that you can setup a buy 2 get 1 free for specific products or categories. Am I able to set this up for all products belonging to a specific manufacturer.
Thanks so much
-
Re: Better Together Contribution Support Thread
You can only do buy one (not 2) get one free for products and categories, not for manufacturers.
-
Re: Better Together Contribution Support Thread
Hi Swguy,
Would it be possible to do the following with Better Together:
Buy A + B Get 25% off
Buy A + C Get 25% off
Buy A + A + C Get 30% off
with A, B & C either being individual products or categories.
Your help is greatly appreciated!
-
Re: Better Together Contribution Support Thread
No. Better Together discounts are done on pairs of items, not triplets.
-
1 Attachment(s)
Re: Better Together Contribution Support Thread
Did you notice? Even Apple recognizes that some things are Better Together. :smile:
-
Re: Better Together Contribution Support Thread
Hi,
Can this give multiple discounts? like buy from category A get 20% of category B. So customer buys 1 item from A and 3 from B can discount be applied to all items in B?
This module is installed and working on my site, but only gives discount on 1 item from be and always the lowest priced item.
Thanks for the great Mod.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
sham
Hi,
Can this give multiple discounts?
No. Better Together operates on pairs of items.
-
Re: Better Together Contribution Support Thread
I have seen some of your other add-ons is there one that would accomplish this? V 1.5.1
Thanks again.
-
Re: Better Together Contribution Support Thread
was wondering if someone could help me...i can get get the two for one offers to work using this plugin but can not get any linkages working...any help would be great
-
Re: Better Together Contribution Support Thread
Can you be more specific about what doesn't work?
-
Re: Better Together Contribution Support Thread
thanks for getting back to me swguy
i cant get any category to category discounts to work or product to product
the two for one works perfectly though
-
Re: Better Together Contribution Support Thread
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.
-
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.
-
Re: Better Together Contribution Support Thread
Hi swguy,
Excellent plugin, thank you! It seems to be working fine except for error logs that get generated each time I edit an order even when it does not include any "better together" items. Order editing itself works fine (correct updates are saved and correct notifications are sent), but after clicking "update order" I get a Server 500 error, and a new error log which reads:
PHP Fatal error: Call to undefined function zen_get_tax_rate_from_desc() in /SITE/includes/modules/order_total/ot_better_together.php on line 465
Line 465 in my copy of that file is:
$tax_rate = zen_get_tax_rate_from_desc($key);
I'm using Zen Cart 1.5.1 and Better Together 2.4 (released 4/20/2013). For tax handling I use TaxCloud. Any idea what could be causing these errors and how I can fix them? (Please be gentle, I'm not a php developer, just a user...)
Thank you!
Magz
-
Re: Better Together Contribution Support Thread
When you say, "each time I edit an order ..." - are you using an order edit mod? Which one? What version?
This does not happen on a stock cart when you do admin->customers->orders and then press the edit button to update the status and send a notification.
-
Re: Better Together Contribution Support Thread
Hi swguy - I use Edit Orders 4.1 and Ty Package Tracking 3.1.3. What I forgot to mention last night is that the errors happen only on my "real" website with SSL, they don't happen on the testing website without SSL. Could the SSL certificate have anything to do with it? Of course it's possible that I may have messed up the installation of either BT or EO/TPT on the real website... - any idea which BT file(s) I should check? (I checked them "all" and they seem correct, but being human I may have missed something...) What I'm finding strange is that all of the features of all of these mods seem to be working fine despite the errors (who knows what's going wrong that I don't see or haven't tested yet...). The function mentioned in the errors is defined in SITE/includes/functions/functions_taxes.php which is present on both sites and has not been modified by any plugin on either site.
Thanks!
Magz
-
Re: Better Together Contribution Support Thread
OK. This is a bug in Edit Orders 4.1; I will work on getting a fix in place this month.
-
Re: Better Together Contribution Support Thread
Better Together 2.5 has just been released; this version has support for "one to many" discounts. So if you have
Buy item 10, get item 20 for 25% off
Buy item 10, get item 30 for 25% off
Buy item 10, get item 40 for 15% off
In the past, when the customer has 1 each of items 10,20,30 and 40 in the cart, only the first discount would run, and item 10 would be removed from the list of items available for fulfilling a condition.
Now, if you want all three discounts to fire when the customer has items 10,20,30 and 40 in the cart, you can set the flag "One to Many = 1" in Admin->Modules->Order Total->Better Together. Setting One to Many = 2 will allow the discount to repeat if you have multiple of items 20, 30 or 40 in the cart, but only one item 10.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
OK. This is a bug in Edit Orders 4.1; I will work on getting a fix in place this month.
Thanks swguy. Just so you know, lhungil has been working on some improvements to EO 4.1 and might already be working on fixing this bug. ~magz
-
Re: Better Together Contribution Support Thread
@magz the fix for your issue is posted on the Edit Orders 4.1 support thread here: http://www.zen-cart.com/showthread.p...03#post1205703
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Thanks swguy! This seems to have fixed the problem for me. ~magz
-
Re: Better Together Contribution Support Thread
Is there anywhere I can see this plugin in action?
Thanks
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
uswebworx
Is there anywhere I can see this plugin in action?
Thanks
You can see the demo on the author's site:
http://www.thatsoftwareguy.com/thats...products_id=12
-
Re: Better Together Contribution Support Thread
It didn't load which is why I asked :cool: but thanks
-
Re: Better Together Contribution Support Thread
It's working for me. Try a shorter url, maybe that's the problem:
http://bit.ly/16SAnko
-
Re: Better Together Contribution Support Thread
It worked when you posted it it didn't work from wherever I found it :) sorry I wasn't clear.
Thanks a ton! About to test it with our boot site!
-
Re: Better Together Contribution Support Thread
These demo URLs are also provided in the help page on my site.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
These demo URLs are also provided in the help page on my site.
Thank you Scott!
-
Re: Better Together Contribution Support Thread
Hi
I understand how better together works, but I am trying to figure out if it is the correct plugin I need to solve the problem I have.
I have a category that is two for the price of, so for example, one product cost X but buy two of those products and get it for price y. if the customer buys three products they get the discount on the first two but not the third but again on four products the discount is given.
I have messed about with this plug in but it doesn't entirely achieve what I would like. so either A; I haven't correctly set it up or B: I need something else to achieve the result I am looking for...
Thanks for any help.
-
Re: Better Together Contribution Support Thread
Better Together doesn't work exactly this way.
It is a discount module, and the price reduction is structured as a discount off the second item (not the final price of A+B).
So if A and B are linked, buy A+B will give 1x the B discount. Buy A + 2B still gives 1x the B discount. Buy 2A + 2B gives 2x the B discount.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Better Together doesn't work exactly this way.
It is a discount module, and the price reduction is structured as a discount off the second item (not the final price of A+B).
So if A and B are linked, buy A+B will give 1x the B discount. Buy A + 2B still gives 1x the B discount. Buy 2A + 2B gives 2x the B discount.
Thanks for the reply.
Is there a plug in that will possibly create what I need.
Thanks for your time
-
Re: Better Together Contribution Support Thread
Hi all,
Glancing through the thread and the forum I am unable to find anything about the below scenario so hopefully there's a solution:
Using Zen 1.51
Better Together: Xsell (cross-sell), most recent.
Add two items under the xsell, one item sells. The item that sold is still showing up in the cross sell, since I list items in a SOLD category, but they ALL have the quantity of zero (0).
So, where can I tell xsell NOT to show items with the quantity of zero (0)?
Thanks
GJW
-
Re: Better Together Contribution Support Thread
Please post your setup() function (or at least the relevant lines).