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)

EnriqueHavoc 10-14-2004 04:25 PM

kind of like putting candy and tabloids at the supermarket checkout.. i like it! haha

Jon 10-14-2004 08:33 PM

Exactly the idea of upselling, right at the counter, except it's more custom because you make offers based on what their holding :D

I've got a first pass done on my site which you can view here:
http://www.mixtapemp3.com/customer/cart.php

Add product(s) and add to cart, then proceed to checkout. After logging in you'll get the recommends (I wanted it after login so I have a commitment from them).

It looks through the products in their cart, and looks through all the order data for those products, pulling our products that were purchased at the same time as the products in their cart. It then randomly picks a set number of items (in my case 4) to return. They can click "show me more" to get another random set.

After adding to the cart, the mini cart in the top right updates, but they stay on the same page with a message saying the product has been added.

mytreo.net 10-17-2004 02:33 PM

Hi Jon I'm just considering buying your Easy Checkout Addon - can I really be bothered to code it myself when you seem to have done such a nice job, but btw the recommends section on your checkout threw an SQL error at me during the order process :)

I hope I can get your mod installed and working nice if I buy it, I'm new to X-cart but enjoy the way it works.

mytreo.net 10-17-2004 03:11 PM

Well I bought it and the install seemed to go okay but I have a few little problems. ..

First is it easy for me to integrate the checkout with the rest of the site design? I was a little upset that it didn't run within the main template like the original checkout system - can you explain how I can make it appear the same as the other cart pages please?

Also stage 2 of ordering (the login) doesn't appear to be working correctly on my install - it displays the cart contents at the top and doesnt look at all like your screenshots (and also if you log in it returns to the wrong part of the checkout process) please could you take a look for me, I hope you can help me :) http://mytreo.net/store/customer/cart.php?mode=checkout

thanks much for a really useful addon

Jon 10-17-2004 06:25 PM

Thanks for letting me know about the mysql error, I'm still brushing up the code on that :)

To have the pages contain all the components of your shopping cart, the categories, etc., don't edit cart.php to use home_main.tpl and instead keep it using home.tpl

With that however you wont get the tabs, etc. across the top. You could take the tab code and integrate it into your home.tpl if you wished.

If it's not working correctly, then likely there was an error made in your installation. If you PM me ftp details I'll have a look for you.

Jon 10-17-2004 06:30 PM

mytreo.net there was definitely steps missed/done incorrectly in your installation process. You'll want to go over the installation instructions again to double check everything. Please PM me ftp details if you wish me to have a look.

mytreo.net 10-18-2004 01:00 AM

Quote:

Originally Posted by Jon
To have the pages contain all the components of your shopping cart, the categories, etc., don't edit cart.php to use home_main.tpl and instead keep it using home.tpl

With that however you wont get the tabs, etc. across the top. You could take the tab code and integrate it into your home.tpl if you wished.
Sounds good

If it's not working correctly, then likely there was an error made in your installation. If you PM me ftp details I'll have a look for you.


Thanks I'm sure I followed the install instructions properly - I had previosuly edited anonymous_checkout.tpl but since that was overwritten I didn't think it would matter. I'll send you a PM :)

Jon 10-18-2004 07:47 AM

^ It's fixed. Looks like you had your smarty configured not to compile every time and so the templates weren't recompiling. I set it to compile every time, ran through the process, and then set it back to your original setting. Everything seemed to work well. Note that you only have 1 payment method which is why that payment method is skipped. If you wanted to you could remove that tab, or just comment it out until you have more methods.

mytreo.net 10-18-2004 07:59 AM

Thanks for fixing it, you're a gent :)

OT but what does it mean that I had the smarty configured not to recompile the templates each time? This sounds like something i should be aware of, could you explain pls or point me in the right direction?

I'm going to attempt to integrate the tag code into the home.tpl now and then you'll have another happy customer :D

Jon 10-18-2004 09:08 AM

In your smarty folder, you have a smarty.class.php

Code:

    /**
    * JON
    * This tells Smarty whether to check for recompiling or not. Recompiling
    * does not need to happen unless a template or config file is changed.
    * Typically you enable this during development, and disable for
    * production.
    *
    * @var boolean
    */
    var $compile_check  =  true;

    /**
    * This forces templates to compile every time. Useful for development
    * or debugging.
    *
    * @var boolean
    */
    var $force_compile  =  false;


There's a production setting and a development setting.

Let me know how the integration goes and if you need any help just let me know in this thread.


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

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