This mod permits you to offer this type of discounted cross selling in your OpenCart.
You may specify
* Buy item <x>, get item <y> at a discount
* Buy item <x>, get an item from category <c> at a discount
* Buy an item from category <a>, get an item from category <c> at a discount
* Buy an item from category <a>, get item <x> at a discount
Discounts may be specified as percentages of the latter item's price or as
absolute values in the currency you cart uses.
Detailed documentation is provided in the README file and on my home page, at
http://www.thatsoftwareguy.com/opencart ... ether.html
At the moment, linking must be done in code by default. The Better Together Admin Panel is coming soon.
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
This is the rule I have tried to use
Code: Select all
$this->add_prod_to_prod(4584, 4621, "%", 50);
Code: Select all
2014-10-07 9:42:02 - PHP Warning: Missing argument 4 for ModelTotalBetterTogether::add_prod_to_cat(), called in /var/www/vhosts/aotf.co.uk/httpdocs/catalog/model/total/better_together.php on line 412 and defined in /var/www/vhosts/aotf.co.uk/httpdocs/catalog/model/total/better_together.php on line 255
2014-10-07 9:42:02 - PHP Notice: Undefined variable: amt in /var/www/vhosts/aotf.co.uk/httpdocs/catalog/model/total/better_together.php on line 258
Opencart sites I am currently working on:
http://www.cablecafe.co.uk
http://www.exclusivelygorgeous.co.uk/
I want to do a buy something from category 83 or 79, get something from category, 80,81,82 or 107 for 40% off.
So I added this:
Code: Select all
$this->add_cat_to_cat(83,80,"%", 40);
$this->add_cat_to_cat(79,80,"%", 40);
$this->add_cat_to_cat(83,81,"%", 40);
$this->add_cat_to_cat(79,81,"%", 40);
$this->add_cat_to_cat(83,82,"%", 40);
$this->add_cat_to_cat(79,82,"%", 40);
$this->add_cat_to_cat(83,107,"%", 40);
$this->add_cat_to_cat(79,107,"%", 40);
If you mean "Buy 1 product from category 3, get the second one free" you domarijan100 wrote:How i can add rule:
If buy 2 product from category 3 from category will be free?
Tnx.
Code: Select all
private function setup() {
$this->add_cat_to_cat(3,3,"%", 100);
}
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
The error message and the code you posted don't line up. (The error shows add_prod_to_cat, and your code shows add_prod_to_prod.)jrfcomputing wrote:Hi I have installed on to my cart version 1.5.6.4 and it just crashes my site when I try to add any rules
This is the rule I have tried to use
Response from my logsCode: Select all
$this->add_prod_to_prod(4584, 4621, "%", 50);
Code: Select all
2014-10-07 9:42:02 - PHP Warning: Missing argument 4 for ModelTotalBetterTogether::add_prod_to_cat() ...
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
As each condition is matched with a discount item, that condition is not available for further discounting. There is a switch in the Zen Cart version of Better Together that allows you to override that; I will add it next time I update this module.CanadaPleco wrote:Okay I am having a couple issues.
I want to do a buy something from category 83 or 79, get something from category, 80,81,82 or 107 for 40% off.
So I added this:
...
It discounted the 40% for the first item, but then I added another item from category 79, and another of the discount items and it did not include a discount for the second one
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
$bt_one_to_many = false;
to
$bt_one_to_many = true;
and see if that works.
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
Cat 63 is E-juice
Cat 68 is Custom Juice (sub of 63)
Prod 50 is the Basic Starter Kit
$this->add_twoforone_cat(68);
$this->add_twoforone_cat(63);
// $this->add_twoforone_prod(154);
$this->add_prod_to_cat(50, 63, "%", 50);
$this->add_prod_to_cat(50, 68, "%", 50);
I left the remarked line, just to demonstrate one thing I've tried. Prod 154 is the actual Custom Juice product. If the cat 68 line is left out, it doesn't work at all on this product, but seems to work fine with every other product!
***Follow-up**** I have figured out why the redundant category listing was necessary. It did not have the master cat listed on the product page. I changed that and still get the same effect, though I've now remarked out the redundant lines.
Help!
$this->add_prod_to_prod(154,154,"%", 100);
Also buy 2 get one free is not supported by Better Together; it only works with item pairs.
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
Do you have any recommendations for making this work properly (even another extension?) The BOGO function is superb and was an easy sell with our customer-base. Our current deal only runs another week, but we are afraid this could have chased off potential buyers.
Please show me a screenshot of this working and give links to the two products.trenchmeister wrote:Oddly enough, this has worked well with all the other products. We have different options on all of them (PG/VG and Nic levels, Flavor intensity and size.)
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
The products, just in case you still want to make recommendations:
Customized:
http://www.higgycigs.com/hccart/index.p ... uct_id=154
All other Juices:
http://www.higgycigs.com/hccart/index.p ... ry&path=63
If you have recommendations, please let me know.
Code: Select all
private function setup() {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_to_category WHERE category_id = 63");
if ($query->num_rows) {
foreach ($query->rows as $result) {
$prod = $result['product_id'];
$this->add_prod_to_prod($prod, $prod,"%", 100);
}
}
}
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
This was intended to fix the issue where two product 154's (or any other product in category 63) with different attributes were purchased together, but no discount was given. I thought this was what you wanted. (Note that even though you also wanted Buy 2 get one free, this is not a feature of Better Together.)
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
Any way to filter out specific customer groups? I'm on the verge of just opening a separate shop for resellers, etc. Still, if I can keep them together without BOGO perks and other deals, that would be fantastic.
Thanks and Happy New Year!
Better Together: Buy one product, get another at a discount.
Discount Chooser: Buy a group of products, get another group at a discount.
Users browsing this forum: No registered users and 10 guests