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)

adpboss 11-02-2004 10:38 AM

Jon,

I need some custom work done to the checkout mod in a 4.0.6 store.

I am looking for another tab between payment method and login for terms and acceptance (I have older 3.4.x compatible code for you to reference) as well as some help getting a custom display on the final ORDER SUBMIT page.

If you would like to PM me, that would be cool. :D

cotc2001 11-02-2004 12:29 PM

Cheers Jon, code change worked perfectly.

rjcbear 11-02-2004 02:06 PM

Jon,

I have a question.

Once you select payment method on the method tab and the process moves to the next tab wich is payment the cart goes out of the secure site to display the Shipping and the Billing information.

Is there a way that I can keep this step in the secure site so it will not jump back and forth between the secure and the unsecure site?

Thank you in advance for the help.

Kind regards,
Ricky

adpboss 11-02-2004 02:13 PM

Do not redirect from http to https. I think that is the setting you need to use but it will affect your whole store for logged in customers as well.

It is in general settings.

rjcbear 11-02-2004 05:02 PM

Quote:

Originally Posted by adpboss
Do not redirect from http to https. I think that is the setting you need to use but it will affect your whole store for logged in customers as well.

It is in general settings.


ADPboss,

You are correct it is the default settings. But I think that gives the customers the wong idea as they think they are not in a secure site for payment method.

I just wish ot will stay in the secure site once it moves there.

Thank you.

Kind regards,
Ricky

adpboss 11-02-2004 05:05 PM

You missed it.

General Settings

Enable

Quote:

Do not redirect from http to https

rjcbear 11-02-2004 05:18 PM

ADPboss,

I sure missed it. I guess my blonde monent and a big one too.

Do not redirect customers from HTTPS to HTTP:

just checked it.

Thank you so much.

Kind regards,
Ricky

adpboss 11-02-2004 05:24 PM

No problem. Just figured that one out last week! :D

a1deano 11-03-2004 07:20 AM

Help needed please !!
 
Hi all i need some help, ive been trying to edit some customer order templates. The ones a customer recieves by e-mail when an order has been placed/processed and completed.
i went to mail/order_customer_complete.tpl , just wanted to change a few things on there and i got this message -

Fatal error: Smarty error: [in mail/order_data.tpl line 11]: syntax error: invalid
attribute name: '=' (Smarty_Compiler.class.php, line 1512) in /home/a1dean/public_html/Smarty-2.6.3/Smarty.class.php on line 1082

I am totally lost, this happened with all the order_customer templates
although when i do a test run buying an item paying etc, all e-mail appear
to be fine, but i want to edit a few things out.
any one got any ideas please.

Jon i need some code and need to know where to place can i pm you !!

adamsteinhoff 11-03-2004 11:46 AM

Just purchased and installed...
 
Just wanted to add my 2 cents...

* The installation was easy. I think I had it done in about 5-10 minutes.
* The price was right, however I kick myself for missing the Oct special by two days.
* It looks great!

I do have one question for Jon or anyone else who wants to chime in. My site has a button for "view cart" that links to cart.php with no arguments. I would like that to stay in the old cart that is built into the site instead of bringing me to the checkout cart that was updated. I hate to 'force' people to checkout if they want to stay on the site and shop a little more.

What should I do?

Adam

Jon 11-03-2004 12:13 PM

^ Not positive this will work, but I think it will.

Open your cart.php

Find:

Code:

$smarty->display("customer/home_checkout.tpl");

Replace with:

Code:

if ($mode == "checkout") {
          $smarty->display("customer/home_checkout.tpl");
} else {
          $smarty->display("customer/home.tpl");
}


Jon 11-03-2004 12:14 PM

Re: Help needed please !!
 
Quote:

Originally Posted by a1deano
Hi all i need some help, ive been trying to edit some customer order templates. The ones a customer recieves by e-mail when an order has been placed/processed and completed.
i went to mail/order_customer_complete.tpl , just wanted to change a few things on there and i got this message -

Fatal error: Smarty error: [in mail/order_data.tpl line 11]: syntax error: invalid
attribute name: '=' (Smarty_Compiler.class.php, line 1512) in /home/a1dean/public_html/Smarty-2.6.3/Smarty.class.php on line 1082

I am totally lost, this happened with all the order_customer templates
although when i do a test run buying an item paying etc, all e-mail appear
to be fine, but i want to edit a few things out.
any one got any ideas please.

Jon i need some code and need to know where to place can i pm you !!


Probably means that you edited the templates incorrectly. Try restoring and attempting to edit over again. Feel free to PM me and I will assist you if I can.

a1deano 11-03-2004 02:10 PM

Hi jon, went upto my public_html and found cart.php but i couldn't find the code $smarty->display("customer/home_checkout.tpl");
i looked twice but can't find it anywere !!

adpboss 11-03-2004 02:22 PM

You have to own this mod to use many of the changes Jon has listed.

a1deano 11-03-2004 02:27 PM

have you got any other ideas what i have done wrong, i havn't done to much work to my cart so if i have to do a re-install then i will.
serve me right for messing about with code when i only know basic html !!
Going to try going backwards and getting rid of stuff ive done to see if i can find were ive gone wrong, thanks guys for your help, appreciated

adpboss 11-03-2004 02:32 PM

Deano here is a suggestion.

Always copy your file to your local PC by FTP. Then edit it on your desktop. When you go to re-upload it to the server, rename your old file filename_OLD.tpl (or php) first. that way you can always delete the new file and just remove the _old from the original and you are back to good.

a1deano 11-03-2004 02:46 PM

think i will take that advice, as before i should of made sure i made back up copies first, my fault, but if any you do find the could what ive done wrong that would be great, or if you advise i will do a fresh install
regards Dean

Jon 11-03-2004 03:01 PM

Just open up your x-cart tar.gz file using winzip.com

Find:

mail/order_data.tpl

Extract it.

Upload it over your current file. No need to reinstall everything.

a1deano 11-04-2004 02:15 AM

Jon cheers for that, your a life saver, i did use the "restore file" button on a lot of these files last night to see if i could reverse the problem, but it didn't reverse what i had done, This taught me a small but valuable lesson
back backups first !!! think the thurst for knowledge and know how is a dangerous thing when you only have basic html knowledge your still trying to learn more, seem to get yourself in more mess sometimes than you were in the first place.
cheers you guys

adamsteinhoff 11-04-2004 07:44 AM

Quote:

Originally Posted by Jon
^ Not positive this will work, but I think it will.

Open your cart.php

Find:

Code:

$smarty->display("customer/home_checkout.tpl");

Replace with:

Code:

if ($mode == "checkout") {
          $smarty->display("customer/home_checkout.tpl");
} else {
          $smarty->display("customer/home.tpl");
}



Jon,

I don't see anything in my cart.php that looks like that, but I did find this:

Code:

func_display("customer/home_checkout.tpl",$smarty);

Do I need to do something with that?

Thanks,

Adam

Jon 11-04-2004 10:06 AM

Sorry, gave you instructions for 3.5 instead of 4.0

Replace:

Code:

func_display("customer/home_checkout.tpl",$smarty);

With this:

Code:

if ($mode == "checkout") {
          func_display("customer/home_checkout.tpl",$smarty);
} else {
          func_display("customer/home.tpl",$smarty);
}


adamsteinhoff 11-04-2004 11:25 AM

Quote:

Originally Posted by Jon
Sorry, gave you instructions for 3.5 instead of 4.0


Once again... You are the man. THANKS!

rjcbear 11-08-2004 02:20 PM

Jon,

I would like to add couple of banners to the checkout process at the bottom just like you have in your site. Would you please point me in the direction of the proper templete files that I need to edit in order to have the banners display.

Thank you in advance.

Kind regards,
Ricky

Jon 11-08-2004 02:33 PM

^ Simply edit your /skin1/customer/home_checkout.tpl

rjcbear 11-08-2004 05:25 PM

Quote:

Originally Posted by Jon
^ Simply edit your /skin1/customer/home_checkout.tpl


Thank you Jon working on the mod now.

One more question the confirmation step what templete is it using?

thank you in advance.

kind regards,
Ricky

Jon 11-08-2004 05:52 PM

I believe it's skin1/customer/main/order_message.tpl

AJ-UKRS 11-11-2004 10:27 AM

I noticed though my x-cart stats that im loosing alot of sales in the cart/checkout process... What can i say, the minute i got this, the sales improved, thanks for releasing this Jon... i understand the concept, its like closing the sale, works a treat!

It was very easy to install... i mean i don't have a clue about this stuff but even i could do it...

Worth every penny!

EnriqueHavoc 11-12-2004 04:53 AM

Hey jon-

Is there a way to display the order and price total during the payment step? I want to give customers one last chance to make sure they have the correct items in their cart before paying...

Jon 11-12-2004 11:26 AM

Remove the if statement "{if $config.Shipping.realtime_shipping eq "Y"}" from customer/main/checkout.tpl

In other words:

Replace:

Code:

{if $config.Shipping.realtime_shipping eq "Y"}
{capture name=checkout_dialog}
<form action="cart.php" method=post name=cartform>

{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"}
{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}


With:

Code:

{capture name=checkout_dialog}
<form action="cart.php" method=post name=cartform>

{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"}
{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%"}


a1deano 11-12-2004 03:00 PM

Jon can you help please
 
Hi Jon can you tell me how to create another menu box, i wish to call this menu box "information", also i would like to use a dingbat with it so it blends in with the rest of the menu boxes, have been looking around trying to find an answer but no luck, i have create one use tables and basic html, but i can't get it to look the same. if you get 5 mins have a look at my site, changed since you were last there, wife didn't like the look
of the colors, i have create this menu underneath the help menu.
many thanks Dean
www.premierbodyjewellery.com

Jon 11-12-2004 03:14 PM

Edit the areas in capital letters.

You need to upload the dingbat to the skin1/images folder.

Code:


{capture name=menu}

PUT THE CONTENT HERE

{/section}
{/capture}
{ include file="menu.tpl" dingbats="DINGBAT_FILE_HERE.gif" menu_title="MENU TITLE HERE" menu_content=$smarty.capture.menu }


a1deano 11-12-2004 03:21 PM

jon sorry which templete is it i have to do this with, you know me not to clever at this stuff yet, thanks again

Jon 11-12-2004 03:29 PM

Put that wherever you want the menu to appear.

/skin1/customer/home.tpl

That's probably the one you want.

a1deano 11-12-2004 03:46 PM

thanks for your help jon, cheers

rjcbear 11-12-2004 10:11 PM

Here is a little picture of the invoice I finish re-desing it. I have not posted the files her because I think will be better if you can get a zip file.
I have asked Carrie from www.bcsengineering.com to put it on her store in the free mod area and she has agree to do it. So you can get it there 24/7.

Or you can e-mail at webmaster@ballroomdancingshoe.com requesting the nice invoice mod and I will send it to you. no more words here is the image of it.

http://www.ballroomdancingshoe.com/images/invoice.gif

kind regards,
Ricky

parmar 11-14-2004 04:47 AM

Jon..

Having bought the Easy Checkout mod few weeks ago, I'm just trying to install it now on our development site, X-Cart version 4.0.7

i'm just wondering about this code below.

Quote:

Find:

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

Replace with:

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)) {
func_header_location($redirect_to."/cart.php");

The lines on my include/login.php file are as below. Do I replace the whole of the section below with your code? including the if((strpos($HTTP_REFERER, "mode=auth")...... bit too?
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");


Same in register.php file. do i replace the whole of the section below with your code?
Code:

elseif ($action == "cart") {
                if (empty($paymentid))
                        $script = "cart.php?mode=checkout&registered=";


Thank you in advance.

Jon 11-14-2004 09:39 AM

Looks like in the newer versions they are now making changes to integrate some of my mod.

Login.php needs to be changed to this:

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

---

If in register.php it looks like this you do not need to change it:

elseif ($action == "cart") {
if (empty($paymentid))
$script = "cart.php?mode=checkout&registered=";

a1deano 11-14-2004 01:28 PM

is there a problem with v4.07, or is it just me !!!
 
Hi jon as we were speaking before and i had prob with mysql database
they have now brought out v4.07 so i un-installed v4.06 and done a new database after speaking with my hosting tech support, database i can gain accses to now, but i installed new version, set permissions etc
but on running install.php all ok untill i get to Checking results
Critical dependencies, it has failed on - File uploads is ... Off
So i un-installed and re-uploaded v4.06 and all depenencies are ok,
so yet again, un-installed and re-uploaded v4.07 and once again
File uploads is ... Off failed !! so i can't go any further, tell a lie i first tried doing a patch for the new version, but it came back with the same problem, so thats why i un-installed, any advice, except leave well alone next time (dont fix what isn't broken) haha.
thanks Dean

Jon 11-14-2004 01:36 PM

^ No idea. Best bet is to contact x-cart support.

a1deano 11-15-2004 02:18 AM

Hi thanks anyway jon, at least i used my head this time and made a full
public_html backup through my server and a my sqldump, so got my site back up within 5 mins, i have contacted xcart support would just like to know why incase there a bug, cheers Dean


All times are GMT -8. The time now is 07:52 AM.

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