February 22, 201214 yr I need to find a quote module to bolt onto a dreamweaver based website or new complete package (have looked at xcart). I would like to add multi products to a basket and send the details to me via email with no pricing as the industry is niche and pricing changes on product design, steel pricing. Client will be quoted afterwards. I haven't been able to find a quote module which is any good and I am struggling to find people whom can talk about this. your help would be great, richard
February 22, 201214 yr Know any PHP? For something like that, just using an array stored in a session would work, assuming no security is really needed. Use database sessions to make it a little more secure if needs be. Array structure and usage would be something along the lines of: <? $_SESSION['basket'] = array( array( 'product_name' => 'Some Steel', 'product_qty' => 2 ), array( 'product_name' => 'More Steel', 'product_qty' => 5 ) ); $email_body = "Order details below.\n\nProduct Name (Quantity):\n\n"; foreach ($_SESSION['basket'] as $basket_item){ $email_body .= "\t{$basket_item['product_name']} ({$basket_item['product_qty']})\n"; } $email_body .= "\nEnd of order details"; print nl2br($email_body); Of course you would use mail() rather than print, and miss out the nl2br() too.
February 22, 201214 yr Author Know any PHP? For something like that, just using an array stored in a session would work, assuming no security is really needed. Use database sessions to make it a little more secure if needs be. Array structure and usage would be something along the lines of: <? $_SESSION['basket'] = array( array( 'product_name' => 'Some Steel', 'product_qty' => 2 ), array( 'product_name' => 'More Steel', 'product_qty' => 5 ) ); $email_body = "Order details below.\n\nProduct Name (Quantity):\n\n"; foreach ($_SESSION['basket'] as $basket_item){ $email_body .= "\t{$basket_item['product_name']} ({$basket_item['product_qty']})\n"; } $email_body .= "\nEnd of order details"; print nl2br($email_body); Of course you would use mail() rather than print, and miss out the nl2br() too. --- Andy, thank you for replying. I am not up to speed with php, and can only write basic html sites containing contact forms etc in dreameaver which look fine, but when it comes to php and sql I've never touched on this. I will need to be able to import product details from excel and images. I was trying to find an off the shelf product such as a module because of my skill set. Any suggestions? Richard.
February 22, 201214 yr Suggestion: outsource. Plenty of developers on here who could put something together for you.
February 26, 201214 yr Suggestion: outsource. Plenty of developers on here who could put something together for you. +1 great developers are easy to come by.. post in the correct place on this forum or try one of the free lancer sites.. it wont cost as much as you might think
Create an account or sign in to comment