Jump to content

FactusolWEB


php86

Recommended Posts

Hello, i want to excuse for my english beforehand since i know for sure i'll be making mistakes but i hope to at least be clear enough to pass the main ideas. This is gonna be my first post in the forum and i'm very excited to be learning php from you guys. I'm new to this programing world but i'm a very passionate learner and certainly am eager to get my projects running. I'd love to help other people too, whenever i get in such a position.

 

So let me start with some background. There's a free... i don't know how you call it... billing software?... called Factusol out there, which happens to have an open source web module so that you can put up a little shop online with all your stored data. It's a pretty basic e-shop, nothing fancy going on in there but the fact that you can upload all your inventory, clients, agents, etc from Factusol itself, with just a click, is pretty handy. So firstly i was wondering if maybe there be some other people here already aware of Factusol and interested in working around the php website aspect, improving its features, adding some more item details to be shown. Hopefully we can get together and pull something out.

 

Anyway. I'll get to specifics now. I said it before, i'm a newbie but i've been looking through some of the php code and trying to add extra functionality to the site, specifically, i'm working in adding 2 new item description fields, be them size and color. So i've managed to make them appear in two separated select drop down menu instances. What i want to do now is to make the price field show different prices depending on the size or color selection. All my efforts have barely taken me as far as to have the suspicion that an Onchange event may have to be thrown somewhere around the code... but then again i'm lost. I'll appreciate whatever input you can give me.

 

 

This is the sizes select section of the code:

//Tallas
	if($conf['MDECFG'] == 1) { echo('<td width="100" align="center" bgcolor="' . $colorcelda . '">');
	echo('<select name="talla">');
	echo('<option value="-1">TODOS</option>');
	for($i=0; $i<=(mysql_num_rows($rs5) - 1); $i++) {
		$codtallas = mysql_fetch_array($rs5);
		//convertimos los códigos de las tallas a las descripciones que queremos que se muestre
		$ssql = 'SELECT DESCE1 FROM F_CE1 WHERE CODCE1=\'' . $codtallas['CE1LTC'] . '\'';
		$rs6 = mysql_query($ssql, $conn);
		$tallas = mysql_fetch_array($rs6);
		//presentamos el menu desplegable con las descripciones obtenidas
		echo('<option value="'. $codtallas['CE1LTC'] . '"' . $selected . '>' . $tallas ['DESCE1'] . '</option>');
		$selected = NULL;
	}
	echo('</select>');
	echo('</td>');
}

Please point out whatever you see wrong,

Edited by php86
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.