Response by email.
Printable View
Response by email.
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?
No. Better Together works on single items. See PM.
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):
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);
}
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. ???
I suspect you've deleted the final brace "}" which is required to close out the body of the class.
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!
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!