1998 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » Multiple Image per Product
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 602 Views |
-
Multiple Image per Product

25 June 2009 at 9:35am
How is possible to insert multiple image for product?
I've read some posts ( http://www.silverstripe.org/archive/show/7715?start=16 ) but I've these error:
Warning] Unknown class passed as parameter
GET /ss/images/iframe/ImageAttachment/8/ImageLine 2553 in C:\xampp\htdocs\ss\sapphire\core\model\DataObject.php
Source2544 * Return the given element, searching by ID
2545 *
2546 * @param string $callerClass The class of the object to be returned
2547 * @param int $id The id of the element
2548 *
2549 * @return DataObject The element
2550 */
2551 public static function get_by_id($callerClass, $id) {
2552 if(is_numeric($id)) {
2553 if(is_subclass_of($callerClass, 'DataObject')) {
2554 $tableClasses = ClassInfo::dataClassesFor($callerClass);
2555 $baseClass = array_shift($tableClasses);
2556 return DataObject::get_one($callerClass,"`$baseClass`.`ID` = $id");
2557
2558 // This simpler code will be used by non-DataObject classes that implement DataObjectInterface
2559 } else {Trace
* is_subclass_of(ImageAttachment,DataObject)
Line 2553 of DataObject.php
* DataObject::get_by_id(ImageAttachment,8)
Line 533 of Image.phpThank you
| 602 Views | ||
|
Page:
1
|
Go to Top |
