Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Bug 4 get 1 free


Guest

Recommended Posts

Posted

Hi

 

I use oscommerce 2.3.1

 

I was wondering if there was a add on for a buy 4 get 1 free or something similar that would work with oscommerce 2.3.1

 

Thank you

 

Ian

Posted

You can use this, it will work in 2.3.1

 

http://addons.oscommerce.com/info/6526

 

To turn into what you want:

 

In catalog\includes\modules\order_total\ot_3for2.php Find:

 

// check how many times the discount is applied
 $total_times_discount = floor($total_products / 3);

 

Replace with:

 

// check how many times the discount is applied
 $total_times_discount = floor($total_products / 4);

 

You can use whatever number you like there. In this example it will deduct the price of the cheapest item if 4 items are put in the cart. Even better if you put 8 items in the cart it will deduct the 2 cheapest and so on.

 

Change the Language file that is included to reflect the change

 

Martin

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Posted

great module as with small adjustment the sellers can have different promotion every month.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

  • 11 months later...
Posted

i hate to dig up this one, but can this also be modded for use at a pizzadelivery that has the scheme: get every 12th pizza for free... ie when they over time has ordered 11 pizza's they get the next for free or a fixed value in discount

Posted

I believe these only work for products within the same order.

 

Thus: buy 3 of Xyz, get another Xyz free.

 

Whereas: 3 orders each of 1 Xyz, would not qualify for a free Xyz.

Posted

hmm... not that i know how to code it, but my idea is that since every product that qualify in my shop has the wheight set to 1 you could add a row in the customers table that holds the wheight gathered over time... each time you start the chekout procedure and the value is 11 a fixed discount is added... ie 55 is deducted from the sub total... and the stored value is reset to 0 after checkout is complete... just thoughts, dont have the brain to code it

Posted

how long would it take a "coder" to make such a contrip? just considering maybe pay to have it made

Posted

then it would be more easy if this while thread was moved.... oh well guess i would just re explain the whole thing tomorrow

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...