Jump to content
Killersites Forums

juandamz

Member
  • Posts

    6
  • Joined

  • Last visited

juandamz's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. you are right I did work with the $_POST before, thanks for your help. The problem I still have is that after I click "Submit" ill receive the mail, but with out the product info, like "product name: "blank" , amount: "blank" etc " what I dont understand is how to make that repeat to the same amount product that were chosen. Thanks for your help
  2. thanks.. but all i need is like a way to put all of the chosen products, separated with their, name, price and a total. I've already done contact pages where you could type all your info like name, phone, email on boxes, and then just click submit. the problem now is that they're not in boxes and its more than one product. :/ I rly need this to work .. if someone could help me with the code, plz, ill rly appreciated
  3. Hi, I followed the steps to make a Shopping Cart, and it work great.. but unfortunately my client doesnt want his clients to pay for the products once their done choosing them, instead he wants to receive an email, with a list of the products.. so what im trying to do is to send the form to his mail and not to paypal, but im finding it really hard.. Can someone help me in this one please. PS. im going to attach the what i've come up with so you guys can see. Btw I just know the basic stuff of PHP, Thanks Juan Mora addToCart.php
  4. OHH i got it , the Catalog.xml on the first line is capitalize and the catalog.xml on the "return" line is not define('STORE_XML' , 'Catalog.xml'); /** FUNCTIONS */ function get_xml_catalog() { return new SimpleXMLElement(file_get_contents('catalog.xml')); } i make them both capitalize and it work
  5. it does make sense, and that's what i tried at first but it didnt work... here's what i did first i put all the files in the same folder and them this functions.php define('STORE_XML' , 'Catalog.xml'); /** FUNCTIONS */ function get_xml_catalog() { return new SimpleXMLElement(file_get_contents('catalog.xml')); }
  6. hello, im Juan Mora, i bought your "Shopping Cart" video tutorial yesterday, i followed each step and it work perfectly. i never did some of the last steps because this web page, is for a competition at my school, and it doesn't have to work all the way, by the way this is the first time i work with php. so when i finally got what i wanted for my web page, i went ahead and uploaded on my host "lithium hosting", first the index.php file couldnt find the functions.php, so what i had to do, was to put all the files in the same folder, and it work but now it just displays this: Warning: file_get_contents(catalog.xml) [function.file-get-contents]: failed to open stream: No such file or directory in/home/jdportfo/public_html/alonso/functions.php on line 11 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/jdportfo/public_html/alonso/functions.php:11 Stack trace: #0 /home/jdportfo/public_html/alonso/functions.php(11): SimpleXMLElement->__construct('') #1 /home/jdportfo/public_html/alonso/templates.php(36): get_xml_catalog() #2 /home/jdportfo/public_html/alonso/index.php(16): render_products_from_xml() #3 {main} thrown in/home/jdportfo/public_html/alonso/functions.php on line 11 the project its for tomorrow and i would appreciated if you guys can help me here's the web page "http://alonso.jdportfolio.com"
×
×
  • Create New...