Forums / Templates, Stylesheets, Page Layout / Moving shopping cart box and removing stock qty

Moving shopping cart box and removing stock qty

Locked

Started by electrobumps on 5 Feb 2009, 6:00 PM · Views: 885

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
5 Feb 2009, 6:00 PM
#1
electrobumps avatar

electrobumps

New Zenner

Join Date:
Feb 2009
Posts:
29
Plugin Contributions:
0

Moving shopping cart box and removing stock qty

Hello

Could anyone help me with the following

My Cart is showing at the bottom of the page. I would like to move it to the top! Some of my descriptions and details are long. If A customer knows what they want, I don't want them to scroll through all the detail to add it to there cart

when you click on an item in category side box, it lists all the products in that category in the center, with a little bit of the main description.

I have seen on other peoples site have the option to add to cart here, how do i add that?

I'd also like to remove from there and the bottom of an item description the amount of stock I have. I do not want people to see that.

Any help would be greatly appreciated,
Iain

5 Feb 2009, 6:39 PM
#2
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Moving shopping cart box and removing stock qty

You can find the code for the add to cart button in the templates/Your_template/templates/tpl_product_info_display.php
Look for

<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
 // do nothing
} else {
?>
           <?php
   $display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
           if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
             // hide the quantity box and default to 1
             $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
           } else {
             // show the quantity box
   $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
           }
   $display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
 ?>
 <?php if ($display_qty != '' or $display_button != '') { ?>
   <div id="cartAdd">
   <?php
     echo $display_qty;
     echo $display_button;
          ?>
         </div>
 <?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
``` or something similar, move it to where ever you want to display the add to cart. You might need to adjust you CSS to get the best result.
5 Feb 2009, 10:50 PM
#3
electrobumps avatar

electrobumps

New Zenner

Join Date:
Feb 2009
Posts:
29
Plugin Contributions:
0

Re: Moving shopping cart box and removing stock qty

Thanks for that, worked well. If anyone can help with the other questions I had that would be wonderful. :smile:

6 Feb 2009, 4:21 AM
#4
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Moving shopping cart box and removing stock qty

Sorry didn't see your other question.
That can be done in the admin panel. look into configuration tab that control the button and the description I am not sure what page you are talking about but there is a tab for every page. You can also control what shows on the product page from the Catalog>product types