@ mattconfusion
Not sure but don't you have to $page1->Write(); Maybe WriteToStage does the same thing, I'm not too familiar with it.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
E-Commerce Modules /
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba
Working on e-commerce for SS 2.4
thanks bambi, it works, but neede also to give the requiredDefaultRecords name to the function.
Anyway, i wonder if someone has already noticed it, there is some weird behaviour in ProductGroups especially when you are using store "ModelAdmin". You create a product but assigning it to a category it just won't work, or well, that's what happened to me. More, there are 2 Save Buttons in the Store Admin....and the first one just gets stuck when you use it, so it has to be removed.
I ask you these things because haveing thousand of products in the site tree (I'm performing some tests right now) it's really putting sapphire and silverstripe on the hard side...
burnbright error
How can i see in page the cart.
Got it working
Hi Webdoc,
I have having the same error - the cart is not showing. How did you get it working?
thanks!
Hi,
has anyone managed to get any shipping working on 2.4?
I am trying the SimpleShippingModifier::set_default_charge(5); in my _config but fails..
Cant quite figre out where it is going wrong. Any ideas?
mike
I'm trying to extend in the usual way the StoreAdmin class but cannot see any result. I did
<?php
class MyOwnAdmin extends StoreAdmin{
public static $managed_models = array('MyOwnProduct', 'MyOwnProductGroup');
public static $collection_controller_class = 'MyOwnAdmin_CollectionController';
public static $record_controller_class = 'MyOwnAdmin_RecordController';
}
class MyOwnAdmin_CollectionController extends StoreAdmin_CollectionController {
}
class MyOwnAdmin_RecordController extends StoreAdmin_RecordController {
public function EditForm() {
$form = parent::EditForm();
$form->Actions()->removeByName('Save');
return $form;
}
}
The Store tab at the top of the page is now duplicated but no other effects
dunno if it's my svn working strangely, but found an error with the last branch db_cart when trying to view a product. perhaps i don't have all files up to date?
Fatal error: Class 'ShoppingCart_Controller' not found
In fact, changing in the class product every invocation 'ShoppingCart_Controller' with simple 'ShoppingCart' fixed it