Timeline for How to get File Path of File Uploaded Through Custom Option
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 17, 2015 at 1:08 | comment | added | Alex MacArthur |
Yes, I can print that, but all I get for output is this: Array ( [store_id] => 1 [is_checkout_cart] => 1 [remote_ip] => 127.0.0.1 [x_forwarded_for] => ) 1 Thanks for the continued help, by the way!
|
|
Oct 16, 2015 at 3:41 | comment | added | rob3000 |
can you print_r($quote->getData()) ;
|
|
Oct 16, 2015 at 3:17 | comment | added | Alex MacArthur |
If do print_r($uploadedImage) , the number '1' is the only thing that's outputted to the screen.
|
|
Oct 16, 2015 at 3:06 | comment | added | rob3000 |
If you print_r $uploadedImage is anything in there?
|
|
Oct 16, 2015 at 2:59 | comment | added | Alex MacArthur |
Hi, rob3000 -- Thanks for the help. Unfortunately, it doesn't seem to work. I'm using this: $quote = Mage::getSingleton('checkout/session')->getQuote(); $uploadedImage = json_decode($quote->getValue()); $path = $uploadedImage->fullpath; $url= $uploadedImage->quote_path; $fullUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . $url; ` And I'm not able to output any value from $url or $path, even though the values are in that big print_r() output of $quote. Any other suggestions?
|
|
Oct 16, 2015 at 2:36 | history | answered | rob3000 | CC BY-SA 3.0 |