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)

markwhoo 03-02-2005 03:49 PM

Quote:

Originally Posted by markwhoo
Jon,

Which of the files can I edit to make the personal info appear a bit cleaner on the last check out page.

The lines under the stock layout from xcart are not as desirable as I would like.

It almost looks like a portion of register personal info or register contact info or maybe even a label tpl due to the slotted line usage.


Thanks Jon


Found it, nevermind...

thanks for the help

markwhoo 03-02-2005 06:53 PM

ok, I tired this change to the code to effect how xcart redirects after a gift certificate has been made and found I was still only redirected to the recomends page and not where I was supposed to go and see the message (applied or applied and choose payment for additional funds)

Code:

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.lbl_gift_cert_applied}</p>{/if}

Then add the language variable through your admin

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


So, my question is, how is this different for version 4.0.11 than it was for the earlier 4.0.x branch.


also noticed that the points payment methid needs the same style of redirect as the gift certificate due to possibly only having partial payment with points and partial with what ever, cc, money order, check etc.


Anyone have and input on this?


I also still need to know how to change boarder to another color besides white. I changed the background color in the tpl file and it still shows all white. I am guessing it is being overridden in the css, but do not know where. Could use a lil help on that also.


Thanks to those in advance that take the time...

zardos 03-06-2005 05:43 AM

Hi Jon

Can you help me with these errors Jon

Code:

[06-Mar-2005 14:23:40] SQL error: /megapcs4u/cart.php

1065 : Query was empty
Backtrace:
/home/xxxxxx/public_html/megapcs4u/include/func.php:120
/home/xxxxxx/public_html/megapcs4u/include/func.php:80
/home/xxxxxx/public_html/megapcs4u/include/func.php:164
/home/xxxxxx/public_html/megapcs4u/modules/ezRecommends/ezrecommends.php(20) : eval()'d code(1) : eval()'d code(1) : eval()'d code:65
/home/xxxxxx/public_html/megapcs4u/modules/ezRecommends/ezrecommends.php(20) : eval()'d code(1) : eval()'d code:1
/home/xxxxxx/public_html/megapcs4u/modules/ezRecommends/ezrecommends.php(20) : eval()'d code:1
/home/xxxxxx/public_html/megapcs4u/modules/ezRecommends/ezrecommends.php:20
/home/xxxxxx/public_html/megapcs4u/cart.php:718
-------------------------------------------------
[06-Mar-2005 14:23:40] SQL error: /megapcs4u/cart.php
SELECT DISTINCT productid2 as productid FROM xcart_product_links where ()) AND (productid2!='') 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!='') ORDER BY RAND() LIMIT 4' at line 1
Backtrace:
/home/xxxxxx/public_html/megapcs4u/include/func.php:120
/home/xxxxxx/public_html/megapcs4u/include/func.php:80
/home/xxxxxx/public_html/megapcs4u/include/func.php:164
/home/xxxxxx/public_html/megapcs4u/modules/ezRecommends/ezrecommends.php(20) : eval()'d code(1) : eval()'d code(1) : eval()'d code:72
/home/xxxxxx/public_html/megapcs4u/modules/ezRecommends/ezrecommends.php(20) : eval()'d code(1) : eval()'d code:1
/home/xxxxxx/public_html/megapcs4u/modules/ezRecommends/ezrecommends.php(20) : eval()'d code:1
/home/xxxxxx/public_html/megapcs4u/modules/ezRecommends/ezrecommends.php:20
/home/xxxxxx/public_html/megapcs4u/cart.php:718
-------------------------------------------------


This seems to only go wrong when i use the gift certificate, all you other mods seem to work well. one other problem is the change the gift certificate redirect, and to give them a message when the certificate does not cover the cost, it will not show the message. It could be the above mod causing the problem.

John

zardos 03-06-2005 09:18 AM

Hi markwhoo

Home_Checkout.tpl for logout of ezcheckout

Code:

<form action="../include/login.php" method=post name=loginform>


Try this

Quote:

<form action="include/login.php" method=post name=loginform>



It works fine for me.

John

Jon 03-06-2005 07:08 PM

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

markwhoo 03-06-2005 07:55 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.


Sounds great! I look forward to it. :wink:

halestorm 03-07-2005 07:40 PM

I'm Back....

Jon,

On your site of the the steps you had an message saying something about the email may end up in the junk/bulk folder.

What page was that and how did you get it in?

Jon 03-08-2005 02:06 PM

I added it to skin1/customer/main/checkout.tpl

AFTER:

Code:

{if $payment_data.payment_method ne ""}

{capture name=dialog}
{include file="customer/main/customer_details.tpl"}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_payment_details content=$smarty.capture.dialog extra="width=100%"}


lixy 03-09-2005 10:00 AM

Can anyone offer some advice on the following situation: When an incomplete registration form is submitted while in the easy checkout the page refreshes but fails to retain any info already entered into a field. When the register.tpl is accessed from the main site and and incomplete form is submitted the page is refreshed and any previous field data entered remains.

I need the register.tpl page within the easy checkout mod to retain any completed fields when an incomplete form is submitted. Thanks in advance!

ian_fs 03-11-2005 03:04 AM

On a fresh installation of X-Cart with exCheckout installed I receive this error when ever trying to login / logout of customer and admin:

Code:

Parse error: parse error, unexpected '}' in W:\www\dev\include\login.php on line 203

line number changes between 201 and 203 depending if there is a white space before the code is modified.

The code in question is:

Code:

[b]Find[/b]

 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");
}

[b]Replace With[/b]

if ($login_type == "C" || $login_type == "B") {
if($redirect2 == "checkout") {
func_header_location($redirect_to."/cart.php?mode=checkout")
} elseif (!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");
}


It is with the replacement code that the problem is occuring. This error has now happened on two versions of fresh installs of X-Cart when testing to check I was double sure.

Ian[/b][/code]


All times are GMT -8. The time now is 04:06 AM.

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