- Paypal return page fetch product information in there
-
Paypal return page fetch product information in there
Hi i want to send xml request to product online site ... i'm showing there products from xml feed on my site so now i want to send xml request that someone purchased this product from my website ..... i made full website and show every products in my website now when user add any product in cart its show paypal checkout button i want when he pay the money successfully via paypal it redirects to thank u page or send page where via php i can send xml request to product online site in background and on output i show thank u so basically i want two things only if its possible to fetch product name and product quantity on thank u page after paypal thing .... hope u will understand this ... i'm also too much confused in this
-
Xml Based Shoping Cart in php Help please
lol please make it simple
-
Xml Based Shoping Cart in php Help please
Heloo Guyz need little help from you i am making product display website from xml its basically get product data from online xml file and show it in our website ... i do everything fetching data ETc.. now i need shoping cart thing in my site please any one suggest me any script or tell me how to do this ... because every shoping cart i found on google its based on database system but my files coming from xml file feed so please help me in this thank you in advanced waiting for your reply
-
pagination from Xml Feed
Hello Coders i need some help for sorting this thing out .... i want to paginate my products i mean i want to show 20 or 40 products each page.... all of these products coming from xml file from online server i'm getting echo like this [ IMAGE ] - Name - Price - Details and i'm good with that So I've done all of things fetching data from xml and show it on there every thing but now i want to paginate please any one who can help me or refer me something ( Note if you just write code here that would be great ) Thanks in advanced waiting for your replies
-
problem in Encoding the special character & for getting result in php
i cannot change the url because i'm getting link data from xml file feed from an online server product name html & php in xml so its must be xml & php for showing this product other information eg. details and price .... so i cannot change the name or change the url ... is there any other solution ??
-
problem in Encoding the special character & for getting result in php
i'm display product information from file by there name So in some products name included with special characters specially ' & 'etc.. so for example : here is the url mysite.com/index.php?s=html & php so its showing html only in echo i'm using $_REQUEST['s']; for getting url here is the code for encode i used <?php $text = $_REQUEST['s']; echo rawurlencode($text); ?> but its not working with $_request its displaying only Html but when i used simple text its work eg.. <?php $text = ('html & php'); echo rawurlencode($text); ?> so now its work and echo came html%20%26%20php and thats what i want please help me to solve that $_REQUEST thing what should i do with that thanks in advanced
-
How to Getting id data from xml file and display that id's information from another xml file
<?php $xml=simplexml_load_file("productsToCategories.xml") or die("Error: Cannot create object"); foreach ($xml->children() as $product) { if ($product->categories_id == 1) { $level = "'$product->products_model', "; } } $ids = array($level); $xml2=simplexml_load_file("products.xml") or die("Error: Cannot create object"); foreach ($product->product as $product) { if (in_array($product['PRODUCTS_MODEL'], $ids)) { echo "ID: " . $product->PRODUCTS_NAME . "<br/>"; //display data using some code } } ?> i did something this but not getting the result please help any one
-
How to Getting id data from xml file and display that id's information from another xml file
Hello Coders need little help in code i'm showing products from xml to website through PHP I fetch everything cleanly but now the time is i got three xml file's 1 is for categories.xml ( in there every categories name and id is listed) <?xml version="1.0"?> <categories> <category> <categories_name>Name 1</categories_name> <categories_id>1</categories_id> <parent_id>0</parent_id> </category> <category> <categories_name>Name2</categories_name> <categories_id>2</categories_id> <parent_id>0</parent_id> </category> </categories> ...2nd is for products.xml ( in there every product information is saved ) <?xml version="1.0"?> <PRODUCTS> <PRODUCT> <PRODUCTS_NAME>Product 1</PRODUCTS_NAME> <PRODUCTS_DESCRIPTION>Details about product 1</PRODUCTS_DESCRIPTION> <PRODUCTS_MODEL>111</PRODUCTS_IMAGE> </PRODUCT> <PRODUCT> <PRODUCTS_NAME>Product 2</PRODUCTS_NAME> <PRODUCTS_DESCRIPTION>Details about product 2</PRODUCTS_DESCRIPTION> <PRODUCTS_MODEL>222</PRODUCTS_IMAGE> </PRODUCT> <PRODUCT> <PRODUCTS_NAME>Product 3</PRODUCTS_NAME> <PRODUCTS_DESCRIPTION>Details about product 3</PRODUCTS_DESCRIPTION> <PRODUCTS_MODEL>333</PRODUCTS_IMAGE> </PRODUCT> <PRODUCTS> and 3rd is producttocategories.xml ( in there they are aiming what product has its categorie.. ) <products_to_categories> <product> <products_model>222</products_model> <categories_id>1</categories_id> </product> <product> <products_model>111</products_model> <categories_id>2</categories_id> </product> <product> <products_model>333</products_model> <categories_id>1</categories_id> </product> </products_to_categories> So can anyone tell me what exactly to do any help would be appriciated thanks