-
Re: Better Together Contribution Support Thread
Thanks for the reminder Swguy. I installed Better Together awhile back then forgot about it, and installed some more modules on top of that. So I wasn't entirely sure if the problem was because of the additional modules or not.
After reading through your help article... am I correct to think that if I have Better Together set up correctly using parent categories, if the customer buys from a linked category, they will still get the discounts?
Quote:
Originally Posted by
swguy
-
Re: Better Together Contribution Support Thread
You must refer to the parent category (not the linked category) in your add_ statement. And be careful about using the Marketing text - see the notes in the page I gave you for ideas on how to do this.
-
Re: Better Together Contribution Support Thread
Quick reminder for new users and people who just want to learn more about Better Together: there is extensive documentation, examples, code fragments, frequently asked questions, etc. available on my home page. The link is in the Better Together readme file, or you can just go to my home page and click the Zen Cart link and search for Better Together.
I only update the readme file in the contribution when I update the software, but the documentation on my home page is updated constantly. Better Together just had its third birthday (!), so chances are, someone has had the same questions you're having and I've put answers on this page.
-
Re: Better Together Contribution Support Thread
A couple of days ago I posted a fix to the Better Together Promotional Page for category images. If you're not using this contribution in conjunction with Better Together, you really should be. Take a look at the support thread at
http://www.zen-cart.com/forum/showth...285#post772285
for details. I intend to add images to the marketing text as well, but this is the first installment.
Scott
-
Re: Better Together Contribution Support Thread
Two quick questions:
I have an item already on sale - and it's taking 50% off the regular price instead of the sale price. Is there a fix for this? Or something I'm missing that is obvious?
Customers can buy 1/2 increments of the promoted products - but the discount is always figuring on units of 1. Recommendations?!?!?
Thanks!
Melanie
-
Re: Better Together Contribution Support Thread
Question 2: Better Together only handles units of 1.
Question 1: On a fresh install of 1.3.8 this does not happen. You have introduced a bad change, or perhaps the item has some extra charge, perhaps an attribute? It discounts off the "final price" in the basket which includes the sale discount.
-
Re: Better Together Contribution Support Thread
Thanks. It was just me being dumb not an actual problem. The products were priced the same and i put the full price item as the 50% off item - once I switched them around it worked.
Melanie
-
Re: Better Together Contribution Support Thread
I received an email yesterday asking about images for the Better Together Marketing text. I have moved this to the top of my todo list and will deliver something by the end of the year.
-
Re: Better Together Contribution Support Thread
OK, I have just installed the Better Together Promotional Page, but I couldn't figure out/find anything related on my product pages, I tried every thing like go through the whole process of purchasing a product.. Do I need to install an extra thing to make it work? I was expecting to have a control on that from the admin panel ! shouldn't I ?
-
Re: Better Together Contribution Support Thread
The promotional page is completely separate from your product info pages.
To get the marketing text on your product info pages, follow these instructions:
http://www.thatsoftwareguy.com/zenca...html#marketing
This will show a message if you have a discount on the item you are viewing. The promotional page shows *all* discounts.
You must install Better Together and add a discount to the setup() function before doing this so that there's something to show.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
The promotional page is completely separate from your product info pages.
To get the marketing text on your product info pages, follow these instructions:
http://www.thatsoftwareguy.com/zenca...html#marketing
This will show a message if you have a discount on the item you are viewing. The promotional page shows *all* discounts.
You must install Better Together and add a discount to the setup() function before doing this so that there's something to show.
Thanks swguy for you quick reaction, I understood now how the first one to use but what do you mean by You must install Better Together and add a discount to the setup() function before doing this so that there's something to show. can you please explain more because I thought that can be done from the admin panel ! right ?
-
1 Attachment(s)
Re: Better Together Contribution Support Thread
Better Together users waiting for images in marketing text: you should be backing up your setup() functions *now* to prepare to reinstall when Better Together 2.1 is released. You will need to reinstall all files.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
The promotional page is completely separate from your product info pages.
To get the marketing text on your product info pages, follow these instructions:
http://www.thatsoftwareguy.com/zenca...html#marketing
This will show a message if you have a discount on the item you are viewing. The promotional page shows *all* discounts.
You must install Better Together and add a discount to the setup() function before doing this so that there's something to show.
First I installed both better together and the promotional one, but I still don't see any thing related to the better together module as it didn't show in the Admin panel-Modules -Order total ! why is that ? although I'm sure that I have uploaded everything to the right locations and also about the function setup() where should I put that ! in which page ? and why it is so complicated can I just do that from the admin panel without bothering about any coding !
-
Re: Better Together Contribution Support Thread
All of your questions are answered in the documentation. Start with the readme file and take the time to read the whole thing. Then go to my web page and read the extended help, which provides even more examples. Again, take your time and read the whole thing. There's a lot to Better Together. It's a large and complex system. Some people have to hire out the installation and maintenance of things like this, and some people use other solutions like Cross Sell because they find Better Together too hairy. It's entirely your choice.
-
Re: Better Together Contribution Support Thread
So as alternative solution do you advice me to go to Cross Sell as it sounds less complicated ?
and is here the final version for that ?
http://www.zen-cart.com/index.php?ma...roducts_id=309
-
Re: Better Together Contribution Support Thread
Ok this is my test store and I did everything as it it's written in the README file, Please see what I got , a products with no quantity boxs, no "Add to cart" in short no buttons show with the products .. I really need help.. :frusty:
http://www.arab-broker.com/clothes
-
Re: Better Together Contribution Support Thread
The problem you're having now is called the Blank Page problem. Here's how to fix it:
http://www.zen-cart.com/forum/showthread.php?t=84613
You're getting in trouble because you're trying to do too much at once. If you can't fix the issue you have with these instructions, restore from a backup and then install JUST Better Together. Get that to work. Then install the marketing text. Get that to work. Then install the promotional page.
-
Re: Better Together Contribution Support Thread
That's what I'm trying to do now Swguy, and that's what I got in my caches log file :
PHP Fatal error: Class 'ot_better_together' not found in /home1/arabbro1/public_html/pc2all/includes/templates/silverfish/templates/tpl_better_together_marketing.php on line 8
So what dose that mean ?
-
Re: Better Together Contribution Support Thread
Please put an ad in the Commercial Help Wanted section for someone to install it for you. I really can't debug your installation on the forum.
-
Re: Better Together Contribution Support Thread
Better Together 2.1 is now available in the Free Software Downloads area. This version adds images to the Better Together Marketing text. Please reinstall all files! You must also change the inclusion in your tpl_product_info_display.php file from
<?php
require($template->get_template_dir('/tpl_better_together_marketing.php',DIR_WS_TEMPLATE,
$current_page_base,'templates'). '/tpl_better_together_marketing.php');
?>
to
<?php
require($template->get_template_dir('/tpl_better_together_marketing_images.php',DIR_WS_TEMPLATE,
$current_page_base,'templates'). '/tpl_better_together_marketing_images.php');
?>
The actual display of images is controlled in this template file, which you can modify to your taste. The use of images on the product info page and/or on the promotional page is optional; again, mix or match and adjust to taste.
-
Re: Better Together Contribution Support Thread
thanks for the mod!
I give it a lovely style! lol
-
Re: Better Together Contribution Support Thread
Is there a way, to manage the images? I mean... I want it a bit more smaller... but I don't want change the size of all the images of my site... just the better together images...
thanks in advance...
-
Re: Better Together Contribution Support Thread
Nothing is built in to do this; you'd have to change the code.
-
Re: Better Together Contribution Support Thread
ok... thank you... may be a future modification? lol
I'm not developer... so... I will leave it in the way is now
thank you!
btw... I just install the old version... when I notice the new version... with the images in the promotional text... I don't want it... because the images of my site are big to have in the promotional text... in the special page... I delete the images...
can I continue with my old version? or you think is mandatory update?
-
Re: Better Together Contribution Support Thread
You don't need to use the images in the promotional page if you don't want them. Just edit
./includes/templates/YOUR TEMPLATE/templates/tpl_bettertogether_promo_default.php
and delete the third echo in the loop where the images are printed out.
-
Re: Better Together Contribution Support Thread
yes... I do that in the previous version too... for that reason... like I have the mod like I want... will be mandatory the update? just asking...
-
Re: Better Together Contribution Support Thread
If you use the new Better Together, you must use the new promotional page, and vice versa.
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Hello,
I'm using ZenCart 1.3.7.1 with BT 2.1.
I have the following scenario - I want to offer discount CAT TO CAT or PROD TO CAT. So if I add one product from Cat1 and 5 products for Cat2, I want the % discount to be applied to all 5 products in Cat2.
At the moment I think it only applies the discount the product from Cat2 that is cheapest.
Is there a way I can do this, modify something in the code for example?
Thanks
-
Re: Better Together Contribution Support Thread
You can't do this with Better Together. Response by PM.
-
Re: Better Together Contribution Support Thread
Hi,
I am trying to choose between the discount mods but not sure which will do what I want. I just want a simple buy A and get B at a discount, but want to have it so that the customer can choose how many of B they want, but not more than the qty of A. They have a minimum buy of A if that makes a difference
Eg. They buy 8 A, so they can have 1-8 B's at a discount.
Is this possible?
Thanks
-
Re: Better Together Contribution Support Thread
Yes, this is how it works. If A is product 10 and B is product 20, and you do
$this->add_prod_to_prod(10, 20, "%", 50);
You only get 50% off every product 20 for every product 10 you buy.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Yes, this is how it works. If A is product 10 and B is product 20, and you do
$this->add_prod_to_prod(10, 20, "%", 50);
You only get 50% off every product 20 for every product 10 you buy.
Thanks man, all your mods rock! Im downlading it now.
-
Re: Better Together Contribution Support Thread
ouch my head hurts! is there any easy way of making promotions on this module? Ireally am not confident enough to go editing files etc. I have the module installed and all looks great. i cannot find any interface on the admin panel to easily set up discounts? Am i correct in thinking that all discounts are set up by using codes in the actual files on the server?
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
Xbox Memberships
Am i correct in thinking that all discounts are set up by using codes in the actual files on the server?
Yes. Follow the directions and the examples provided on the help page.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Yes. Follow the directions and the examples provided on the help page.
ok so turns out i didnt have it installed correctly and now if you look at my home page it is displaying a link to the better together pages but it cuts across the centre and shows as
CATEGORIES_BOX_HEADING_BETTERTOGETHER_PROMO
and the page it links to displays this....
Home :: NAVBAR_TITLE
HEADING_TITLE
any chance of a quick helping hand to set up 3 discounts which is all i want really for a small fee. wouldn't normally ask but you know your stuff and im installing on a live running store :oops:
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
need help with editing the order total file ot_better_together.php im getting a blank page for step 2 in checkout each time I edit it. followed instructions to the letter this time and still nothing!
im using the admin panel if anyone else has had this problem and knows the cause?
editing the following line....
function setup() {
// Using Better Together Admin? Uncomment this out
/*
if (!IS_ADMIN_FLAG) {
require(DIR_WS_MODULES . 'better_together_admin.php');
}
and according to the instructions it should be....
function setup() {
if (!IS_ADMIN_FLAG) {
require(DIR_WS_MODULES . 'better_together_admin.php');
}
}
I've already paid 1 $60 fee for the admin panel i really can't afford the other $60 when i know this is the only thing stopping it working :(
-
Re: Better Together Contribution Support Thread
To see the error message add following code to the top of admin/includes/application_top.php file (after <?php):
PHP Code:
@ini_set('display_errors', '1');
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
iRAY
To see the error message add following code to the top of admin/includes/application_top.php file (after <?php):
PHP Code:
@ini_set('display_errors', '1');
well i have just tried that and it still displays as a plain grey screen :( no error message try it yourself mate i'll pm you the address for my site. All you need to do is make a new account and add 12 months xbox live to the cart and lost game (preowned) which is the only discount i have currently set up.
-
Re: Better Together Contribution Support Thread
Does anyone have an answer for this problem, please? I installed the mod today, and everything works until step 2 of checkout when I get a blank page. Checkout works perfectly well when the mod is installed but the ot_better_together.php is NOT altered, but as soon as I try to set a function, I get the error.
I would greatly appreciate some help. :)
-
Re: Better Together Contribution Support Thread
I had the same problem and a member of the forum helped me out with it. I'd purchased the admin panel though aswell which makes life so much easier :)
-
Re: Better Together Contribution Support Thread
PSP Queen, you need to *carefully* follow the examples provided in the help
http://www.thatsoftwareguy.com/zenca..._together.html
For instance, discounting product 12 by 50% when product 14 is purchased:
function setup() {
$this->add_prod_to_prod(14, 12, "%", 50);
}
Other examples are provided in the help.
-
Re: Better Together Contribution Support Thread
Well, thanks for your reply, but please do not assume I have not 'carefully followed' your examples. I have; in fact I have copied and pasted the exact code for what I want from your information pages, just like you have shown me above. When that didn't work I tried copying and pasting the handy examples in the actual php file. I tried all combinations to see if I could find one that worked and then see where I was going wrong. All I changed were the numbers for the categories, so mine read:
function setup() {
$this->add_twoforone_cat(23);
}
That's it. No matter how many times I look at it I can't see where I've got any code wrong. Just to make sure, I've tried it again, copying your code above and just changing the numbers. Again I get the blank page.
Is there any other reason this would not be working?
-
Re: Better Together Contribution Support Thread
If you're getting a blank page, you'll need to follow these directions to debug it:
http://www.zen-cart.com/forum/showthread.php?t=84613
-
Re: Better Together Contribution Support Thread
Slightly later:
After trying again with your code above, I have finally got it to work - by leaving off the trailing bracket. Whether it's supposed to be there or not I'm not sure but my installation seems to work without it, which is all that matters.
-
Re: Better Together Contribution Support Thread
Hmmm.... you might be getting in trouble with having blank lines after the
?>
Be sure when you transfer files to your server that the very last line is that closing tag.
-
Re: Better Together Contribution Support Thread
It is, there are no blank lines after ?> The bracket I removed was at the end of your code above.
-
Re: Better Together Contribution Support Thread
Better Together 2.2 is now available. This version features another tax setting (Re-Calculate Tax = VAT) for tax included shops. If you do not run with Display Prices with Tax = true, you may skip this upgrade.
An additional change was made for currency-based discounting for tax included shops. Now *all* discounts - not just percent off discounts - are grossed up for taxes if you use include_tax = yes. In some earlier versions, I tried not grossing up dollar based discounts. However, I believe uniform treatment is a more consistent and logical approach.
-
Re: Better Together Contribution Support Thread
Better Together will work fine for non-VAT liable, non-tax-included shops in 1.3.9. I will release another version after 1.3.9 is finalized which is compliant with the new style of tax handling for tax-included shops in 1.3.9.
-
Re: Better Together Contribution Support Thread
Better Together 2.3 has been released, with support for Cross Selling (undiscounted linkages). Cross sells are shown in a new centerbox on the product info page.
-
Re: Better Together Contribution Support Thread
Fantastic mod! :clap:
I was added a fieldset to the marketing text template (tpl_better_together_marketing_images.php) to put a label on it. However, the fieldset and label shows even when there are no "Better Together" discounts.
Code:
<!-- bof Better Together Marketing -->
<fieldset><legend><i>Our "Better Together" Deals:</i></legend>
<?php
// Better Together Discount Marketing
$value = "ot_better_together.php";
include_once(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] .
'/modules/order_total/', $value, 'false'));
include_once(DIR_WS_MODULES . "order_total/" . $value);
$discount = new ot_better_together();
if ($discount->check() > 0) {
$resp = $discount->get_discount_info($_GET['products_id'], $current_category_id, true);
$rresp = $discount->get_reverse_discount_info($_GET['products_id'], $current_category_id, true);
if ( (count($resp) > 0) || (count($rresp) > 0) ) {
$marketing_data = array_merge($resp, $rresp);
echo '<div class="content" id="betterTogetherDiscountPolicy">';
for ($i=0, $n=count($marketing_data); $i<$n; $i++) {
echo '<hr />';
echo '<div class="discountText">';
echo $marketing_data[$i]['data'];
echo '</div>';
echo '<div class="discountImages">';
echo
$marketing_data[$i]['first_href'] .
$marketing_data[$i]['first_image'] . '</a>' .
'<span class="product_plus">+</span>' .
$marketing_data[$i]['disc_href'] .
$marketing_data[$i]['second_image'] . '</a>';
if (isset($marketing_data[$i]['bbn_string'])) {
echo '<span class="bbn_button">' . $marketing_data[$i]['bbn_string'] . '</span">';
}
echo '</div>';
}
echo '</div>';
echo '<br class="clearBoth" />';
}
}
?>
</fieldset>
<!-- eof Better Together Marketing -->
I tried inserting after the IF statement but doesn't seem to like that...:oops: where should it go so as not to show up when no products are linked?
Thanks!
-
Re: Better Together Contribution Support Thread
You could move the fieldset stuff below
if ( (count($resp) > 0) || (count($rresp) > 0) ) {
Or you could just create some Better Together Discounts! :smile:
-
Re: Better Together Contribution Support Thread
Thanks for such a quick reply...
Quote:
Originally Posted by
swguy
You could move the fieldset stuff below
if ( (count($resp) > 0) || (count($rresp) > 0) ) {
When I do that the "Better Together" and the "May We Also Recommend" box doesn't show at all. :dontgetit
Quote:
Or you could just create some Better Together Discounts! :smile:
might just have to do that! :yes:
-
Re: Better Together Contribution Support Thread
You have to move the closing fieldset above the clearBoth.
-
Re: Better Together Contribution Support Thread
Thx for the help... I moved </fieldset> there and it didn't work. I tried each line just for giggles... no luck. Tried with and without the ; at the end of the line.
Code:
if ( (count($resp) > 0) || (count($rresp) > 0) ) {
<fieldset><legend><i>Better Together</i></legend>;
$marketing_data = array_merge($resp, $rresp);
echo '<div class="content" id="betterTogetherDiscountPolicy">';
for ($i=0, $n=count($marketing_data); $i<$n; $i++) {
echo '<hr />';
echo '<div class="discountText">';
echo $marketing_data[$i]['data'];
echo '</div>';
echo '<div class="discountImages">';
echo
$marketing_data[$i]['first_href'] .
$marketing_data[$i]['first_image'] . '</a>' .
'<span class="product_plus">+</span>' .
$marketing_data[$i]['disc_href'] .
$marketing_data[$i]['second_image'] . '</a>';
if (isset($marketing_data[$i]['bbn_string'])) {
echo '<span class="bbn_button">' . $marketing_data[$i]['bbn_string'] . '</span">';
}
echo '</div>';
}
echo '</div>';
</fieldset>;
echo '<br class="clearBoth" />';
-
Re: Better Together Contribution Support Thread
:blush:
Code:
?>
<fieldset><legend><i>Save with Our "Better Together" Deals</i></legend>
<?php
I really should learn how to code... of course my "try everything and see if it works" method isn't so bad... just real slow. :flex:
Thanks for the help. Now I'm off to your site to purchase the "Buy Both Now" button
-
Re: Better Together Contribution Support Thread
I was looking through this add on, and quite honestly, it looks pretty darn solid and flexible. I do have a question though.
I'm looking to start out by using it specifically as a cross-sell tool, but eventually expanding on the other features.
Here's the question..... If I...
$this->add_cat_to_cat(a, b, "X", 0);
as a cross sell between catagories a and b, just how many items will display in the 'you may also like' centerbox? Is it limited to displaying a certain number of random items or will the entire catagory display?
I'm curious as to how I need to handle this:smile:
Thanks in advance!
-
Re: Better Together Contribution Support Thread
In the formulation you used, only the category image for category B would be used. If you want to display specific products, you would need to use add_cat_to_prod() and use specific product ids.
-
Re: Better Together Contribution Support Thread
Thanks for the quick response, good information to know. Does it limit the number of items in the centerbox for cross sell items or does it list everything you put in for paramaters?
Being selectful isn't a problem, I just dont want to overload a box with things! :)
-
Re: Better Together Contribution Support Thread
I've had a look through the support thread and can't find anything relating to this, but apologies if it's already been answered somewhere else.
Is it possible to modify this module to be able to create linkages between linked products in a category rather than using their master category id. I understand that the lack of this functionality is covered in the documentation and am wondering if it is actually possible or if there is something which hinders its integration.
For example a product 'Cotton T-Shirt' has a master category of 'Shirts' and is linked to a hidden category 'cotton shirts'. I would like to add a linkage to all products in the hidden category 'cotton shirts' to a particular product, but not all the products in 'Shirts'.
Thanks.
-
Re: Better Together Contribution Support Thread
It is certainly possible, but a complete implementation would require a lot of changes (and a boatload of even more confusing documentation), so I didn't go this route, although I seriously considered it at one point.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
It is certainly possible, but a complete implementation would require a lot of changes (and a boatload of even more confusing documentation), so I didn't go this route, although I seriously considered it at one point.
I have to agree, this module needs to support linked products. For example, then it would be so easy to throw a bunch of products into a sale category for a BOGO sale.
Otherwise, changing the master category id could be detrimental to SEO. Please consider using the function
PHP Code:
zen_product_in_category(products_id, category_id)
This function works for linked products and top level categories.
-
Re: Better Together Contribution Support Thread
Try this for cat to cat discounts:
PHP Code:
function get_discount($discount_item, &$all_items) {
$discount = 0;
for ($dis=0, $n=count($this->discountlist); $dis<$n; $dis++) {
$found_match = false;
$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 {
$found_match = true;
}
} else { // CAT_TO_CAT, CAT_TO_PROD
// check to make sure a discount product has been added
if (zen_product_in_category((int)$discount_item['id'], $li->ident1)) { // modified to support linked products and top level categories
$found_match = true;
} else {
continue;
}
}
if ($found_match) {
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
// check that a product in the other category exists
if (zen_product_in_category((int)$all_items[$i]['id'], $li->ident2)) { // modified to support linked products and top level categories
$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;
}
return $discount;
}
}
}
}
return 0;
}
You'll have to apply this to the other methods, but it's all I needed.
-
Re: Better Together Contribution Support Thread
I'm on Zen-Cart 1.3.9d with Better Together Marketing 2.3 and thought I should share a small HTML tag compliance issue I found today in the following files:
includes\templates\CUSTOM_TEMPLATE\templates\tpl_better_together_marketing.php
includes\templates\CUSTOM_TEMPLATE\templates\tpl_better_together_marketing_image s.php
Inside the for loop, the php echo that generates the span tag has a double quote ( " ) in the closing span tag. See below:
tpl_better_together_marketing.php:
PHP Code:
for ($i=0, $n=count($marketing_data); $i<$n; $i++) {
echo '<div class="discountText">';
echo $marketing_data[$i]['data'];
echo '<span class="bbn_button_noimg">' . $marketing_data[$i]['bbn_string'] . '</span">';
echo '</div>';
}
tpl_better_together_marketing_images.php:
PHP Code:
for ($i=0, $n=count($marketing_data); $i<$n; $i++) {
echo '<hr />';
echo '<div class="discountText">';
echo $marketing_data[$i]['data'];
echo '</div>';
echo '<div class="discountImages">';
echo
$marketing_data[$i]['first_href'] .
$marketing_data[$i]['first_image'] . '</a>' .
'<span class="product_plus">+</span>' .
$marketing_data[$i]['disc_href'] .
$marketing_data[$i]['second_image'] . '</a>';
if (isset($marketing_data[$i]['bbn_string'])) {
echo '<span class="bbn_button">' . $marketing_data[$i]['bbn_string'] . '</span">';
}
echo '</div>';
}
The double quote needs to be removed as it causes formatting issues in the final DOM display that permeates through the balance of the page. Basically, it prevents the echo of the two closing div tags. Found this using the developer tools in IE8, viewed the source for the Page DOM and spotted the missing closing div tags.
Search for: and replace it with: BTW: Thanks to Software Guy for this great add-on.
-
Re: Better Together Contribution Support Thread
Thank you very much for reporting this; I will fix it shortly.
That Software Guy
-
Re: Better Together Contribution Support Thread
I have a product which I need to offer free ONLY when any item from a certain Manufacturer is purchased.
Ideally, the free product should be visible in my store, but not purchasable. Customers should be advised that the only way to get it is to buy something from manufacturer X.
Could you tell me if this is possible to set up using Better Together?
Thanks!
-
Re: Better Together Contribution Support Thread
Better Together will not do this.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Better Together will not do this.
Oh, that's disappointing!
But thanks for you prompt reply :-)
-
Re: Better Together Contribution Support Thread
I've installed this but have a feeling it's not going to work for me but after hours of work I thought i'd ask.
Two things I'm trying to do.
First issue:
I want to offer a discount off category B (stitch markers) if any product in category A (hand dyed yarn) is purchased.
The problems: The products in category A are in 7 sub categories. So I have to do the 7 separate discounts - this is fine but when you use the marketing tool it list all 7 discounts which doesn't look very good.
Second issue the products in Category B (stitch markers) are populated from products put straight into this category and also linked from a hidden master category (that of a different manufacturer so that sales etc could be done just for that manufacturer) So therefore I have to do the discounts for both of these categories. Also not a problem but in the marketing it then shows up as Buy Item A Get 20% off Item B (with both of item B's titles showing up including the hidden category.
Really I'd just like to do a simple Buy from category A (and any of it's sub categories) get 20% off Category B (and any linked items in it) but I believe i can't do that (and it didn't work when I tried, lol).
I did do the changes in tpl_better_together_marketing.php from this page http://www.thatsoftwareguy.com/zenca...ry_issues.html (adding the bit of code and changing to $category) but this didn't make any differences.
So is there any way of doing this so the marketing doesn't show up all the different sub categories?
I'm thinking it would just be neater to offer a discount code on the home page.
Also second issue.
It appears that only one product is discounted??
If I put in one lot of category A (yarn) and 2 lots of category B (stitch markers) then only one of the category B products were discounted. Is this correct?
My URL is http://www.artezan.com.au though I have taken the Best together links off.
Thank you so much for any help.
-
Re: Better Together Contribution Support Thread
Only one B is discounted if it's Buy A get B at a discount. To discount 2 B's you must buy 2 A's.
"Category" in Better Together means "parent category" (master category id).
Further response by PM.
-
Re: Better Together Contribution Support Thread
I'm using 1.3.9d
The problem:
When I go to the checkout the items in there point to an invalid url if I want to click back to the product I'm purchasing. They show like
http://www.mysite.com/index.php?main...c6de9b089488b6
-
Re: Better Together Contribution Support Thread
This has nothing to do with Better Together. You probably have an issue with your configure.php files if this is what's happening.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
lanpartyjoe
It was a problem with SEO URLs not being updated
-
Re: Better Together Contribution Support Thread
Hi, I am sorry if this is covered elsewhere but I can't seem to find the answer.
I have a wholesale website that I'm about to launch (zen cart 1.3.8a) and while all the products are already discounted I love the idea of being able to cross sell or have a 'candy bar' at the checkout to upsell our wholesalers with related items to what they have already put into their shopping cart.
ie if they are purchasing corsets to upsell fishnets, buying a racer costume then they may want to add the checkered long socks or a cap etc
However I don't want to create further discounts all the time. Can Better together & candy bar work without creating addtional discounts? Simply as a way to recommend related products at the checkout?
Any help or advice is greatly appreciated!!
:smile:
-
Re: Better Together Contribution Support Thread
Instead of using "$" or "%" when you create your discounts, you can create cross sells using "X". Review the readme and the help file on my home page to get the details.
-
Re: Better Together Contribution Support Thread
What im after doing is, offering item X free of charge when you purchase any product from any catagory
is this possible?
Ta
Rob
-
Re: Better Together Contribution Support Thread
Not easily. It might be better to create a coupon just for this item and attach a minimum order dollar amount to it.
-
Re: Better Together Contribution Support Thread
thankyou, i never thought of doing it that way
Rob
-
Re: Better Together Contribution Support Thread
i just had the mod installed today and i am just now getting around to playing with it.
here is the scenario i am going for:
spend $X in store (any product, any category) and get SPECIFIC product FREE.
i was hoping to use this set ip:
■add_cat_to_prod()
cat = category includes anything from my shop
prod = specific item i want to give free.
is there a way to add a minimum dollar amount from the category to allow this to work?
or is there another mod i should be looking for to achieve this???
thanks in advance!
-
Re: Better Together Contribution Support Thread
-
Re: Better Together Contribution Support Thread
Would there be a way to set this up so that you could offer "buy two products and get one item of equal or lesser value for free", where if there were 3 items in the cart, it would give the lowest valued item for free. It would obviously need to work in multiples. If 6 items were in the cart, it would give the 2 lowest valued items for free. Is this capable of that? Or is there any way of making it do that?
-
Re: Better Together Contribution Support Thread
No. Better Together works on single items. See PM.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Response by email.
thanks scott. i am looking into the big spender mod. still trying to figure out the coding with this one though...wish i had more time!
thanks again.
-
1 Attachment(s)
Re: Better Together Contribution Support Thread
ok...i am this file: ot_better_together.php located here:
/public_html/includes/modules/order_total/
i am trying to add a simple discount....using scott's sample from the info page:
function setup() {
$this->add_prod_to_prod(161,162,"%", 50);
}
but i still keep getting a blank page when it comes time to checkout.
this is what i am seeing in the php file, and i know a bunch of coding examples are included, so i don't know if i need to delete anything in the php file to make the discounts work?
here is a screen shot (the highlighted part is what i am trying to add):
-
Re: Better Together Contribution Support Thread
You need to REPLACE the entire setup function with what you had. You left the rest of the code in.
It should look like this:
function setup() {
$this->add_prod_to_prod(161,162,"%", 50);
}
-
Re: Better Together Contribution Support Thread
ok...so the function should be the last thing in the php file:
function setup() {
$this->add_prod_to_prod(161,162,"%", 50);
}
and nothing below it? is that right?
that is what i have right now and i am still getting a blank page and HTTP 500 Internal Server Error. ???
-
Re: Better Together Contribution Support Thread
I suspect you've deleted the final brace "}" which is required to close out the body of the class.
-
1 Attachment(s)
Re: Better Together Contribution Support Thread
there is only one brace } which is on the final line after the semi-colon.
adding another screen shot...there are no words or symbols after my discount coding....these are the final 3 lines of the file:
function setup() {
$this->add_prod_to_prod(161,162,"%", 50);
}
i don't know what i am missing?? thanks for your help!
-
2 Attachment(s)
Re: Better Together Contribution Support Thread
i just want to be sure that i am grabbing the right category and product numbers to be inserting into the function.
the numbers on the left side of each screen shot? this is what i am supposed to be using right??
if so, i am still having the same problem as mentioned above. awaiting your reply. thanks!
-
Re: Better Together Contribution Support Thread
See previous response. After the setup function is a final brace that ends the class.
setup() {
.... bla bla bla
}
}
You have probably deleted the final brace.
-
Re: Better Together Contribution Support Thread
ahhh! there is actually 2 braces! so i WAS missing the last one!!! i see my discounts now! THANKS! can't wait to start playing!!!
-
2 Attachment(s)
Re: Better Together Contribution Support Thread
i am LOVING this mod!!! i have managed to do quite a bit of customizing to suit my store, but i was wondering if there was a way to change the wording "Better Together Discounts" shown in my side bar and title on the page from the Marketing Page Mod?
i am attaching 2 screen shots
thanks in advance!
-
Re: Better Together Contribution Support Thread
Language strings are in
./includes/languages/english/modules/order_total/ot_better_together.php
for Better Together and
./includes/languages/english/extra_definitions/custom/bettertogether_sidebox_defines.php
./includes/languages/english/extra_definitions/custom/bettertogether_promo.php
./includes/languages/english/custom/bettertogether_promo.php
for Promo Page. Customize them as you wish!
-
Re: Better Together Contribution Support Thread
ok...that's what i thought, but wasn't sure what to change, but i will play more today.
another quick question, can you confirm whether or not the Big Spender Mod will work with the Better Together Mod???
thanks! :)
-
Re: Better Together Contribution Support Thread
Please note that my commercial offerings are not supported on the forum; response by email.
-
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Please note that my commercial offerings are not supported on the forum; response by email.
got your message! THANKS:)
-
2 Attachment(s)
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
Language strings are in
./includes/languages/english/modules/order_total/ot_better_together.php
for Better Together and
./includes/languages/english/extra_definitions/custom/bettertogether_sidebox_defines.php
./includes/languages/english/extra_definitions/custom/bettertogether_promo.php
./includes/languages/english/custom/bettertogether_promo.php
for Promo Page. Customize them as you wish!
i have changed the "better together" wording in each of the files you mentioned above. but i can't seem to find the one that allows me to edit the wording on the actual promotional product page, which shows the discount (see screen shot 1).
also, i used your coding for simple cross selling, and they are not showing up on my marketing page or on the indicated products. i already changed the marketing template, so that my better together discounts show on the product page already, but i didn't know if that was the same coding needed for the cross-selling to show up too?? see screen shot2
thanks again:) i am so much enjoying this mod!! lots of possibilities. once i get this one all figured out, i have some others on my wish list!! :)
-
Re: Better Together Contribution Support Thread
sorry for another post, but it wouldn't let me edit my last one.
anyway, i figured out the solution to my first issue about.
but my cross-sell items still aren't showing up?? any suggestions as to why?
-
Re: Better Together Contribution Support Thread
The cross sell items don't show up on the promotional page.
They should show up on the product info page if one of the items in the cross sell linkage matches the product id you are displaying, assuming you have correctly included tpl_better_together_xsells.php as described in the documentation.