X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Fax Ordering with a printable payment info page (https://forum.x-cart.com/showthread.php?t=14884)

pcarcare 06-29-2005 11:11 AM

Fax Ordering with a printable payment info page
 
Hi-

Does anybody know how I can add a link to a printable fax order form next to the "fax ordering" option during checkout.

What file do I need to edit?

Also, I have been using FrontPage to edit xcart templates. With some files this really doesn't work. Does anybody know of a free editor that works good for editing xcart files?

Thanks

balinor 06-29-2005 11:41 AM

Please don't double post, I have removed your other post.

Do you want the printable form to be next to the actual fax ordering option on the payment method selection screen or at the final stage of checkout?

As for free editors...there really is no substitute for Dreamweaver IMHO, but someone recently posted this:

http://forum.x-cart.com/viewtopic.php?t=20298

Don't know if it works with Smarty, which is the problem with free editors.

pcarcare 06-29-2005 11:46 AM

I don't think I double posted. I posted an other topic on egoods.

I would like the link to be next to the "fax ordering" on the payment option.

Thanks

balinor 06-29-2005 11:50 AM

Not sure about your version, but in the new version that area is controlled by checkout.tpl, down near the bottom. You could put in an {if} statement that would add a link next to the Fax payment method.

Allan Martel 07-05-2005 07:50 AM

I use Araneae which is a free text editor and it has served me well for years.

You can get it here:

http://www.ornj.net/software/araneae/

cotc2001 07-05-2005 08:15 AM

What would be even better would be upon chooseing fax payment method and then clicking on submit (which you would normally do if paying via CC) when submit is clicked goes to new page with basically the same information that is contained in invoice BUT with extra space and details included so that they can just fill in and then fax off.

Bella Forma 07-05-2005 04:23 PM

I just have the following code in my skin1/mail/html/order_invoice.tpl

Code:

{*** Show payment information for queued invoices***}
{if $order.status eq "Q"}
<TR>
  <TD colspan="3"></TD>
</TR>

<TR>
  <TD width="45%" height="25">{$lng.lbl_order_payment_instructions}</TD>
  <TD colspan="2" width="55%"></TD>
</TR>

<TR>
  <TD bgColor="#000000" height="2">[img]{$ImagesDir}/spacer_black.gif[/img]</TD>
  <TD colspan="2">[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>

  {if $order.payment_method eq "Money Order" || ($order.payment_method eq "Cheque (manual processing)")}
  <TR>
    <TD colspan="3">
{$lng.lbl_order_chq_mo_instructions}</TD>
  </TR>
  {/if}
  {if $order.payment_method eq "Direct Deposit"}
  <TR>
    <TD colspan="3">
{$lng.lbl_order_dd_instructions}</TD>
  </TR>
  {/if}
  {if $order.payment_method eq "Phone Ordering"}
  <TR>
    <TD colspan="3">
{$lng.lbl_order_phone_instructions}</TD>
  </TR>
  {/if}
  {if $order.payment_method eq "Fax Ordering"}
  <TR>
    <TD colspan="3">
{$lng.lbl_order_fax_instructions} {$config.Company.company_fax}

</TD>
  </TR>
  <TR>
    <TD colspan="3">Cardholders Name (as shown on card):____________________________________________________


</TD>
  </TR>
  <TR>
    <TD colspan="3">Card Number:___________________________________    Expiry Date:______/___________ 


</TD>
  </TR>
  <TR>
    <TD colspan="3">CVN Number (optional):_________    Cardholders Signature:___________________________________</TD>
  </TR>
  {/if}

{/if}


Which will depending on the payment type selected display instructions in the existing 'Payment Instructions' section. It will only do this for invoices with a status of queued.

I don't know how your version handles the payment but you might be able to apply the same principle to your invoice template? Hope that helps.

pcarcare 07-15-2005 12:42 PM

Worked great, thanks for the help!

Scrapbooker 03-23-2007 12:46 AM

Re: Fax Ordering with a printable payment info page
 
Hi pcarare and Bella Forma,

I know this has looked at for quite some time but this is of interest to us and our checkout/invoice section of xcart. Could you let me know where abouts in the code this sits? I added it to the end of my tpl but alas had nothing show up!

Cheers

Edit:- Sorry my bad, changed /skin1/mail/order_invoice.tpl rather than going into the html sub dir. With a few tweaks it work great! Thanks!


All times are GMT -8. The time now is 04:35 AM.

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