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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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? |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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 |
|
#3
| ||||
| ||||
| 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
|
|
#4
| |||
| |||
| 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 = '';
?>
|
|
#5
| ||||
| ||||
| 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 //-->
Code: $boxContent .= '</form>';
__________________ Michael Sasek osCMax Developer
|
|
#6
| |||
| |||
| That did it thanks. You may want to check the zip file. |
|
#7
| |||
| |||
| Just found this bug alert on the OSC forums regarding BTS: http://forums.oscommerce.com/viewtop...late+structure Quote:
|
|
#8
| ||||
| ||||
| 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:
__________________ Michael Sasek osCMax Developer
|
|
#9
| |||
| |||
| i'm having a similar problem, when i click on checkout it goes to a dead link. how can i fix this? |
|
#10
| ||||
| ||||
| When you say dead link, what happens? Error message? Blank screen? 404 page?
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |