Forums / Templates, Stylesheets, Page Layout / Better together issues

Better together issues

Locked

Started by sheila123 on 16 Apr 2009, 2:02 PM · Views: 1,947

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
16 Apr 2009, 2:02 PM
#1
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Better together issues

Okay, so I installed the better together in my root directory. I want to see if this product is actually what I'm looking for. Anyhow, the readme file is confusing.
It's saying to change all the file paths from custom to my template name.

Just where are all these files to change and how do I change them? I'm soooo confused

16 Apr 2009, 2:33 PM
#2
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Re: Better together issues

I think I found the resolve. Taken from the Software Guy's site

Better Together
In this example, we will assume your cart is installed under httpdocs/testsite on your webserver, and that your template is named "brownie."
Copy ./includes/languages/english/modules/order_total/ot_better_together.php to
/httpdocs/testsite/includes/languages/english/modules/order_total/ot_better_together.php
Copy ./includes/modules/order_total/ot_better_together.php to
/httpdocs/testsite/includes/modules/order_total/ot_better_together.php
Copy ./includes/templates/custom/templates/tpl_better_together_marketing.php to
/httpdocs/testsite/includes/templates/brownie/templates/tpl_better_together_marketing.php

16 Apr 2009, 2:50 PM
#3
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Re: Better together issues

Software guy...are you there?

Have a question. I see the instructions for coding the discounts. Like, buy one...cat 2, get one free cat 2.

I understand how to do that (I think). But I want to make sure...if that's all I want...that's all I have to change in the file, correct? That's the only code I'll be touching.??

I don't have to change anything under add_prod-prod.

16 Apr 2009, 3:03 PM
#4
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Re: Better together issues

And how would you code
Buy any item from cat 2 get another in cat 2 for $1. ?

:blink:

16 Apr 2009, 5:27 PM
#5
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Better together issues

Hi,

I'm not thatsoftwareguy, and I'm pretty sure he supports his add-ons on his own forum, but since I've used this mod before, I think I can answer your questions. ...

  1. buy one from category 21 (for example) and get one from category 21 free
    $this->add_prod_to_cat(21, 21, "%", 100);

  2. buy one from category 21 (for example) and get one from category 21 for $1.00
    $this->add_prod_to_cat(21, 21, "$", 1);

Both of those lines (the ones that start with $this) would go at the bottom of the file .../modules/order_total/ot_better_together.php

The examples in that file are commented out (wrapped in /* / symbols.) That means your working lines have to be outside of those wrappers, but still within the function. So put them just above the second-last } and under the last /.

Rob

Breakfast: the most important donut of the day.

16 Apr 2009, 7:08 PM
#6
sheila123 avatar

sheila123

Zen Follower

Join Date:
Mar 2009
Posts:
96
Plugin Contributions:
0

Re: Better together issues

Okay, I've done all this, put the includes/templates/template_default/templates/tpl_product_info_display.php into MY CUSTOM template area.

I'm not seeing any effect on my website. ??

I do see it says to make sure that the above file is in the same directory as the tpl_better_together_marketing.php

I'm not exactly sure what this means unless there's a step not listed in the install instructions and I was supposed to copy this marketing file and have it in the place the directions said to put it AND in my includes/templates/MYCUSTOM/templates/ area.

Help? Please. :frusty:

17 Apr 2009, 11:48 AM
#7
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Better together issues

All I did when I installed it was follow the folder structure as shown in the mod's own files. That is, I didn't change anything or move anything out of the folder structure that I found it in in the mod itself.

You say... "Okay, I've done all this, put the includes/templates/template_default/templates/tpl_product_info_display.php into MY CUSTOM template area." So just to be sure, the tpl_better_together_marketing.php file is also in that folder? And the code mentioned in step 6 of the install file was added to the tpl_product_info_display.php file? And you've edited the ot_better_together.php file to make your discounts? Then it should all work.

Maybe copy and paste here the code you're using for the discounts, in case there's something worng there.

A URL to your site would also help, so I can see what's happening myself.

Rob

Breakfast: the most important donut of the day.

17 Apr 2009, 10:38 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: Better together issues

sheila123:

And how would you code
Buy any item from cat 2 get another in cat 2 for $1. ?

This is not a supported discount. You can only express discounts in terms of dollars off or percent off. For what you're doing, you might just say buy one cat 2 get the second free:

function setup() {
$this->add_twoforone_cat(2);
}

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

17 Apr 2009, 10:42 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: Better together issues

rstevenson:

Hi,
I'm not thatsoftwareguy, and I'm pretty sure he supports his add-ons on his own forum, but since I've used this mod before, I think I can answer your questions. ...

Note that discount 2 cannot be done (as noted above). Rob's writeup of Discount 1 had a small typo in it:

  1. buy one from category 21 (for example) and get one from category 21 free
    $this->add_cat_to_cat(21, 21, "%", 100);

(he coded "add_prod_to_cat") This is probably closer to what you want than add_twoforone_cat, which allows 2 for 1 on the same item within a category.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

18 Apr 2009, 2:26 AM
#10
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Better together issues

"Rob's writeup of Discount 1 had a small typo in it: "

“I know you believe you understand what you think I said, but I am not sure you realize that what you heard is not what I meant.” - Richard M. Nixon

Rob

Breakfast: the most important donut of the day.

18 Apr 2009, 2:44 AM
#11
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Better together issues

Dang! I can't even get that right. Nixon was quoting Robert McCloskey. That's what I get for grabbing the first version of the quote I could Google.

I'm going to bed!

Rob

Breakfast: the most important donut of the day.