osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Moving the "Add to Cart" button

This is a discussion on Moving the "Add to Cart" button within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I'd like to customize my products page by putting an "Add to Cart" button near the top. ...


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
Reply

 

LinkBack Thread Tools
  #1  
Old 02-29-2008, 03:17 PM
Lurker
 
Join Date: Feb 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
montana1329 is on a distinguished road
Default Moving the "Add to Cart" button

I'd like to customize my products page by putting an "Add to Cart" button near the top.
I have a basic template that I am entering into the FCK editor. Is there code or a link that I can use with my custom button? If it's a link then what is it and how does it change for different products?

Also I wanted to remove the price from the top right so I can present the price my own way. How do I get rid of that?

Thanks!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-29-2008, 03:30 PM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 261
Thanks: 7
Thanked 21 Times in 20 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Moving the "Add to Cart" button

Check out /templates/your template/content/product_info.tpl.php , both things you are looking for are in there.

Search for:

Code:
<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
to find the link to add to cart button.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-29-2008, 04:38 PM
Lurker
 
Join Date: Feb 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
montana1329 is on a distinguished road
Default Re: Moving the "Add to Cart" button

Thanks for your quick response.
I am using the AABOX template and there isn't a Content folder. I noticed there was a Content folder in the Fallback template. Is some of the Fallback template information change items in my AABOX template? I would have thought they would be totally different template systems?

So I took that PHP line and inserted it into my FCKeditor product page and it didn't produce a button. I'm pretty new -- do you know why this wouldnt work when I put it into a cell? :

<tr>
<td colspan="5">
<?php
echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
?>
</td>
</tr>

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 03-01-2008, 01:37 AM
MindTwist's Avatar
Active Member
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 261
Thanks: 7
Thanked 21 Times in 20 Posts
Rep Power: 3
MindTwist will become famous soon enoughMindTwist will become famous soon enough
Default Re: Moving the "Add to Cart" button

Any template you use uses /fallback template if they are missing files.

That is, if you want to create a template but only need a couple of personalized files, you do not need to copy all of them just to modify a couple, you can create your template directory with just the 2 modified files. All the files you do not have in there will be taken from /fallback.

With "FCKeditor product page" I guess you are creating your products with a HTML WYSIWYG editor. Never used one, but of course if you are trying to insert HTML code, you need to be seeing the product HTML code. But anyway, the product descripcion is NOT the place where you would want to put the "add to cart" button, that is for sure...
__________________
MindTwist of Twisted Reality and Twisted Tienda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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
"Price" and "Add to Cart" button inside midwestwebsites osCMax v2 Customization/Mods 3 11-14-2005 05:13 AM
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
moving the arrow in the "my cart" box starchild osCommerce 2.2 Modification Help 0 05-09-2003 08:34 PM
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 10:13 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax