Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / copied products to different category / display on copied products info page

copied products to different category / display on copied products info page

Started by cadoo on 9 Jun 2011, 10:15 PM · Views: 820

Results 1 to 2 of 2
9 Jun 2011, 10:15 PM
#1
cadoo avatar

cadoo

New Zenner

Join Date:
Nov 2008
Posts:
10
Plugin Contributions:
0

Post #1 by cadoo

hello

We are a CD music retailer who are about to start selling MP3 as well In some cases will will be selling a CD and MP3 of the same release.

Instead of a dropdown attribute we chose to have every product have it's own ID. In most cases we are copying CDs from the Compact Disc category to an MP3 category so they can keep the same model number and audio samples.

The one thing i am having a bit of trouble with is i would like to link to the same release's other formats. For example: if you are on a CD's page it would say "this release is also available as MP3" and vice versa.

We also need it to be dynamic to require no data entry like a xsell or the multixsell addons

i've searched around in the forums and faq for something like this and did not find much. I then started writing my own module but I seem to be caught up at an early stage as the query is not returning a result.

 $format_query = $db->Execute("select pc.categories_id, p.products_id, p.products_model, p.products_image, pd.products_name
                                 from ". TABLE_PRODUCTS_TO_CATEGORIES ." pc,  " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                                 where p.products_model = '" . $_GET['products_model'] . "'
                                  and p.products_id <> '" . $_GET['products_id'] . "'");

Even though this is a rather esoteric addon i am working on i would like to offer it to the community once i get it finished.

Any help would be much MUCH appreciated :D

10 Jun 2011, 9:49 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

Cadoo:

Instead of a dropdown attribute we chose to have every product have it's own ID. In most cases we are copying CDs from the Compact Disc category to an MP3 category so they can keep the same model number and audio samples.

Can't help with the code, and I'm not sure exactly what the above means, but if the MP3's are separate products, could you just code a link to the MP3 into the CD product description ?