Forums / All Other Contributions/Addons / Fast and Easy Checkout

Fast and Easy Checkout

Views: 552,362

Results 141 to 160 of 2,177
17 Dec 2007, 7:46 PM
#141
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Fast and Easy Checkout

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

img.cartProductDisplayXXX  {
  width: 2em;
  height: 2em;
}

Then, wherever it was you put your code, put this in...

<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

18 Dec 2007, 2:43 AM
#142
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Fast and Easy Checkout

Hi osdude,

Thanks for your help. Unfortunately, it didn't work.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

18 Dec 2007, 3:17 PM
#143
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: Fast and Easy Checkout

<?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.

18 Dec 2007, 3:30 PM
#144
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Fast and Easy Checkout

Still no luck

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

18 Dec 2007, 6:50 PM
#145
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: Fast and Easy Checkout

to what file are you adding this code?

19 Dec 2007, 12:07 AM
#146
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Fast and Easy Checkout

I added the following code in my stylesheet.css

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>

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

19 Dec 2007, 12:36 AM
#147
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: Fast and Easy Checkout

<?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

19 Dec 2007, 1:10 AM
#148
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Fast and Easy Checkout

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.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

19 Dec 2007, 1:26 AM
#149
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: Fast and Easy Checkout

ok, cool.

I'll play around and see if I can do anything with it

19 Dec 2007, 7:52 AM
#150
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Fast and Easy Checkout

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


Zen Cart and it's community are the best!!

19 Dec 2007, 1:52 PM
#151
sweet_zouzou avatar

sweet_zouzou

Zen Follower

Join Date:
Nov 2007
Posts:
138
Plugin Contributions:
0

Re: Fast and Easy Checkout

I experience this same problem from time to time on my shopping cart display. Its seems to be random when the shipping shows up.

I don't know if this is related, but I get the same "no refresh" when the customer lands on the home page after leaving the site. I have auto login installed and when the customer returns to my site it looks like they are not logged in. They must refresh the page to see the appropriate links (log off, etc.).

Sweet

https://www.sweetzouzou.com

19 Dec 2007, 2:03 PM
#152
sweet_zouzou avatar

sweet_zouzou

Zen Follower

Join Date:
Nov 2007
Posts:
138
Plugin Contributions:
0

Re: Fast and Easy Checkout

I just found another issue. If I enter a bad credit card number, the appropriate error message is displayed and the customer is asked to try again. If a good cc number is then entered the page refreshs and the error message disappears but the cc info is lost. The customer must enter the cc info a second time to move on to order confirmation.

Also, when the confirm order is selected, the customer is taken to the check out page.

I am using authorize.net in testing mode.

Sweet

19 Dec 2007, 4:56 PM
#153
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: Fast and Easy Checkout

OK, I'm still trying this, but haven't found a way to make it work - yet.

The image in the default shopping cart is small, is that the size image you want? It looks to be a good size, but I can't seem to call it into the checkout page.

I think the answer is somewhere in the shopping cart page...

I'll look more later today

19 Dec 2007, 4:58 PM
#154
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: Fast and Easy Checkout

Sweet ZouZou:

I just found another issue. If I enter a bad credit card number, the appropriate error message is displayed and the customer is asked to try again. If a good cc number is then entered the page refreshs and the error message disappears but the cc info is lost. The customer must enter the cc info a second time to move on to order confirmation.

Also, when the confirm order is selected, the customer is taken to the check out page.

I am using authorize.net in testing mode.

Sweet

Install the latest files. I was having the same issue, which I detailed a few pages back. THe new files fixed the issue.

http://www.numinix.com/index.php?main_page=document_general_info&cPath=162&products_id=760

many, many thanks to Nummix!!

19 Dec 2007, 6:56 PM
#155
sweet_zouzou avatar

sweet_zouzou

Zen Follower

Join Date:
Nov 2007
Posts:
138
Plugin Contributions:
0

Re: Fast and Easy Checkout

Thx for the advice, but the new files didn't work for me ;-(. Do you know what was changed and which file to refresh the page to show the shipping cost?

Thx Sweet

19 Dec 2007, 7:28 PM
#156
osdude avatar

osdude

New Zenner

Join Date:
Nov 2007
Location:
south carolina
Posts:
42
Plugin Contributions:
0

Re: Fast and Easy Checkout

Sweet ZouZou:

Thx for the advice, but the new files didn't work for me ;-(. Do you know what was changed and which file to refresh the page to show the shipping cost?

Thx Sweet

I added additional shipping choices to mine and it works without any problems.

I wish I could be of more help... sorry :(

19 Dec 2007, 8:57 PM
#157
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Fast and Easy Checkout

Sweet ZouZou:

Thx for the advice, but the new files didn't work for me ;-(. Do you know what was changed and which file to refresh the page to show the shipping cost?

Thx Sweet

I think I found a fix for the UPS only non-refresh problem. If there are any other shipping modules that are also experiencing a non-refresh to automatically show the shipping in the cart total in checkou_default when landing on the page:

go to modules/pages/checkout/header_php.php

around line 159 find this:

      if ( !$_SESSION['shipping'] || ( $_SESSION['shipping'] && ($_SESSION['shipping'] == false) && (zen_count_shipping_modules() > 1) ) ) 
 $_SESSION['shipping'] = $shipping_modules->cheapest();

and change it to:

      if ( !$_SESSION['shipping'] || ( $_SESSION['shipping'] && ($_SESSION['shipping'] == false) && (zen_count_shipping_modules() > 1) ) ) { 
$_SESSION['shipping'] = $shipping_modules->cheapest();
   zen_redirect(zen_href_link(FILENAME_CHECKOUT, 'action=null', 'SSL'));
   }

Please try this and let me know if it works.

Matt


Zen Cart and it's community are the best!!

19 Dec 2007, 9:05 PM
#158
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Fast and Easy Checkout

osdude:

many, many thanks to Nummix!!

Amen to that!! :smile: And to everyone that pitches in to make our e-commerce dreams come true! :bigups::hug:


Zen Cart and it's community are the best!!

19 Dec 2007, 9:43 PM
#159
sweet_zouzou avatar

sweet_zouzou

Zen Follower

Join Date:
Nov 2007
Posts:
138
Plugin Contributions:
0

Re: Fast and Easy Checkout

Good job! It worked! :clap:

Thnks for the help lankeeyankee

19 Dec 2007, 10:24 PM
#160
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Fast and Easy Checkout

Sweet ZouZou:

Good job! It worked! :clap:

Thnks for the help lankeeyankee

Great, I'm glad it fixed the problem! Please let me know if it makes the checkout_default page consistent with displaying the shipping.

Matt


Zen Cart and it's community are the best!!