osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

"Price" and "Add to Cart" button inside

This is a discussion on "Price" and "Add to Cart" button inside within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; THE GOAL: I'm having trouble with a project I'm working on. The project is a music store which sell's legal ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-11-2005, 05:39 AM
Member
 
Join Date: Sep 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
midwestwebsites
Default "Price" and "Add to Cart" button inside

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-11-2005, 05:50 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,534
Thanks: 76
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: "Price" and "Add to Cart" button ins

You cannot use the wysiwyg editor for php, only html. You may be able to do it by adding the html/php in code view mode...

If that does not work, you may need to recode the product_info.tpl.php template, as what you are trying to do is a code based change in the php and is not supported by osC by default.

You may want to look at the contributions section at osCommerce.com to see if someone has already created a mod that does what you want.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-12-2005, 05:40 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,694
Thanks: 2
Thanked 96 Times in 82 Posts
Rep Power: 12
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default RE: "Price" and "Add to Cart" button ins

What you MIGHT want is to set everything (track) up an attrib - each one as it's own song/track - with the FIRST one the "whole CD" or "ALL TRACKS" - no base price except for the attribs....???
Might work??

Good Luck
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-14-2005, 04:13 AM
Member
 
Join Date: Sep 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
midwestwebsites
Default RE: "Price" and "Add to Cart" button ins

Thanks for the replies!

JPF,

I like your idea and that is actually something I wanted to do, but how can I allow people to order individual tracks when the checkbox option for product attirbutes is no longer supported? The combo box just doesn't work in this scenario. I've read from Msasek that the checkbox option was undone for some other mod. Is there a way I can remove that mod so I can get the checkboxes working again? I'm not afriad to modify the OSCMAX code (I've already been doing that to work towards an XHTML compliant version for myself). Do you know what I would need to do to get the checkboxes back?

Thanks
Jonathan

Edit: The only downside to this approach would be in order to have individual track names, I would have to setup just as many attribute options as I would attributes for the individual tracks. Considering we're over 100 CDs already, that's quite a lot. Hmm... not sure what to do...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Remove "QTPRO" for "Option Type Feature" adam71o osCMax v2 Customization/Mods 3 01-10-2007 09:32 AM
Change the link on "Continue" button on checkout_s chrisrex osCMax v2 Customization/Mods 0 11-22-2005 05:10 PM
I want to remove the "add to cart" button if the c Pulp osCommerce 2.2 Modification Help 0 09-07-2004 07:23 AM
Help with hiding "In Cart" button.....!!!! dojen13 osCommerce 2.2 Modification Help 0 08-08-2003 05:43 AM
Remove "in cart" Button for individual categories Mongrrr osCommerce 2.2 Modification Help 0 04-24-2003 06:02 AM


All times are GMT -8. The time now is 05:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax