osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Add to cart error

This is a discussion on Add to cart error within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; There seems to be an error in the add to cart link in the product_info page. (the link attached to ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-16-2003, 02:48 PM
Anonymous
Guest
 
Posts: n/a
Default Add to cart error

There seems to be an error in the add to cart link in the product_info page. (the link attached to the button_in_cart.gif) It wants to send to a friend instead of adding the product to the cart. Since I have done nothing that I know of to effect this I am assuming it is a bug.

BTW-
Is there a way to set the cart so you don't have to login to add items to the cart?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 08-16-2003, 07:07 PM
Member
 
Join Date: Feb 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jgkiefer
Default

Yes when I click on the "Add to Cart" button on the product_info gage it goes to the "Tell a Friend" page. I can not find where this link is defined.
Here is an example . Click on "Add to cart".

http://www.kiesys.com/MS2MAX/product.../products_id/1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-16-2003, 09:52 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 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

Strange. This does not happen for me at all.... I think this is a problem with your html edits. You are missing a closing </form> tag in rhe 'Tell a friend' box, so the middle form is picking up the method from the side box. Add a closing </form> tag and it will work correctly.
__________________
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!
  #4  
Old 08-16-2003, 10:25 PM
Member
 
Join Date: Feb 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jgkiefer
Default

That's weird because I didn't modify the box code. Thinking I screwed up something somewhere, I downloaded a fresh MAX zip from the site again and unzipped it and uploaded the tell a friend box and the same thing. Looking at view source I also see a missing closing form tag. Here is the box code, could you tell me where the </form> goes so I'm sure to get it right?

Code:
<?php
  $boxHeading = BOX_HEADING_TELL_A_FRIEND;
  $corner_left = 'square';
  $corner_right = 'square';
  $boxContent_attributes = ' align="center"';

  $boxContent = tep_draw_form('tell_a_friend', tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get');
  $boxContent .= tep_draw_input_field('to_email_address', '', 'size="10"') . '&' . tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id() . '<br>' . BOX_TELL_A_FRIEND_TEXT;

  require(DIR_WS_TEMPLATES . TEMPLATENAME_BOX);

  $boxContent_attributes = '';
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 08-17-2003, 08:27 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 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

It should look like this:

Code:
<!-- tell_a_friend //-->
<?php
  $boxHeading = BOX_HEADING_TELL_A_FRIEND;
  $corner_left = 'square';
  $corner_right = 'square';
  $boxContent_attributes = ' align="center"';

  $boxContent = tep_draw_form('tell_a_friend', tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get');
  $boxContent .= tep_draw_input_field('to_email_address', '', 'size="10"') . '&' . tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id() . '<br>' . BOX_TELL_A_FRIEND_TEXT;
  $boxContent .= '</form>';

  require(DIR_WS_TEMPLATES . TEMPLATENAME_BOX);

  $boxContent_attributes = '';
?>
<!-- tell_a_friend_eof //-->
I pulled that right out of the zip file... ??? Note that you are missing the line :
Code:
$boxContent .= '</form>';
__________________
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!
  #6  
Old 08-17-2003, 09:51 AM
Member
 
Join Date: Feb 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jgkiefer
Default

That did it thanks. You may want to check the zip file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 08-17-2003, 11:34 AM
Member
 
Join Date: Feb 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jgkiefer
Default

Just found this bug alert on the OSC forums regarding BTS:
http://forums.oscommerce.com/viewtop...late+structure
Quote:
Bug Report:
catalog/includes/boxes/tell_a_friend.php
Add this line immidiately after line 21:
$boxContent .= '</form>';
Just thought you would like to know that it's not us.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 08-17-2003, 01:15 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 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

Oops! I updated the zip file, but never put it on the server ! Damn. I guess I needed some sleep.
Fixed.

For anyone that just wants to drop in the fixed file, get it below:
Attached Files
File Type: zip tell_a_friend.zip (678 Bytes, 6 views)
__________________
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!
  #9  
Old 08-18-2003, 04:49 PM
Anonymous
Guest
 
Posts: n/a
Default

i'm having a similar problem, when i click on checkout it goes to a dead link. how can i fix this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 08-18-2003, 11:38 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 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

When you say dead link, what happens? Error message? Blank screen? 404 page?
__________________
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!
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 product from cart - cart not updating mentalskylight osCommerce 2.2 Installation Help 0 03-10-2005 02:42 AM
shopping cart empty error jasonabc osCommerce 2.2 Modification Help 1 12-18-2004 11:06 PM
Add Item to Cart, authenticate, then deletes cart contents? Anonymous osCMax v1.7 Discussion 8 07-20-2004 11:48 AM


All times are GMT -8. The time now is 11:18 PM.


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