New Zenner
- Join Date:
- Nov 2007
- Location:
- south carolina
- Posts:
- 42
- Plugin Contributions:
- 0
Fast and Easy Checkout
Just so you know, the above error is confirmed, on your demo site and my site using Firefox, Opera and IE.
very odd...
Views: 552,342
New Zenner
Just so you know, the above error is confirmed, on your demo site and my site using Firefox, Opera and IE.
very odd...
New Zenner
icludes/modules/pages/checkout/header.php
about line 450
$form_action_url = zen_href_linkFILENAME_CHECKOUT_PROCESS, '', 'SSL');
change to
$form_action_url = zen_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL');
THis will "fix" the problem of the second attempt at entering CC info from not working, but it will also display the error message about the wrong CC info on the first page.
I'm no guru, so this may totally break the cart as far as I know.
Use at your own risk!!
Totally Zenned
Thank you. I'll take a look in the next couple of days. It looks like it should be correct since the Checkout page should always be going to the Checkout Confirmation page which then will redirect to Checkout Process.
New Zenner
I agree, but when the checkout goes to the confirmation page and there's an error with the CC, the next page will always fail without a notification to the user. The continue of the first checkout page and the second failed checkout page are different links, but I didn't know where to change that.
So,
Enter your CC info, but there was an error
next page
Warning that CC info had an error. On this page, you can enter your CC info - click enter but it will always fail on enter and it fails without the CC error at top. If the customer enters their CC info a third time, it will finally work.
Basically, the customer has to enter their CC a minimum of 3 times if they make an error the first time.
Totally Zenned
Is there a way to have the default shipping added to the cart total automatically when you arrive at the checkout_default page? When arriving at that page the cheapest shipping option radio button is selected but doesn't reflect in the cart total until you refresh the page. I've been looking through the code but this is way over my head still. Is this any easy fix?
Thanks!
Matt
Totally Zenned
osdude:
icludes/modules/pages/checkout/header.php
about line 450
$form_action_url = zen_href_linkFILENAME_CHECKOUT_PROCESS, '', 'SSL');
>
> change to
> ```php
$form_action_url = zen_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL');
THis will "fix" the problem of the second attempt at entering CC info from not working, but it will also display the error message about the wrong CC info on the first page.
I'm no guru, so this may totally break the cart as far as I know.
Use at your own risk!!
I just looked into this change and I cannot recommend it. The original code is:
default:
$form_action_url = zen_href_link(FILENAME_CHECKOUT, 'action=null', 'SSL');
if (!$_GET['payment_error'] && !$_GET['error_message'] && !$_GET['credit_class_error']) {
zen_redirect($form_action_url);
}
break;
This must stay this way or a lot of other features will not work. I will add some more rules for when a cc error occurs.
Totally Zenned
lankeeyankee:
Is there a way to have the default shipping added to the cart total automatically when you arrive at the checkout_default page? When arriving at that page the cheapest shipping option radio button is selected but doesn't reflect in the cart total until you refresh the page. I've been looking through the code but this is way over my head still. Is this any easy fix?
Thanks!
Matt
I can't reproduce this. The page auto refreshes on first load, thus updating the shipping rate in the order total...
I'm uploading v1.054 now which contains the bug fix for the CC as well as some template changes if One Page Checkout is turned on.
Totally Zenned
My new site, which caters to Zen Cart, will be uploaded shortly and then updates will be available. Just waiting for some final touches to be made (all changes are content based, design will remain the same).
You can download v1.054, however, the download link will say it's 1.053.
New Zenner
the new file fixed the CC error loop - awesome.
Totally Zenned
numinix:
I can't reproduce this. The page auto refreshes on first load, thus updating the shipping rate in the order total...
Hmmm, I seem to recall (but I could very well be remembering wrong) that it's always been like that since I installed this mod, I kept forgetting to seek a remedy. Which file and lines of code should I look at to see about the auto refresh as soon as the page loads? I'll check it to see if it's been modified by another mod.
Thanks!
Matt
Totally Zenned
lankeeyankee:
Hmmm, I seem to recall (but I could very well be remembering wrong) that it's always been like that since I installed this mod, I kept forgetting to seek a remedy. Which file and lines of code should I look at to see about the auto refresh as soon as the page loads? I'll check it to see if it's been modified by another mod.
Thanks!
Matt
I just installed the latest version and it doesn't auto refresh to show the shipping either. Is anyone else having this happen or is it just me? :smile:
Matt
Totally Zenned
Matt, do you have it running on a live site that I can look at?
If not, can you paste the portion of the URL beginning with "/index.php?"
when you first visit "main_page=checkout"
It should be "index.php?main_page=checkout&action=null"
The script automatically redirects to that page if action is not set.
New Zenner
wish I could help with this, but I only use one shipping method, so there's no updating needed.
Totally Zenned
numinix:
Matt, do you have it running on a live site that I can look at?
If not, can you paste the portion of the URL beginning with "/index.php?"
when you first visit "main_page=checkout"It should be "index.php?main_page=checkout&action=null"
The script automatically redirects to that page if action is not set.
drumfactorydirect dot com
add something to the cart and checkout, it doesn't matter if it's with an account, creating an account or COWA. I switched the tpl_checkout_default.php back to what I was using since I haven't had a chance to go and change the new template file to match the current layout. But the header_php.php file in pages/checkout is from the latest version. Let me know if there are any other files that need updating.
Thanks!
Matt
Totally Zenned
Hi Jeff,
How can we add product image on your one-page checkout in the shopping cart table? Thanks in advance.
**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
Totally Zenned
Managed to add product images into the shopping cart table. But they are too big to my liking. How can I resize it? The code I am using is as follows:
<?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> ';
?>
**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
Totally Zenned
dealbyethan.com:
Managed to add product images into the shopping cart table. But they are too big to my liking. How can I resize it? The code I am using is as follows:
<?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> '; ?>
Try SMALL_IMAGE_HEIGHT/2, SMALL_IMAGE_WIDTH/2
If that's still too big you can try /3 or /4.
Hope that helps!
Matt
Totally Zenned
Try SMALL_IMAGE_HEIGHT/2, SMALL_IMAGE_WIDTH/2
If that's still too big you can try /3 or /4.
Hope that helps!
Matt
Thanks for your suggestion. I tried that but it did not resize. Any other idea?
**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
New Zenner
how about adding another variable to your CSS? that you pass in the additional PHP?
img.cartProductDisplayXXX {
width: 2em;
height: 2em;
}
I have no idea if that would work, but it's an idea?
Totally Zenned
Thanks for your suggestion. I tried putting your code in stylesheet but it didn't work. By the way, what's with the XXX? I still can't get it to work as I have no idea what controls the size of the images and which files they are calling from.
img.cartProductDisplayXXX {
width: 2em;
height: 2em;
}
**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
Tell staff why this post should be reviewed.