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
  #241  
Old 11-21-2004, 12:27 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default

Hi Jon you gave me the code to remove the pic at "checkout" and the code you done for someone else so its all on one line, i do think its much better, but what i would like is to keep the picture but made much smaller, but keep the look so that it appears all on one line.
I must admit its easier when i buy my stock online at checkout you can visually see what you've brought, but the orginal code made the picture really big.
could you modify the code for me so it will do this, ive posted the code below that ive got at the moment, also i wasn't planing on going live untill after christmas, but having 2 sites going hopefully will pull more money in.
Should have the money in my paypal tomorrow, so i will pm you and get things sorted out tomorrow.
Thanks for your help Dean



{* $Id: cart.tpl,v 1.74.2.2 2004/08/11 09:46:01 max Exp $ *}
<H3>{$lng.lbl_your_shopping_cart}</H3>
{$lng.txt_cart_header}
{if $active_modules.Gift_Certificates ne ""}
{$lng.txt_cart_note}
{/if}



{capture name=dialog}



{if $products ne ""}
<FORM action="cart.php" method="post" name="cartform">
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR class="HeadLine">
<TD class="HeadLine">{$lng.lbl_item_checkout}</TD>
<TD class="HeadLine">{$lng.lbl_options_checkout}</TD>
<TD class="HeadLine">{$lng.lbl_price_checkout}</TD>
<TD></TD>
</TR>

{section name=product loop=$products}
{if $products[product].hidden eq ""}

<TR>
<TD>{$products[product].product} </TD>
<TD>

{if $products[product].product_options ne ""}

{foreach from=$products[product].product_options item=v}

{$v.class}:
{$v.option_name}

{/foreach}

{/if}</TD>

<TD width="43%">
{assign var="price" value=$products[product].display_price}
{if $active_modules.Product_Configurator ne "" and $products[product].product_type eq "C"}
{include file="modules/Product_Configurator/pconf_customer_cart.tpl" main_product=$products[product]}
{assign var="price" value=$products[product].pconf_display_price}

{/if}
<DIV align="left">
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice and $products[product].product_type ne "C"}
{include file="modules/Subscriptions/subscription_priceincart.tpl"}
{else}
{include file="currency.tpl" value=$price} x {if $active_modules.Egoods and $products[product].distribution}1<INPUT type="hidden"{else}
<INPUT type="text" size=3{/if} name="productindexes[{$products[product].cartid}]" value="{$products[product].amount}"> ={math equation="price*amount" price=$price amount=$products[product].amount format="%.2f" assign=unformatted}{include file="currency.tpl" value=$unformatted} {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$unformatted}
{if $config.Taxes.display_taxed_order_totals eq "Y" and $products[product].taxes}{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}
{/if}
{/if}
</TD>
<TD>{include file="buttons/delete_item.tpl" href="cart.php?mode=delete&productindex=`$products [product].cartid`"}
{if $products[product].product_options ne ''}
{include file="buttons/edit_product_options.tpl" href="javascript:window.open('`$catalogs.customer` /popup_poptions.php?target=cart&id=`$products[product].cartid`','POptions','width=400,height=350,toolbar =no,status=no,scrollbars=yes,resizable=no,menubar= no,location=no,direction=no');"}
{/if}</DIV>
</TD>
</TR>

<TR>
<TD colspan="2"></TD>
<TD colspan="2"></TD>
</TR>

{/if}
{/section}
<TR><TD colspan=4><HR size="1" noshade></TD></TR>
</table>
{if $active_modules.Gift_Certificates ne ""}
{include file="modules/Gift_Certificates/gc_cart.tpl" giftcerts_data=$cart.giftcerts}
{/if}
{include file="customer/main/cart_totals.tpl"}




{if $js_enabled}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD>
{include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}

{include file="buttons/button.tpl" button_title=$lng.lbl_clear_cart href="cart.php?mode=clear_cart"}
</TD>
<TD align="right">
{include file="buttons/button.tpl" button_title=$lng.lbl_checkout style="button" href="cart.php?mode=checkout"}
</TD>
</TR>
</TABLE>
{else}
<INPUT type="hidden" name="mode" value="checkout">
{include file="submit_wo_js.tpl" value=$lng.lbl_checkout}
{/if}
</FORM>
{else}
{$lng.txt_your_shopping_cart_is_empty}
{/if}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_items content=$smarty.capture.dialog extra="width=100%"}
{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}
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #242  
Old 11-21-2004, 12:45 PM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

Here's a 4.0.7 upgrade hint for everyone using this mod that started before 4.0.7.

Provided you don't have any other mods installed on these file. Even if you do, I still suggest you reinstall them on the new files.

Take register.php out of the full software distributive at your file area at x-cart. Place it in /xcart_dir/include/. It does not need to be modded.

Take login.php out of the full software distributive at your file area at x-cart. Mod it per Jon's instructions. However use the code below.

Code:
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)) { if((strpos($HTTP_REFERER, "mode=auth") === false) && (strpos($HTTP_REFERER, "mode=checkout") === false)) { func_header_location($redirect_to."/cart.php");

Place it in /xcart_dir/include/.

Take cart.php out of the full software distributive at your file area at x-cart. Mod it per Jon's instructions. Place it in /xcart_dir/.

Trust me that it is a whole bunch easier to do it this way then to attempt to manually apply the upgrade dif files.
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #243  
Old 11-22-2004, 07:57 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default

Hi Jon have sent you a pm, regarding checkout mod, cheers dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #244  
Old 11-24-2004, 12:29 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default

jon have sent you a pm, just a small problem with checkout mod if you can advise please, thanks Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #245  
Old 11-25-2004, 03:01 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default new checkout

Hi all, just installed Jon's new checkout with some help off Jon.
(me not installing correctly) really pleased excellent improvment to xcarts orginal cart, xcart should buy this mode from jon and implement it.
Much needed improvment, well worth the money..
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #246  
Old 11-27-2004, 07:07 AM
 
parmar parmar is offline
 

eXpert
  
Join Date: Apr 2003
Location: London, UK
Posts: 286
 

Default Re: new checkout

Quote:
Originally Posted by a1deano
.......................xcart should buy this mode from jon and implement it.
Much needed improvment, well worth the money..

It's a great product. We are planning to go live with this next week. It seems X-Cart are already planning to implement something similiar in future according to Jon himself in a reply he sent..
Quote:
Looks like in the newer versions they are now making changes to integrate some of my mod.

Great Mod Jon.. And great support to go with it.

Cheers.
__________________
--------------------
Sandip


x-cart version 5.4.X, hosted on X-Cart server/
Reply With Quote
  #247  
Old 11-27-2004, 02:12 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

For those of your who have purchased marketing manager pro bundle, please remember to add the traffic monitor code to the easy check out pages if you are using the simplified version of easy checkout.

I.e if your easy checkout does not have your normal header/menu parts from home.tpl, then you need to add the tracking code to the cart.php pages too.

Thanks
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #248  
Old 11-27-2004, 02:19 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Thanks Groovico. I thought about that the other day and promptly forgot again.

On my work list now!
Reply With Quote
  #249  
Old 11-27-2004, 03:02 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

For marketing manager you can simply add the tracking code to skin1/customer/home_checkout.tpl
Reply With Quote
  #250  
Old 11-27-2004, 03:31 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Funnily enough i thought about that a couple of days ago and implemented, funny how minds think alike.
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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 02:11 PM.

   

 
X-Cart forums © 2001-2020