THE GOAL: I'm having trouble with a project I'm working on. The project is a music store which sell's legal mp3s downloads targeting a small genre of music that isn't big enough for itunes but has the copyright permissions to sell music on a separate website. I have a product (a cd) setup. Inside the product description using the wysiwyg editor from the admin, I create a table with all the tracks of the cd.
Because we are offering both the entire CD and individual track downloads, I don't want the product price and add to cart buttons to appear in their default locations as this will make the product listing confusing. Instead, I need these items to appear inside the product description in their appropriate table cells. I want to have a table setup where the first column is the "add to cart" button, the next is the price, and the following is either the CD title or the individual track name.
THE PROBLEM: I found the pieces of php code from the product_info.tpl.php that inserts the price and "add to cart" buttons on the page; however, when I copy this code into the wysiwyg in the admin, the wysiwyg goes and removes that php code completely. I need to have these items appear so that there is some text describing the product, a custom table listing each track, a listing of the dynamic price of the CD as stored in the admin, and then followed by more text. I also need the admin to continue functioning as the people who will eventually be updating the site are not computer savvy -- so disabling the product wysiwyg and entering the code straight into phpmyadmin is not an option.
Can anyone please help me? The bundled products mod would have been great for this, but seeing as it is not supported I'm trying to hack my way around the problem.
Any help would be GREATLY appreciated!
Thanks in advance
Jonathan
Bookmarks