Re: Fast and Easy Checkout for Zen Cart
cartProductDisplay already exists and is used in the regular shopping cart to show images. It shows a fairly large image and probably too big for your needs. I just added the XXX as an arrbitrary difference so your regular shopping cart wouldn't be changed.
Before you try this, remember, I've been using Zen cart for less than a month and my knowledge of PHP, Zen and CSS leaves much to be desired. In theory, I think this should work...
Add to your stylesheet
PHP Code:
img.cartProductDisplayXXX {
width: 2em;
height: 2em;
}
Then, wherever it was you put your code, put this in...
PHP Code:
<span class="cartProductDisplayXXX">
<?php
$products = $db->Execute("SELECT products_image
FROM " . TABLE_PRODUCTS . "
WHERE products_id ='" . $order->products[$i]['id'] . "'");
echo '' . zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . $products->fields['products_image'] , $order->products[$i]['name'], SMALL_IMAGE_HEIGHT, SMALL_IMAGE_WIDTH) . '</a> ';
?>
</span>
Like I said, in theory, this should work, unless my theory is wrong, which it very well could be. I haven't tested it and have no idea if it will work or not.
Let us know if it worked for you
Re: Fast and Easy Checkout for Zen Cart
Hi osdude,
Thanks for your help. Unfortunately, it didn't work.
Re: Fast and Easy Checkout for Zen Cart
PHP Code:
<?php
$products = $db->Execute("SELECT products_image
FROM " . TABLE_PRODUCTS . "
WHERE products_id ='" . $order->products[$i]['id'] . "'");
echo '<span class="cartProductDisplayXXX">' . zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . $products->fields['products_image'] , $order->products[$i]['name'], SMALL_IMAGE_HEIGHT, SMALL_IMAGE_WIDTH) . '</a></span> ';
?>
maybe this will work? I dunno?
tell me where you're putting the code and I'll try to do it as well.
Re: Fast and Easy Checkout for Zen Cart
Re: Fast and Easy Checkout for Zen Cart
to what file are you adding this code?
Re: Fast and Easy Checkout for Zen Cart
I added the following code in my stylesheet.css
Code:
img.cartProductDisplayXXX {
width: 2em;
height: 2em;
}
I also added the following code in my checkout page at those places you suggested.
<span class="cartProductDisplayXXX"></span>
Re: Fast and Easy Checkout for Zen Cart
PHP Code:
<?php
$products = $db->Execute("SELECT products_image
FROM " . TABLE_PRODUCTS . "
WHERE products_id ='" . $order->products[$i]['id'] . "'");
echo '<span class="cartProductDisplayXXX">' . zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . $products->fields['products_image'] , $order->products[$i]['name'], SMALL_IMAGE_HEIGHT, SMALL_IMAGE_WIDTH) . '</a></span> ';
?>
this, what file are you putting this in and where. I didn't suggest a location for this and I have no idea which file you're editing
Re: Fast and Easy Checkout for Zen Cart
Quote:
this, what file are you putting this in and where. I didn't suggest a location for this and I have no idea which file you're editing
I put this in includes/template/template_default/templates/tpl_checkout_default.php at the shopping cart table section where it is in between the "Quantity" and "Product Name" fields. Hope that make sense.
Re: Fast and Easy Checkout for Zen Cart
ok, cool.
I'll play around and see if I can do anything with it
Re: Fast and Easy Checkout for Zen Cart
Has anyone else experienced checkout_default not automatically refreshing as soon as you land on the page to add the shipping to the cart total? It will work correctly with everything except UPS (although I haven't checked USPS since we don't use it). Since we only use UPS this is creating a problem for us since the customer doesn't see the shipping in the total unless they happen to refresh the page for some reason.
This is beyond my fledgling PHP skills, does anyone have an idea of what needs to be corrected? The cheapest UPS shipping radio box is selected when you land on the page, it just doesn't reflect in the cart total.
This is with v1.3.7.1, I thought that it was a clash with one of the many mods I have running but I tried it on our live test site with no mods and this still occurs. I have tried it with the latest version of Fast&Easy, too, with the same results.
Thanks!
Matt