Jump to content

freddie77

New Members
  • Posts

    2
  • Joined

  • Last visited

freddie77's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I noticed in your video samples for 'Build a PHP Shopping Cart with Paypal Integration' you talk about creating a catalog.xml file to populate products in the shopping cart, what about using an xml URL feed instead of the catalog.xml file? Would it be as simple as replacing the calalog.xml file with the xml url feed and changing the nodes/title to correspond with the xml file?: $filename = 'catalog.xml'; $contents = file_get_contents($filename); $xml = new SimpleXMLElement($contents); foreach($xml as $product) { echo "<li>$product->title</li>"; } Freddie
  2. I noticed in your video samples for 'Build a PHP Shopping Cart with Paypal Integration' you talk about creating a catalog.xml file to populate products in the shopping cart, what about using an xml URL feed instead of the catalog.xml file? Would it be as simple as replacing the calalog.xml file with the xml url feed and changing the nodes/title to correspond with the xml file?: $filename = 'catalog.xml'; $contents = file_get_contents($filename); $xml = new SimpleXMLElement($contents); foreach($xml as $product) { echo "<li>$product->title</li>"; } Freddie
×
×
  • Create New...