| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Deposit Payment Options | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
![]() Get to 39 and you could write a book
|
|||||||||
#12
|
|||||||
|
|||||||
![]() 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 ![]() |
|||||||
#13
|
|||||||
|
|||||||
![]() 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 ![]() |
|||||||
#14
|
|||||||
|
|||||||
![]() 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:
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 ![]() |
|||||||
#15
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|