X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Easy Checkout Mod for X-Cart 3.5.x and 4.0.x (https://forum.x-cart.com/showthread.php?t=9085)

zardos 04-01-2005 01:13 PM

Hi Jon

The instruction on ezupsell update you sent me also failed to work, click on 4.0.13+ and it does nothing.

Thanks

John

Jon 04-01-2005 01:18 PM

Sorry about the difficulty. Are the other versions working in the instructions? It may be a javascript compatibility issue.

I will look into his immediately and send out updated installation instructions.

zardos 04-01-2005 01:24 PM

Hi Jon

Yes all the other instrution html files work for "ezrecommends,ezcheckout and the original for ezupsell" but not the latest one you sent out.

Thanks

John

Jon 04-01-2005 11:39 PM

Can somebody having trouble with ezUpsell instructions please PM me their email address or preferably even their MSN in order to test the installation instructions. Thanks!

markwhoo 04-03-2005 03:52 PM

Quote:

Originally Posted by Jon
I'm evaluating the code for ezRecommends and will be fixing some issues with gift certificates and with the points mod shortly.


Was this ever resolved?

I have been watching for updates to enable the points mod to be used properly without redirect issues when using points as a partial pyment, but have not seen any.

Right now, if points are used and the ezRecommends is ALSO used, the redirect stating to an end user to select an additional payment method is never seen and will seem as if it is an endless loop for the end user.

Without a fix for this, the points may not be used as a payment method and points would need to be deducted from user account, and a gift certificate issued to be used for purchase instead as all of the gift certificates redirect issues were resolved.


Thanks for your help in advance Jon

Jon 04-03-2005 05:36 PM

Hey Mark, the issues aside from the points mod have been resolved, as I believe we've spoken about already.

Carrie has a fix for the points mod so you'll have to contact her for an updated file. PM me if you have any questions or concerns.

pokeey 04-06-2005 06:38 PM

Jon,

After the EX-Upsell was installed now people can't register via EZ-Checkout?

Any ideas????


Thanks,

Chris

Jon 04-06-2005 06:40 PM

^ Not sure what you mean, I just went to your site, added a product, went to checkout and registered in the process. ezUpsell should not affect the process at all.

pokeey 04-06-2005 06:44 PM

Dude. . .dam you're fast! :)

This you "websitecm2"?

Several people emailed us today about not being able to register and I just tried 10 mins ago and it didn't work. :(

Maybe it's just you! Ya got the midas touch. :)

I'll try again. . .

Chris

Jon 04-06-2005 08:06 PM

Yep that's me :)

Maybe it's a different registration point that's the problem, or sometimes there's a registration error on 4.0.x versions when the persons IP and country don't match properly, and the error just shows a red "1" on the page.

Let me know what you find.

zardos 04-11-2005 11:50 PM

Hi Jon

Code:

I'm evaluating the code for ezRecommends and will be fixing some issues with gift certificates and with the points mod shortly.

Have you sorted this yet jon, when i'am taken back to ezrecommends when using gift certificate i need to have a message to let people know they are using a secondary payment method. I have tried this fix below but now message.

Code:

To change the gift certificate redirect, and to give them a message.

This is 4.0, may be just slightly different for 3.5.x branch.

Open /payment/payment_giftcert.php

Find:

Code:

func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&paymentid=".@$paymentid);
 


Replace with:

Code:

func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&giftcertapplied=Y");
 


Open cart.php

After

Code:

require "./auth.php";
 


Add:

Code:

if ($giftcertapplied) { $smarty->assign("giftcertapplied", "Y"); }
 


Open skin1/customer/main/checkout.tpl

Find:

Code:

{elseif $payment_methods ne ""}
 


After put:

{if $giftcertapplied ne ""}

{$lng.txt_giftcertapplied}</p>{/if}

Then add the language variable through your admin

txt_giftcertapplied - Your gift certificate has been applied. Please select a secondary payment method to complete your order.


Any news Jon

Thanks again

Jon 04-12-2005 01:10 AM

For the points mod, Carrie has an updated file she can provide to integrate the 2 mods.

For ezRecommends compatibility with other functions, open cart.php and find all references (EXCEPT the new code provided with ezRecommends after the # Redirect):

FIND:

Code:

mode=checkout

REPLACE WITH:

Code:

mode=checkout&ezrecommends=Y

zardos 04-12-2005 09:59 AM

Hi Jon

Jon wrote
Code:

I'm evaluating the code for ezRecommends and will be fixing some issues with gift certificates and with the points mod shortly.

I wrote
Code:

Have you sorted this yet jon, when i'am taken back to ezrecommends when using gift certificate i need to have a message to let people know they are using a secondary payment method. I have tried this fix below but now message.

I found all the "mode=checkout" in cart.php and changed them to "mode=checkout&ezrecommends=Y"

I could not find this
Code:

func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&paymentid=".@$paymentid);

in /payment/payment_giftcert.php but did find this
Code:

#
# Not enough money
#
        func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout");
    }


and then i added this to it

Code:

#
# Not enough money
#
        func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&ezrecommends=Y&giftcertapplied=Y");
    }


I now get a message the message that i entered in

Code:

txt_giftcertapplied - Your gift certificate has been applied. Please select a secondary payment method to complete your order.

and it is working so far :lol:

But i still recieve this error when i purchase a gift certificate

Code:

[12-Apr-2005 16:59:33] SQL error: /megapcs/cart.php
SELECT DISTINCT productid2 as productid FROM xcart_product_links where ()) AND (productid2!='64' AND productid2!='70') ORDER BY RAND() LIMIT 4
1064 : You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (productid2!='64' AND productid2!='70') ORDER BY RAND()
Backtrace:
/home/xxxxx/public_html/megapcs/include/func.php:120
/home/xxxxx/public_html/megapcs/include/func.php:80
/home/xxxxx/public_html/megapcs/include/func.php:164
/home/xxxxx/public_html/megapcs/modules/ezRecommends/ezrecommends.php(20) : eval()'d code(1) : eval()'d code(1) : eval()'d code:72
/home/xxxxx/public_html/megapcs/modules/ezRecommends/ezrecommends.php(20) : eval()'d code(1) : eval()'d code:1
/home/xxxxx/public_html/megapcs/modules/ezRecommends/ezrecommends.php(20) : eval()'d code:1
/home/xxxxx/public_html/megapcs/modules/ezRecommends/ezrecommends.php:20
/home/xxxxx/public_html/megapcs/cart.php:731


Cart.php :731 points to this:

Code:

#
elseif($mode=="checkout" && !func_is_cart_empty($cart)) {
      include $xcart_dir."/modules/ezRecommends/ezrecommends.php";
      $smarty->assign("main","ezrecommends");
}
#
# End Upselling Module
#


What are the settings to be changed to Jon if the settings are causing the problem.

This setting seems to be OK.
Code:

$upsell_limit = "3";

This one does not,

Code:

$upsell_omit = array('');

Any idears??? Jon

Thanks again

Jon 04-12-2005 10:03 AM

Try changing this:

Code:

#
elseif($mode=="checkout" && !func_is_cart_empty($cart)) {
      include $xcart_dir."/modules/ezRecommends/ezrecommends.php";
      $smarty->assign("main","ezrecommends");
}
#
# End Upselling Module
#


to:

Code:

#
elseif(($mode=="checkout") && (!func_is_cart_empty($cart)) && ($giftcertapplied != "Y")) {
      include $xcart_dir."/modules/ezRecommends/ezrecommends.php";
      $smarty->assign("main","ezrecommends");
}
#
# End Upselling Module
#


zardos 04-12-2005 11:18 AM

Hi Jon

Thanks for the reply Jon, Changed the above code but no difference, when you are just about to go to the checkout to pay for the GC the error above shows on the screen for about 3-4 seconds, all is working but i need to get rid of this error.

Are there any php or tpl's you would like to look over and check, or try a test order on my site to purchase GC to see if that helps pin down the error.

Sorry about this, Thanks again Jon.

Jon 04-12-2005 03:18 PM

Ok I see the problem more clearly now. Are you able to provide FTP information via PM along with an exact URL so that I know I am editing the correct files.

zardos 04-12-2005 03:21 PM

Hi Jon

Thank for the reply i will pm you in the next few moments with details.

markwhoo 04-12-2005 05:03 PM

Quote:

Originally Posted by Jon
Hey Mark, the issues aside from the points mod have been resolved, as I believe we've spoken about already.

Carrie has a fix for the points mod so you'll have to contact her for an updated file. PM me if you have any questions or concerns.


Just an update on this for those that may be interested. (If you use Points Mods from Carrie at BCSE AND Jons exRecommends)

Carrie was able to change the redirect for the points mod when using the ezRecommends mod by Jon.

Now when points are used as payment method and end user runs short and cannot cover entire cart amount, the cart will redirect to payment method, but you WILL NOT get error message stating you need additional funds to complete purchase.

This will leave you either needing to have explicit instructions for end user to stop possible confusion, or simply remove the ability to pay with points and have end user request a Gift Certificate instead and admin deduct points for that due to Jon having a fix for the redirect to enable user to pay with Gift Certificate etc.


So, use Gift Cert not Points for purchase or no using ezRecommends as there is issue with payment error/notifications when using both.


Carrie has stated she hopes to add ability to post errors in future releases or version update that will be compatible with the ezRecommends Mod. No date specified... 8O

My thanks go out to Jon for providing fix for the redirect when using Gift Certificate as payment method!

Tuner 04-13-2005 12:46 PM

Anyone have the need to Capture Unfinished Orders.
I have moded my 3.3.2 cart a while ago and it emails me the order info if the user goes past the login/register section. Then we contact them to ask if the are having problems.

jmell 04-13-2005 07:13 PM

Yes Tuner I would love that for 4.0's

gbanse 04-20-2005 08:17 AM

Hola,
I'm in the middle of installing this mod. When I open up skin1/customer/main/checkout.tpl (step 6) I'm just a tad bit confused as to what to do with these instructions:

Quote:

Find:
{elseif $payment_methods ne ""}

{capture name=dialog}
<FORM method="get" action="cart.php" name="checkout_form">

After Add:


{$lng.txt_payment_method}</p>

In that same area, find:
{elseif $payment_methods ne ""}

As near as I can tell, there is only one line of {elseif $payment_methods ne ""}

Am I missing something?

Jon 04-20-2005 08:36 AM

The instructions are both referencing that piece of code, just follow the instructions according to where stuff goes in relation to it.

gbanse 04-20-2005 09:05 AM

I am following the instructions but the instructions lead me to believe there should be more than one instance of {elseif $payment_methods ne ""} which I cannot find. Based on the instructions it looks like the code for that section should look like this:

Quote:

elseif $payment_methods ne ""}

{capture name=dialog}
<FORM method="get" action="cart.php" name="checkout_form">


{$lng.txt_payment_method}</p>

{if $config.Shipping.realtime_shipping eq "Y"}
{capture name=checkout_dialog}
<FORM action="cart.php" method="POST" name="cartform">
<INPUT type="hidden" name="cart_operation" value="cart_operation">
{include file="customer/main/cart_contents.tpl"}
<HR noshade size="1">

{include file="customer/main/cart_totals.tpl"}



{if $js_enabled}
{include file="buttons/update.tpl" href="javascript: document.cartform.submit()" js_to_href="Y"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_update}{/if}
</FORM>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_shipping content=$smarty.capture.checkout_dialog extra="width=100%"}

{/if}

Is this right?

zardos 04-20-2005 09:18 AM

Hi gbanse

Code:

{elseif $payment_methods ne ""}
{if $giftcertapplied ne ""}

{$lng.txt_giftcertapplied}</p>{/if}
{if $config.Shipping.realtime_shipping eq "Y"}
{capture name=checkout_dialog}
<FORM action="cart.php" method="POST" name="cartform">
<INPUT type="hidden" name="cart_operation" value="cart_operation">
{include file="customer/main/cart_contents.tpl"} <HR noshade size="1">
 
{include file="customer/main/cart_totals.tpl"}

 
{if $js_enabled} {include file="buttons/update.tpl" href="javascript: document.cartform.submit()" js_to_href="Y"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_update}
{/if}
</FORM>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_shipping content=$smarty.capture.checkout_dialog extra="width=100%"} 
{/if}

{capture name=dialog}
<FORM method="get" action="cart.php" name="checkout_form">


{$lng.txt_payment_method}</p>
<TABLE border="0" align="center">
{section name=payment loop=$payment_methods}
<TR>
<TD width="1"><INPUT type="radio" name="paymentid" value="{$payment_methods[payment].paymentid}"{if $payment_methods[payment].is_default eq "1"} checked{/if}></TD>
<TD nowrap>{$payment_methods[payment].payment_method}</TD>
<TD>{$payment_methods[payment].payment_details}</TD>
</TR>
{/section}
<INPUT type="hidden" name="mode" value="checkout">
</TABLE>


<DIV align="center">
{if $js_enabled}
{include file="buttons/continue.tpl" style="button" href="javascript: document.checkout_form.submit()"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_continue}
{/if}
</DIV>
</FORM>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_payment_method content=$smarty.capture.dialog extra="width=100%"}
{/if}


hope that helps.

OH!! and Jon still waiting for ezrecommens to work with gift certificate.

gbanse 04-20-2005 09:45 AM

Hello zardos,
Thank you. It's installed and seems to be working. Now I'm off to apply the skin.

Emerson 04-20-2005 12:15 PM

Hi Jon,
Do you have new instructions to install the ez-checkout mod on 4.0.13?

Thanks ;)

Jon 04-20-2005 02:15 PM

^ Drop me a note or send me an MSN.

The gift certificate I will resolve as soon as possible but have some pressing issues first.

zardos 04-20-2005 02:56 PM

^No problem Jon.

Thanks

denlem 04-27-2005 02:53 PM

Jon,

Do you have any updated install instructions for the Easy Checkout Mod?

I got my copy from Emerson and am doing a fresh install with version 4.0.12.

The install goes fine up until steps 7 and 8. In both of those steps, the parts I am supposed to 'find' have other lines of code mixed in between it.

In step 7, i'm supposed to find:
Code:

if ($login_type == "C" || $login_type == "B") {
        if (!func_is_cart_empty($cart)) {
                func_header_location($redirect_to."/cart.php");


it looks more like:
Code:

if ($login_type == "C" || $login_type == "B") {
        if (!func_is_cart_empty($cart)) {
                        if((strpos($HTTP_REFERER, "mode=auth") === false) && (strpos($HTTP_REFERER, "mode=checkout") === false)) {
                                                func_header_location($redirect_to."/cart.php");
                                        } else {
                                                func_header_location($redirect_to."/cart.php?mode=checkout");
                                        }


Step 8 has a similar difference too.

Any help would be appreciated.

Thanks,
Dennis

Jon 04-27-2005 03:41 PM

Yes there are updated instructions. Please PM me with your email address and I will send them asap.

BCSE 05-01-2005 06:27 PM

Quote:

Originally Posted by markwhoo
Quote:

Originally Posted by Jon
Hey Mark, the issues aside from the points mod have been resolved, as I believe we've spoken about already.

Carrie has a fix for the points mod so you'll have to contact her for an updated file. PM me if you have any questions or concerns.


Just an update on this for those that may be interested. (If you use Points Mods from Carrie at BCSE AND Jons exRecommends)

Carrie was able to change the redirect for the points mod when using the ezRecommends mod by Jon.

Now when points are used as payment method and end user runs short and cannot cover entire cart amount, the cart will redirect to payment method, but you WILL NOT get error message stating you need additional funds to complete purchase.

This will leave you either needing to have explicit instructions for end user to stop possible confusion, or simply remove the ability to pay with points and have end user request a Gift Certificate instead and admin deduct points for that due to Jon having a fix for the redirect to enable user to pay with Gift Certificate etc.


So, use Gift Cert not Points for purchase or no using ezRecommends as there is issue with payment error/notifications when using both.


Carrie has stated she hopes to add ability to post errors in future releases or version update that will be compatible with the ezRecommends Mod. No date specified... 8O

My thanks go out to Jon for providing fix for the redirect when using Gift Certificate as payment method!


There is no problem using Jon's mods with my Points mods if a slight modification is done to the install of the ezCheckout mod. My points mod shows in RED the points discount to be clear to the customer after paying with points. With Jon's ezCheckout mod, his mod hides this by default.

To show this follow these steps:
-In step 8 instead of using the instructed code at the bottom of this step:
Code:

{if $config.Shipping.realtime_shipping eq "Y"}
{capture name=checkout_dialog}
<FORM action="cart.php" method="POST" name="cartform">
<INPUT type="hidden" name="cart_operation" value="cart_operation">
{include file="customer/main/cart_contents.tpl"}
<HR noshade size="1">

{include file="customer/main/cart_totals.tpl"}



{if $js_enabled}
{include file="buttons/update.tpl" href="javascript: document.cartform.submit()" js_to_href="Y"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_update}{/if}
</FORM>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_shipping content=$smarty.capture.checkout_dialog extra="width=100%"}

{/if}


Use this code (take out the {if} {/if}):
Code:

{capture name=checkout_dialog}
<FORM action="cart.php" method="POST" name="cartform">
<INPUT type="hidden" name="cart_operation" value="cart_operation">
{include file="customer/main/cart_contents.tpl"}
<HR noshade size="1">

{include file="customer/main/cart_totals.tpl"}



{if $js_enabled}
{include file="buttons/update.tpl" href="javascript: document.cartform.submit()" js_to_href="Y"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_update}{/if}
</FORM>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_shipping content=$smarty.capture.checkout_dialog extra="width=100%"}


I hope this clears things up. I also have added to my code to allow for the ezRecommends module. So if you have the ezRecommends and my Points mod, contact me and I will send you an updated points_payment.php file (any orders after 3/6/05 have this code already in there for them).

I hope this clears things up for you guys! Any questions contact me! :)

Carrie

gbanse 05-04-2005 10:39 AM

First, nice mod!

I'm having a bit of trouble getting the logo in the upper left-hand corner to switch out depending on the mode. My code:
Quote:


[img]skin1/images/{if $mode eq [/img]</p>

The way I thought this would work was to change it to the wishlist logo if the url read: /cart.php?mode=wishlist But it doesn't. I'm making the changes in home_checkout.tpl

Jon 05-04-2005 12:04 PM

You may have to edit cart.php and assign the $mode variable to smarty.

gbanse 05-04-2005 12:32 PM

Hello Jon,
Thanks for the reply.

Assign mode like this?

$smarty->assign("mode", $mode);

And I assume it can be at the end of the file outside of any function?

Jon 05-04-2005 12:43 PM

Put that at the end of the file, right before $smarty->display

gbanse 05-04-2005 12:58 PM

Worked like a champ!

Thank you!

JonnyC 05-06-2005 04:19 AM

Hi Jon

Bought your mod yesterday and installed it no problems

Just wanted to say what a great mod and thanks

Jon :lol:

mrbiggles 05-07-2005 09:48 PM

Hello
I bought the EZ-checkout, upsell, and the other one, installed them all ok in about an hour, and they seem to be working fine exept I cannot login with an existing username and password from the checkout, it sends me to a blank checkout page.

I had a quick look through this thread (almost needs its own sub forum) but got 15 pages in and gave up.

Hope this is a common problem, I would place the code here but seeing as its 3rd party thought I had better not.
Regards Adam

Jon 05-07-2005 09:55 PM

Nobody else has reported the error, so I assume it's something specific to your installation, but can find out for sure if you PM me ftp details.

Jon 05-09-2005 10:34 AM

Quote:

Originally Posted by mrbiggles
Hello
I bought the EZ-checkout, upsell, and the other one, installed them all ok in about an hour, and they seem to be working fine exept I cannot login with an existing username and password from the checkout, it sends me to a blank checkout page.


Fixed, you didn't upload the skin1/customer/main folder provided with the installation.


All times are GMT -8. The time now is 01:49 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.