Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Easy Checkout Mod for X-Cart 3.5.x and 4.0.x

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #321  
Old 03-02-2005, 03:49 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

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
__________________
vs 4.1.12
Reply With Quote
  #322  
Old 03-02-2005, 06:53 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

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...
__________________
vs 4.1.12
Reply With Quote
  #323  
Old 03-06-2005, 05:43 AM
 
zardos zardos is offline
 

Senior Member
  
Join Date: Jun 2004
Location: UK England
Posts: 140
 

Default

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
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote
  #324  
Old 03-06-2005, 09:18 AM
 
zardos zardos is offline
 

Senior Member
  
Join Date: Jun 2004
Location: UK England
Posts: 140
 

Default

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
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote
  #325  
Old 03-06-2005, 07:08 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

I'm evaluating the code for ezRecommends and will be fixing some issues with gift certificates and with the points mod shortly.
Reply With Quote
  #326  
Old 03-06-2005, 07:55 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

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.
__________________
vs 4.1.12
Reply With Quote
  #327  
Old 03-07-2005, 07:40 PM
 
halestorm halestorm is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 44
 

Default

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?
__________________
...
x-cart-4.0.11

http://www.thegamegeek.net
Reply With Quote
  #328  
Old 03-08-2005, 02:06 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

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%"}
Reply With Quote
  #329  
Old 03-09-2005, 10:00 AM
 
lixy lixy is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 41
 

Default

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!
__________________
XC 4.1.3
Reply With Quote
  #330  
Old 03-11-2005, 03:04 AM
 
ian_fs ian_fs is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Norwich, UK
Posts: 86
 

Default

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]
__________________
X-Cart 4.0.17
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:44 PM.

   

 
X-Cart forums © 2001-2020