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

Deposit Payment Options

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 06-20-2010, 02:28 PM
  kevfromwiganinlancashire's Avatar 
kevfromwiganinlancashire kevfromwiganinlancashire is offline
 

X-Adept
  
Join Date: Nov 2004
Location: Appley Bridge
Posts: 563
 

Default Re: Deposit Payment Options

Get to 39 and you could write a book
__________________
Php 5.4.16-36.el7_1
MySQL 5.5.41-2.el7_0
Apache
2.4.6-31.el7.centos



4.6.x stalled for now

5.2.6 developing
Reply With Quote
  #12  
Old 06-20-2010, 09:55 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Deposit Payment Options

LOL Thanks...Well I had to build Logic into the Validation Script.

I did notice that I could have done it with the Exceptions in the Options section, but it doesn't give the pop ups like the script does.

Oh and it's worth noting that I still don't have a real "Deposit" method, other than the Option using the Validation Script.

Here's my script:


var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Home Again Micro Chip."); if (value !== false && value == "Yes" && value !== false && value2 !== false && value2 == "Yes") { alert("If you choose a Deposit you can NOT choose to have the Home Again Micro Chip"); return false; } var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Shipping Options"); if (value !== false && value == "Yes" && value !== false && value2 !== false && value2 == "Shipping (Nearest Airport in US or Canada)") { alert("If you choose a Deposit you can NOT choose a Shipping option."); return false; } var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Shipping Options"); if (value !== false && value == "Yes" && value !== false && value2 !== false && value2 == "Overnight Shipping") { alert("If you choose a Deposit you can NOT choose a Shipping option."); return false; } var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Local Pickup or Door to Door Delivery"); if (value !== false && value == "Yes" && value !== false && value2 !== false && value2 == "Door to Door (Call First 740-497-2333)") { alert("If you choose a Deposit you can NOT choose a Local Pickup option."); return false; } var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Local Pickup or Door to Door Delivery"); if (value !== false && value == "Yes" && value !== false && value2 !== false && value2 == "Local Pickup in Mount Vernon, OH") { alert("If you choose a Deposit you can NOT choose a Local Pickup option."); return false; } var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Unconditional Replacement Guarantee"); if (value !== false && value == "Yes" && value !== false && value2 !== false && value2 == "1 (one) Year") { alert("If you choose a Deposit you can NOT choose an Unconditional Replacement Guarantee."); return false; } var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Unconditional Replacement Guarantee"); if (value !== false && value == "Yes" && value !== false && value2 !== false && value2 == "2 (two) Years") { alert("If you choose a Deposit you can NOT choose an Unconditional Replacement Guarantee."); return false; } var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Unconditional Replacement Guarantee"); if (value !== false && value == "Yes" && value !== false && value2 !== false && value2 == "3 (Three) Years") { alert("If you choose a Deposit you can NOT choose an Unconditional Replacement Guarantee."); return false; } var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Unconditional Replacement Guarantee"); if (value !== false && value == "Yes" && value !== false && value2 !== false && value2 == "3 (Three) Years") { alert("If you choose a Deposit you can NOT choose a shipping option."); return false; } var value = product_option_value("Home Again Micro Chip"); if (value !== false && value == "--- Choose One ---") { alert("We encourage you to add the $39.99 Home Again Chip option to your puppy. If your puppy ever decides to go on his own special adventure, the Home Again Chip will help to bring your puppy back home. Please visit www.homeagain.com for more information! If you still do not want the micro chip, please select the No option before adopting your puppy. NOTE: If you are placing a DEPOSIT on this PUPPY, please choose No."); return false; } var value = product_option_value("DEPOSIT (7 Days)"); var value2 = product_option_value("Shipping Options"); var value3 = product_option_value("Local Pickup or Door to Door Delivery"); if (value !== false && value == "No" && value !== false && value2 !== false && value2 == "--- Choose One ---" && value3 !== false && value3 == "--- Choose One ---") { alert("You must choose either a Shipping Option or Door to Door Delivery/Local Pickup."); return false; } var value = product_option_value("Shipping Options"); var value2 = product_option_value("Local Pickup or Door to Door Delivery"); if (value !== false && value == "Shipping (Nearest Airport in US or Canada)" && value2 !== false && value2 == "Door to Door (Call First 740-497-2333)") { alert("You must choose either a Shipping Option or Door to Door Delivery/Local Pickup. You can not add both to your order."); return false; } var value = product_option_value("Shipping Options"); var value2 = product_option_value("Local Pickup or Door to Door Delivery"); if (value !== false && value == "Shipping (Nearest Airport in US or Canada)" && value2 !== false && value2 == "Local Pickup in Mount Vernon, OH") { alert("You must choose either a Shipping Option or Door to Door Delivery/Local Pickup. You can not adopt your puppy with both options."); return false; } var value = product_option_value("Shipping Options"); var value2 = product_option_value("Local Pickup or Door to Door Delivery"); if (value !== false && value == "Overnight Shipping" && value2 !== false && value2 == "Door to Door (Call First 740-497-2333)") { alert("You must choose either a Shipping Option or Door to Door Delivery/Local Pickup. You can not add both to your order."); return false; } var value = product_option_value("Shipping Options"); var value2 = product_option_value("Local Pickup or Door to Door Delivery"); if (value !== false && value == "Overnight Shipping" && value2 !== false && value2 == "Local Pickup in Mount Vernon, OH") { alert("You must choose either a Shipping Option or Door to Door Delivery/Local Pickup. You can not add both to your order."); return false; }
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #13  
Old 06-28-2010, 05:29 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Deposit Payment Options

I'm actually think now that I may just create a Deposit Product and some how make is a link in the product Details. I'd love to pull the SKU over in the link, but that my now be possible.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #14  
Old 06-30-2010, 10:23 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Deposit Payment Options

Ok so I created a hidden product Called Deposit.

Then I created deposit.tpl and had it include in the product_details.tpl.
Deposit.tpl
Code:
{* $Id: deposit.tpl,v 1.189.2.22 2010/06/30 08:38:21 aim Exp $ vim: set ts=2 sw=2 sts=2 et: *} <span class="title-link"> <a href="http://littlepuppiesonline.msidesigns.com/Deposit.html" ><img src="{$ImagesDir}/LPO_Deposit_Pig.jpg" alt="" border="0" width="174" height="136" /></a> </span>

My questions it that it's kind of redundant to show the Deposit Pig/Image on the Deposit Products screen.

How do I {if} that out?

Here's the product that shows the piggy
http://littlepuppiesonline.msidesigns.com/Junior-Handsome-lil-TEACUP-male-Maltese.html

My Deposit product w/o the pig.
http://littlepuppiesonline.msidesigns.com/Deposit.html

Once I get this part figured out I will remove the deposit Variant.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #15  
Old 11-21-2011, 01:42 PM
 
healthi healthi is offline
 

Advanced Member
  
Join Date: Aug 2004
Location: Limerick, Ireland
Posts: 37
 

Default Re: Deposit Payment Options

Hi,
Has anyone figured this one out yet?

I also need this option.
Say pay 25% Now balance nearer the time.
This is for a tour company and it is legal to do this.

Please can someone suggest a solution for me please.

Regards
Glenn
__________________
Glenn
X-cart Ver 4.6.4
Sales-n-Stats
www.gmtstore.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 09:20 PM.

   

 
X-Cart forums © 2001-2020