I am making a product pricing and shipping calculator which will work from the data fetched by another shopping website. I got little bit of success it is showing product image, product price, name of product and status of product. But shipping system is not working because that website is using Javascript. I am using htmldom! and targeted website is: BANGGOOD.COM
INDEX PAGE
<form method="get" action="url_look.php">
<input type="text" placeholder="Banggood.com Product URL" name="keywords"/><input type="submit" value="submit"/>
</form>
URL LOOK PAGE
<?php
require_once('simple_html_dom.php');
$keywords = str_replace(" ","-",$_GET['keywords']);
$url = "$keywords";
$html = file_get_html($url);
echo "<div>";
foreach($html->find('div[class=item_box price],h1[itemprop=name],div[class=good_photo_max],div[class=status],div[class=item_box shipping]') as $product_title){
//for more details visit http://simplehtmldom.sourceforge.net/manual.html
echo "<li>".$product_title."</li>";
}
echo "</div>";
?>
<style>
ul {
display: none;
}
li {
list-style: none;
}
</style>
Above code was provided by a stackoverflow member: Aqueel Aboobacker VP and now i modified his code to make a pricing, and shipping calculator.
Basically i want to show price and then people select shipping methods which will be fetch from Banggood.com and then total will appear in USD. note that each product on banggood have different shipping methods and different prices depends on country