I have managed to solve the issue myself. For anyone using Simple SEO all you have to do is put product_info in the exclude list in the configuration panel and the edit cart function works!!!:clap:
Printable View
I have managed to solve the issue myself. For anyone using Simple SEO all you have to do is put product_info in the exclude list in the configuration panel and the edit cart function works!!!:clap:
Thanks for this plugin; I just installed this on my Zen Cart 1.5.1 store ... it works like a dream!
In Edit_Cart_v2_For_ZCv150, tpl_product_info_display.php must be edited as follows (highlights in red):
Code:// bof Edit_Cart 150 Justin - Part 1
// What follows is the old code. You need to replace or comment this section, and add the "Edit Cart" code just below it.
/*
echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n";
*/
//This bit contributed by Damian Taylor, makes the SEO mod CEON URI work with "Edit Cart"
if($_SERVER['QUERY_STRING'][0] == ':') {
$_GET['products_id'] = $_GET['products_id'] . $_SERVER['QUERY_STRING'];
}
//This bit looks at the product id param and if it is not a simple number like "121", but a big string like "52:96f247828566a562a4e8de1552a48c65" diverts form action to "Edit Cart"
if(is_numeric($_GET['products_id'])) {
$cartAction="add_product";
}else{
$cartAction = "edit_product_in_cart";
}
echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=' . $cartAction), 'post', 'enctype="multipart/form-data"') . "\n";
// eof Edit_Cart 150 Justin - Part 1
However in Edit_Cart 2.03, my tpl_product_info_display.php looks like this:
Code:// bof Edit_Cart 2.03 Justin - Part 1
// What follows is the old code. You need to replace or comment this section, and add the "Edit Cart" code just below it.
/*
echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n";
*/
//This bit contributed by Damian Taylor, makes the SEO mod CEON URI work with "Edit Cart"
if($_SERVER['QUERY_STRING'][0] == ':') {
$_GET['products_id'] = $_GET['products_id'] . $_SERVER['QUERY_STRING'];
}
//This bit looks at the product id param and if it is not a simple number like "121", but a big string like "52:96f247828566a562a4e8de1552a48c65" diverts form action to "Edit Cart"
if(is_numeric($_GET['products_id'])) {
$cartAction="add_product";
}else{
$cartAction = "edit_product_in_cart";
}
echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=' . $cartAction, $request_type), 'post', 'enctype="multipart/form-data"') . "\n";
// eof Edit_Cart 2.03 Justin Part One
Question:
In Edit_Cart 150, should the line
be replaced withCode:echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=' . $cartAction), 'post', 'enctype="multipart/form-data"') . "\n";
Alternatively, should the preceding linesCode:echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=' . $cartAction, $request_type), 'post', 'enctype="multipart/form-data"') . "\n";
be replaced with (or something like)Code:if(is_numeric($_GET['products_id'])) {
$cartAction="add_product";
}else{
$cartAction = "edit_product_in_cart";
}
Thanks in advanceCode:if(is_numeric($_GET['products_id'])) {
$cartAction="add_product, $request_type";
}else{
$cartAction = "edit_product_in_cart";
}
Hi, I just installed this mod on my shop at http://tinyurl.com/bw2k2ee.
I sell mostly download items where you select the files to purchase and add to card. Click on the PDF file on the left, I am redoing all pages to be like this one, 1 item, 30 files to choose from.
When you edit the item in the cart it takes you to the product, I edit the options, click Add to Cart and then a 2nd items appears! Is this normal. I checked out a couple other stores and the same thing happens - it adds a new product, doesn't replace origion one you edited.
If this is normal I can live with it but it would be nice to remove the origional or replace it, not make 2 items.