Add to Cart not go to cart view
I've been searching very where but cannot seem to find a way to add an item to cart but keep user at the same product info page. Any ideas
also I cannot seem to put "Buy Now" button on New Listing/Featured listings
I can only get it to display image price and product name
See bottom of
http://www.hertspoolandsnooker.co.uk...ex&cPath=65_66
Thanks in advance
Re: Add to Cart not go to cart view
Both of these items are in the admin > configuration area...
one is product listing and something about prev/next
The staying in the shop versus showing the cart is also in the config, but I am not where I can direct you any closer right now.
Re: Add to Cart not go to cart view
This is currently my configuration>Product Listing settings May be I am doing something wrong?
Display Product Image 2
Display Product Manufacturer Name 0
Display Product Model 0
Display Product Name 1
Display Product Price/Add to Cart 4
Display Product Quantity 0
Display Product Weight 0
Display Product Price/Add to Cart Column Width 125
Display Category/Manufacturer Filter (0=off; 1=on) 1
Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) 3
Display Product Listing Default Sort Order
Display Product Add to Cart Button (0=off; 1=on) 1
Display Multiple Products Qty Box Status and Set Button Location 0
Display Product Description 150
Product Listing Ascending Sort Order
Product Listing - Layout Style rows
Product Listing Descending Sort Order
Product Listing - Columns Per Row 2
Re: Add to Cart not go to cart view
Product Listing is separate from New Listing ...
Go to the Configuration ... New Listing ...
Looks like you have the button off in there ...
0 is OFF
The default is: 1300
1 = Left
30 = Sort order
0 = 0 <br /> after the button
NOTE: If you have the Multiple Qty Box per Product turned on ... there is no Add to Cart per product ... You enter the qty to purchase in the qty box and hit Enter or Click the Add selected products to cart button at the top or bottom ...
You have a choice of one or the other ...
Re: Add to Cart not go to cart view
This is New Listing settings
Title Value Action
Display Product Image 1102
Display Product Quantity 1202
Display Product Buy Now Button 2302
Display Product Name 2101
Display Product Model 2201
Display Product Manufacturer Name 2302
Display Product Price 2402
Display Product Weight 2502
Display Product Date Added 2601
Display Product Description 1
Display Product Display - Default Sort Order 6
Default Products New Group ID 21
Display Multiple Products Qty Box Status and Set Button Location 3
Not sure which bit is wrong
Re: Add to Cart not go to cart view
You have set:
Display Multiple Products Qty Box Status and Set Button Location 3
This gives the Qty Box on each product and the two buttons at the top and bottom of the list to:
Add the selected qty to the cart
If you do not want that ... then you need to change the settings for the Multiple Product Qty Box to 0 so it is OFF
Then you can use the Buy Now buttons ...
Re: Add to Cart not go to cart view
I have changed the setting for new Listing to
New Listing
Title Value Action
Display Product Image 1102
Display Product Quantity 1202
Display Product Buy Now Button 2302
Display Product Name 2101
Display Product Model 2201
Display Product Manufacturer Name 2302
Display Product Price 2402
Display Product Weight 2502
Display Product Date Added 2601
Display Product Description 1
Display Product Display - Default Sort Order 6
Default Products New Group ID 21
Display Multiple Products Qty Box Status and Set Button Location 0
But it's not changed it
Re: Add to Cart not go to cart view
Just to make sure we are not crossed wired. its the "New Products For August" box.
at the bottom of this page
http://www.hertspoolandsnooker.co.uk...ex&cPath=65_66
is this helps
Re: Add to Cart not go to cart view
rut roh ... apples and oranges ... we gots fruit salad here ... :cry:
The Centerboxes do not have Add to Cart buttons ...
You would need to customize the code for that to be there ... there are no switches to make the Add to Cart show on the Centerboxes ...
Re: Add to Cart not go to cart view
Ok I will have a play to see if I can get that Add to Cart bit in.
Any ideas on how I can change the default add to cart click going to the Shopping Cart view. ie clicking it keeps the user on the same item?
Re: Add to Cart not go to cart view
There is a setting in the Configuration ... My Store ...
Quote:
Display Cart After Adding Product
Display the shopping cart after adding a product (or return back to their origin)
true
false
If true, you go to the shopping cart after adding to the shopping cart ...
If false, you stay where you are after adding to the shopping cart ...
Re: Add to Cart not go to cart view
Got it thanks.
I'll post when I figure out how to add an Add to Cart button in to the boxes
Re: Add to Cart not go to cart view
I know I will need to add the "Add to Cart" button code within
tpl_tabular_display.php
to display it but I am lost in where I should copy that piece of code in.
PHP Code:
<?php
/**
* Common Template - tpl_tabular_display.php
*
* This file is used for generating tabular output where needed, based on the supplied array of table-cell contents.
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_tabular_display.php 3544 2006-04-29 17:17:45Z drbyte $
*/
//print_r($list_box_contents);
$cell_scope = (!isset($cell_scope) || empty($cell_scope)) ? 'col' : $cell_scope;
$cell_title = (!isset($cell_title) || empty($cell_title)) ? 'list' : $cell_title;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="<?php echo 'cat' . $cPath . 'Table'; ?>" class="tabTable">
<?php
for($row=0; $row<sizeof($list_box_contents); $row++) {
$r_params = "";
$c_params = "";
if (isset($list_box_contents[$row]['params'])) $r_params .= ' ' . $list_box_contents[$row]['params'];
?>
<tr <?php echo $r_params; ?>>
<?php
for($col=0;$col<sizeof($list_box_contents[$row]);$col++) {
$c_params = "";
$cell_type = ($row==0) ? 'th' : 'td';
if (isset($list_box_contents[$row][$col]['params'])) $c_params .= ' ' . $list_box_contents[$row][$col]['params'];
if (isset($list_box_contents[$row][$col]['align'])) $c_params .= ' ' . $list_box_contents[$row][$col]['align'];
if ($cell_type=='th') $c_params .= ' scope="' . $cell_scope . '" id="' . $cell_title . 'Cell' . $row . '-' . $col.'"';
if (isset($list_box_contents[$row][$col]['text'])) {
?>
<?php echo '<' . $cell_type . $c_params . '>'; ?><?php echo $list_box_contents[$row][$col]['text'] ?><?php echo '</' . $cell_type . '>' . "\n"; ?>
<?php
}
}
?>
</tr>
<?php
}
?>
</table>
Anyone tried this before?
Re: Add to Cart not go to cart view
ignore the last post. Its the wrong place. I think I will shelf this idea. Thanks All