I'm not convinced that this is a good idea. The free product carries through to the Orders class, as it must to register in the order database. Separating it out may cause more trouble than it's worth.
You're asking a lot of detailed questions about something I wrote years ago. Sorry, but my memory is not that good. I need to go back and look at the code again. I'm busy right now, but maybe later.
Regards
Jim
Latest News: (loading..)
Get 1 Free
Started by kymation, Mar 18 2007 04:55 AM
363 replies to this topic
#361 ONLINE
Posted 23 August 2012 - 12:18 AM
My Addons
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#362
Posted 23 August 2012 - 12:53 AM
A million thanks.. I really need this, so it needs to be a good idea!
I am 95% sure that im failing in not calling the array properly, because the code that uses it is perfectly fine, and I get the occasional errors: such a thing was expecting an array etc.
it's not affecting anything that doesnt have QTPro installed, you already have the free product singular to the promotional product id anyway... by including this check for repeats before re-adding again, it creates the correct products array that everything else gets it's information from... dont worry, I'll be having the headache over that
I just cant figure out how I'm supposed to be calling the products array properly because it's just not pulling through to my code as it does on blank php file with the EXACT array added manually.
Actually, I might open up another post, take some stress off you digging blind just going off my explainations. If you do find anything, that's great.. I'll see if anyone else out there has some recent experience with this
Anyway.. thanks so much for your help
Martin
I am 95% sure that im failing in not calling the array properly, because the code that uses it is perfectly fine, and I get the occasional errors: such a thing was expecting an array etc.
it's not affecting anything that doesnt have QTPro installed, you already have the free product singular to the promotional product id anyway... by including this check for repeats before re-adding again, it creates the correct products array that everything else gets it's information from... dont worry, I'll be having the headache over that
Actually, I might open up another post, take some stress off you digging blind just going off my explainations. If you do find anything, that's great.. I'll see if anyone else out there has some recent experience with this
Anyway.. thanks so much for your help
Martin
#363 ONLINE
Posted 23 August 2012 - 06:14 AM
@bruyndoncx - will make a blog post of it later.
Dummies guide to designing osCommerce 2.3 Click Me
Or maybe a ready made theme for your shop ??
Warning: My posts may contain Horsemeat.
Or maybe a ready made theme for your shop ??
Warning: My posts may contain Horsemeat.
#364
Posted 23 August 2012 - 09:50 PM
Hey Jim
Nevermind looking for a solution.. I've found one
I was trying to do literally the impossible before, could have kicked myself when I noticed.
be sure I'll keep you updated when it finaly works with QTPro
Nevermind looking for a solution.. I've found one
be sure I'll keep you updated when it finaly works with QTPro









