Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!
<html>
<head>
<title>Reparatur per Post</title>
<META NAME="DESCRIPTION" CONTENT=""
;>
<META NAME="KEYWORDS" CONTENT=" ">
<script language="javascript">
function fillCategory(){
// this function is used to fill the category list on load
addOption(document.drop_list.Category, "iPhone", "iPhone", "");
addOption(document.drop_list.Category, "iPad", "iPad", "");
addOption(document.drop_list.Category, "Huawei", "Huawei", "");
addOption(document.drop_list.Category, "Samsung", "Samsung", "");
addOption(document.drop_list.Category, "HTC", "HTC", "");
addOption(document.drop_list.Category, "Sony", "Sony", "");
}
function SelectSubCat(){
// ON selection of category this function will work
removeAllOptions(document.drop_list.SubCat);
addOption(document.drop_list.SubCat, "", "Modell", "");
if(document.drop_list.Category.value == 'iPhone'){
addOption(document.drop_list.SubCat,"iPhone 6", "iPhone 6");
addOption(document.drop_list.SubCat,"iPhone 6+", "iPhone 6+");
addOption(document.drop_list.SubCat,"iPhone 6s", "iPhone 6s");
addOption(document.drop_list.SubCat,"iPhone 6s +", "iPhone 6s +");
addOption(document.drop_list.SubCat,"iPhone 7", "iPhone 7");
addOption(document.drop_list.SubCat,"iPhone 7+", "iPhone 7+");
addOption(document.drop_list.SubCat,"iPhone 8", "iPhone 8");
addOption(document.drop_list.SubCat,"iPhone 8+", "iPhone 8+");
addOption(document.drop_list.SubCat,"iPhone X", "iPhone X");
addOption(document.drop_list.SubCat,"iPhone XR", "iPhone XR");
addOption(document.drop_list.SubCat,"iPhone XS", "iPhone XS");
addOption(document.drop_list.SubCat,"iPhone XS Max", "iPhone XS Max");
}
if(document.drop_list.Category.value == 'iPad'){
addOption(document.drop_list.SubCat,"iPad Pro 12.9' 1. Gen", "iPad Pro 12.9' 1.Gen");
addOption(document.drop_list.SubCat,"iPad Pro 12.9' 2. Gen", "iPad Pro 12.9' 2. Gen");
addOption(document.drop_list.SubCat,"iPad Pro 12.9' 3. Gen", "iPad Pro 12.9' 3. Gen");
addOption(document.drop_list.SubCat,"iPad Pro 9.7'", "iPad Pro 9.7'");
addOption(document.drop_list.SubCat,"iPad Pro 10.5'", "iPad Pro 10.5'");
addOption(document.drop_list.SubCat,"iPad Pro 11'", "iPad Pro 11'");
addOption(document.drop_list.SubCat,"iPad Air 1", "iPad Air 1");
addOption(document.drop_list.SubCat,"iPad Air 2", "iPad Air 2");
addOption(document.drop_list.SubCat,"iPad Air 3", "iPad Air 3");
addOption(document.drop_list.SubCat,"iPad 2", "iPad 2");
addOption(document.drop_list.SubCat,"iPad 3", "iPad 3");
addOption(document.drop_list.SubCat,"iPad 4", "iPad 4");
addOption(document.drop_list.SubCat,"iPad 5", "iPad 5");
addOption(document.drop_list.SubCat,"iPad 6", "iPad 6");
addOption(document.drop_list.SubCat,"iPad 7", "iPad 7");
addOption(document.drop_list.SubCat,"iPad Mini", "iPad Mini");
addOption(document.drop_list.SubCat,"iPad Mini 2", "iPad Mini 2");
addOption(document.drop_list.SubCat,"iPad Mini 3", "iPad Mini 3");
addOption(document.drop_list.SubCat,"iPad Mini 4", "iPad Mini 4");
addOption(document.drop_list.SubCat,"iPad Mini 5", "iPad Mini 5");
}
if(document.drop_list.Category.value == 'Huawei'){
addOption(document.drop_list.SubCat,"Huawei P30 Pro", "Huawei P30 Pro");
addOption(document.drop_list.SubCat,"Huawei P30", "Huawei P30");
addOption(document.drop_list.SubCat,"Huawei P30 Lite", "Huawei P30 Lite");
addOption(document.drop_list.SubCat,"Huawei P20 Pro", "Huawei P20 Pro");
addOption(document.drop_list.SubCat,"Huawei P20", "Huawei P20");
addOption(document.drop_list.SubCat,"Huawei P20 Lite", "Huawei P20 Lite");
addOption(document.drop_list.SubCat,"Huawei P Smart", "Huawei P Smart ");
addOption(document.drop_list.SubCat,"Huawei P Smart Plus", "Huawei P Smart Plus");
}
if(document.drop_list.Category.value == 'Samsung'){
addOption(document.drop_list.SubCat,"Samsung S10", "Sasmung S10");
addOption(document.drop_list.SubCat,"Samsung S10e", "Samsung S10e");
addOption(document.drop_list.SubCat,"Samsung S10 Plus", "Samsung S10 Plus");
addOption(document.drop_list.SubCat,"Samsung S9", "Samsung S9");
addOption(document.drop_list.SubCat,"Samsung S9 Plus", "samsung S9 Plus");
addOption(document.drop_list.SubCat,"Samsung S8", "Samsung S8");
addOption(document.drop_list.SubCat,"Samsung S8 Plus", "Samsung S8 Plus");
addOption(document.drop_list.SubCat,"Samsung A750", "Samsung A750");
addOption(document.drop_list.SubCat,"Samsung A705", "Samsung A705");
addOption(document.drop_list.SubCat,"Samsung A405", "Samsung A405");
addOption(document.drop_list.SubCat,"Samsung A505", "Samsung A505");
addOption(document.drop_list.SubCat,"Samsung S7", "Samsung S7");
addOption(document.drop_list.SubCat,"Samsung S7 Edge", "Samsung S7 Edge");
addOption(document.drop_list.SubCat,"Samsung A5", "Samsung A5");
addOption(document.drop_list.SubCat,"Samsung A510", "Samsung A510");
addOption(document.drop_list.SubCat,"Samsung A520", "Samsung A520");
addOption(document.drop_list.SubCat,"Samsung A3", "Samsung A3");
addOption(document.drop_list.SubCat,"Samsung A310", "Samsung A310");
addOption(document.drop_list.SubCat,"Samsung A320", "Samsung A320");
addOption(document.drop_list.SubCat,"Samsung S5", "Samsung S5");
addOption(document.drop_list.SubCat,"Samsung S5 Mini", "Samsung S5 Mini");
}
if(document.drop_list.Category.value == 'HTC'){
addOption(document.drop_list.SubCat,"HTC U11", "HTC U11");
addOption(document.drop_list.SubCat,"HTC U11 Life", "HTC U11 Life ");
addOption(document.drop_list.SubCat,"HTC M10", "HTC M10");
addOption(document.drop_list.SubCat,"HTC M9", "HTC M9");
addOption(document.drop_list.SubCat,"HTC M8", "HTC M8");
addOption(document.drop_list.SubCat,"HTC M8 Mini", "HTC M8 Mini");
addOption(document.drop_list.SubCat,"HTC M7", "HTC M7");
addOption(document.drop_list.SubCat,"HTC M7 Mini", "HTC M7 Mini");
}
if(document.drop_list.Category.value == 'Sony'){
addOption(document.drop_list.SubCat,"Sony Z5", "Sony Z5");
addOption(document.drop_list.SubCat,"Sony Z5 Mini", "Sony Z5 Mini");
addOption(document.drop_list.SubCat,"Sony Z3", "Sony Z3");
addOption(document.drop_list.SubCat,"Sony Z3 Mini", "Sony Z3 Mini");
addOption(document.drop_list.SubCat,"Sony Z1", "Sony Z1");
addOption(document.drop_list.SubCat,"Sony Z1 Mini", "Sony Z1 Mini");
}
}
//////////////////
function removeAllOptions(selectbox)
{
var i;
for(i=selectbox.options.length-1;i>=0;i--)
{
//selectbox.options.remove(i);
selectbox.remove(i);
}
}
function addOption(selectbox, value, text )
{
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
selectbox.options.add(optn);
default:
window.location="../"; // if no selection matches then redirected to home page
break;
}// end of switch
}
</script>
</head>
<body onload="fillCategory();">
<style>
.left {
float: left;
width: 50%;
overflow: hidden;
padding-right: 5px;
padding-left: 5px;
}
.right {
overflow: hidden;
padding-left: 5px;
padding-right: 5px;
}
.inline {font-size: 25px; color: black; text-align: center; }
@media screen and (max-width: 414px){
.left {
float: left;
width: 100%;
}
.right {
overflow: hidden;
}
.inline {
font-size: 20px; color:black; text-align:center;
}
}
</style>
<FORM class="inline" name="drop_list" method="get" >
Thank you for your answer. I'm absolutely new in coding and i run my repair business. I have all prices and models, but i'm not figuring out how to do this. Perhaps someone could help me or at least give me some points (roadmap) how i could make this.That booking is made by a company called WeFix and the issue you will face here isnt making the system but instead getting all of the price etc. That's the bit that's taking me the longest, once you have found a way of automating that part, i use python for that then you can use PHP to build the next bit 😀
Yes, i'm using Wordpress and Woocommerce, but how to do an intuitive and friendly process, i'm lost🙁For me, i have a repair business to. I have probably been building the website for over a year but I'm getting there. I found using WordPress and woo-commerce was the best fit, so you setup your categories Phone, Laptop then the subcategories, Apple, Samsung etc etc it takes some magic but it works 🙂
Code Forum is a community platform where coding enthusiasts can connect with other developers, engage in discussions, ask for help, and share their knowledge with a supportive community. It's a perfect place to improve your coding skills and to find a community of like-minded individuals who share your passion for coding.
We use essential cookies to make this site work, and optional cookies to enhance your experience.