Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Send as A Gift at Check Out

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 10-08-2003, 12:43 PM
 
MOC MOC is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 171
 

Default

Everyone whos intrested, i got a quote for a module for gift wrapping.


http://forum.x-cart.com/viewtopic.php?p=27523#27523
Reply With Quote
  #12  
Old 10-09-2003, 05:43 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

2 simple product options can solve this without MUCH backend modifications.

First product option of "Gift Wrap" with "No"/"Yes=+20" or however much you want to charge for the Yes selection.

The other would be setup like so: Option class should be "ShipGift", option text can be whatever you want to be displayed next to the field, I did "If you want to ship this gift elsewhere, enter Address". Now leave Option list blank.

Now edit: skin1/modules/Product_Options/customer_options.tpl:

Replace the below code:

Code:
<input type=text name="product_options[{$product_options[product_option].optclass}]" size=32>

With this:

Code:
{*** allow textarea instead of input area for larger input ***} {if $product_options[product_option].optclass eq "ShipGift"} <textarea name="product_options[{$product_options[product_option].optclass}]" COLS=42 ROWS=10></textarea> {else} <input type=text name="product_options[{$product_options[product_option].optclass}]" size=32> {/if} {*** end ***}

Now any product option class that is "ShopGift" will have a large textarea to insert data. This is where your user can insert the Address the Gift should be sent to.

Simple solution, I'm doing the same (sorta) thing on www.cartlab.net for the product Notes. If you want to see it in action.

If you want to insert some data into the textarea (ie. Insert the shipping address here) Just put this text inside the <textarea ...>Insert text here</textarea>.

Why re-invent the wheel?
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:37 AM.

   

 
X-Cart forums © 2001-2020