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 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:01 AM.

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