Forums / Templates, Stylesheets, Page Layout / Changing Layout of Product Page

Changing Layout of Product Page

Locked

Views: 5,121

Results 21 to 22 of 22
This thread is locked. New replies are disabled.
1 Dec 2006, 10:50 PM
#21
jdsmith8 avatar

jdsmith8

New Zenner

Join Date:
Aug 2006
Posts:
51
Plugin Contributions:
0

Changing Layout of Product Page

That worked perfectly and centered the ADD TO CART perfectly!!!

The only thing now is that I need to find the error that I did in the page as it does not add anything to the cart when you order. It just says Shopping Cart is Empty!

Can you give a quick look into the code for http://pageallaboutit.com/order/inde...roduct s_id=1

and see why when you click on ADD TO CART is does not put the product in the shopping cart?

I turned off so many things in the Zen Admin that it could have been something there too.

I am such a bonehead!!! Have the layout the way it needs to be, but I messed up the ADD TO CART functionality.

Thanks for any help you can give me guys,
Dave

24 Dec 2006, 4:06 PM
#22
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Changing Layout of Product Page

Hello ! and Merry Christmas!

I just installed wishlist, and wish to display a wishlist button on the product page appearing under the add to cart/buy now button, like cylde's page:

http://mysticmountainnaturals.com/index.php?main_page=product_info&cPath=32&products_id=10

This is what I have so far (below) the link appears, not in the add to cart box on the right, but on the left under the product image.

Also, is there a way to make the link a button?

<!--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 ?> <?php // (un): start wishlist link echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action', 'products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' . UN_TEXT_ADD_WISHLIST . '</a>'; // (un): end wishlist link ?> <!--eof Add to Cart Box-->

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41