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)

Jon 09-22-2004 01:56 PM

Quote:

Originally Posted by rjcbear
For those of us that only use paypal how can me display the IP address of the customer during the checkout process like you have on your site.

Kind regards,
Ricky


You can use this code in a smarty template:

Code:

Your IP address {php}echo $_SERVER['REMOTE_ADDR'];{/php} has been logged.

Jon 09-22-2004 01:56 PM

Quote:

Originally Posted by amy2203
Thanks for this, great mod, I think it makes the ckeckout process soooo much easier.

If anyone wants a look it's www.willowtreecrafts.co.uk (live site so you'll only be able to see the first page)

Thanks again

Amy


Great looking site.

rjcbear 09-22-2004 05:47 PM

Quote:

Can you post up your template file?

Here is the part of the tpl I modified

Code:

{* $Id: cart.tpl,v 1.59.2.4 2004/02/06 10:19:50 svowl Exp $ *}
{include file="location.tpl" last_location=$lng.lbl_your_shopping_cart}
<h3>{$lng.lbl_your_shopping_cart}</h3>
{$lng.txt_cart_header}
{if $active_modules.Gift_Certificates ne ""}
{$lng.txt_cart_note}
{/if}
{if $cart.coupon_discount eq 0 and $products ne ""}






{if $active_modules.Gift_Certificates ne ""}
{include file="modules/Gift_Certificates/gc_cart.tpl" giftcerts_data=$cart.giftcerts}
{/if}



{if $active_modules.Discount_Coupons ne ""}
{include file="modules/Discount_Coupons/add_coupon.tpl}
{/if}
{/if}



{capture name=dialog}



{if $products ne ""}
<form action="cart.php" method=post name=cartform>
<table border=0 width=100%>
{section name=product loop=$products}
{if $products[product].hidden eq ""}
<tr><td width=50 valign=top>
<a href="product.php?productid={$products[product].productid}">{include file="product_thumbnail.tpl" productid=$products


Thanks for all your help.

KInd regards,
Ricky

Jon 09-22-2004 05:49 PM

Use this:

Code:

{* $Id: cart.tpl,v 1.59.2.4 2004/02/06 10:19:50 svowl Exp $ *}
{include file="location.tpl" last_location=$lng.lbl_your_shopping_cart}
<h3>{$lng.lbl_your_shopping_cart}</h3>
{$lng.txt_cart_header}
{if $active_modules.Gift_Certificates ne ""}
{$lng.txt_cart_note}
{/if}
{if $active_modules.Gift_Certificates ne ""}
{include file="modules/Gift_Certificates/gc_cart.tpl" giftcerts_data=$cart.giftcerts}
{/if}
{if $cart.coupon_discount eq 0 and $products ne ""}


 
{if $active_modules.Discount_Coupons ne ""}
{include file="modules/Discount_Coupons/add_coupon.tpl}
{/if}
{/if}




rjcbear 09-22-2004 06:09 PM

Jon did not move at all :(

Jon 09-22-2004 07:22 PM

Looks like the only way your cart is handling gift certificates is by the person selecting it as a payment option.

Can you explain to me in more detail what your trying to do?

rjcbear 09-22-2004 08:57 PM

Quote:

Originally Posted by Jon
Looks like the only way your cart is handling gift certificates is by the person selecting it as a payment option.

Can you explain to me in more detail what your trying to do?


Sorry about that see if I can make a little bet better.

I had a customer the other day that was very ill because she could not find the place where to enter the code for her gift certificate and I got a very ugly e-mail from her. I would like to avoid this problem again if possible.

This is located in the checkout process when the customers selects gift certificate as a payment method. In my opinion the problem comes due to the current location of the gift certificate box at the bottom of the page if the location of the gift certificate box can be move to the top of the page the customers will not miss it that easy. Therefore very happy customer.

I hope this is much better explanation of my task.

Kind regards,
Ricky

Jon 09-22-2004 10:07 PM

So just to clarify. After they select gift certificate as a payment method, you want them to go to a page that has the gift certificate entry at the top, with the order details below it?

cotc2001 09-22-2004 10:55 PM

Still havent played with x-cart 4.0.x yet to try this one out, but wouldnt it be better to always have the gift voucher box available at checkout regardless of it was chosen as a payment method.

so customer would goto checkout and if all other methods of payment was hidden so that credit card is the only one used they go straight to credit card payment, on there is a input box for gift certificate along with other usuel stuff, if they enter gift certificate page refreshes and then shows the amount paid via gift cert and then carries on as normal.

rjcbear 09-23-2004 09:08 AM

Quote:

Originally Posted by Jon
So just to clarify. After they select gift certificate as a payment method, you want them to go to a page that has the gift certificate entry at the top, with the order details below it?


Yes Jon. I think that will help alot.

Kind regards,
Ricky


All times are GMT -8. The time now is 04:28 PM.

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