Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Custom code for a complete kit consisting of other part #'s

Custom code for a complete kit consisting of other part #'s

Locked

Views: 646

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
8 Nov 2008, 12:14 AM
#1
edwardtilbury avatar

edwardtilbury

Zen Follower

Join Date:
Sep 2007
Posts:
169
Plugin Contributions:
0

Custom code for a complete kit consisting of other part #'s

On my site, some of my products are kits...

For instance a Football kit would consist of a Helmet , Football, and a Jersey.

I want to make this as dynamic as possible, what I'd like to do is give it a weird part # like part#1000,part#1001,part#1002

Then have a snippet of code or an include in my tpl_product_info_display.php , that runs PHP SPLIT to deliminate the part# by "," so it can find all the part #'s and automatically display their pics.

The SPLIT part was easy to figure out, but how do I make it query the database for those additional part #'s?

I cannot seem to find where the product ID is initially interpreted in the tpl_product_info_display.php page either.

Any hints? Has anyone tried something like this before?:D

8 Nov 2008, 2:19 AM
#2
rstevenson avatar

rstevenson

Totally Zenned

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

Re: Custom code for a complete kit consisting of other part #'s

I just finished installing two mods -- Combination Discounts, and Buy The Set, from thatsoftwareguy.com -- on a client's site. They cost a bit but save you a lot of work. He has many other mods, some free ones and some even more complex and capable. Have a look.

Rob