liqiusheng / silverstripe-ecommerce

Automatically exported from code.google.com/p/silverstripe-ecommerce
0 stars 0 forks source link

PickUpOrDeliveryModifier module breaks cart #120

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After installing PickUpOrDeliveryModifier, when a product is added to the cart, 
there is an HTTP error 500.

[Warning] Missing argument 1 for PickUpOrDeliveryModifier::getForm(), called in 
C:\Inetpub\wwwroot\olympicdisplays\sapphire\core\ViewableData.php on line 112 
and defined
GET /olympicdisplays/index.php/example-product/

Line 85 in 
C:\Inetpub\wwwroot\olympicdisplays\ecommerce_delivery\code\modifiers\PickUpOrDel
iveryModifier.php

Steps to reproduce the error:

Drop database, recreate & /dev/build?flush=1
In the CMS, add a delivery option
    Go to the 'Product' tab
    Click the 'Delivery/Pick-up Option' tab
    Click "Create 'Delivery/Pick-up Option'"
    Click 'Add' to accept all default options
    In the right pane, click the 'Available in countries' tab
    Check the default country

Click 'Add this item to cart' on any product

Code Revision: 957
Installed Modules: payment, ecommerce, ecommerce_delivery
_config.php:
    Order::set_modifiers(array("PickUpOrDeliveryModifier"));
    PickUpOrDeliveryModifier::set_form_header("Delivery Option (REQUIRED)");
ProductsAndGroupsModelAdmin::add_managed_model("PickUpOrDeliveryModifierOptions"
);

Original issue reported on code.google.com by incharge...@gmail.com on 15 Mar 2011 at 3:11

GoogleCodeExporter commented 8 years ago
will look at this ASAP

Original comment by nfranc...@gmail.com on 11 Apr 2011 at 6:04

GoogleCodeExporter commented 8 years ago
This seems to be the same as issue 124.... Working on it.

Original comment by nfranc...@gmail.com on 17 Apr 2011 at 10:16

GoogleCodeExporter commented 8 years ago

Original comment by nfranc...@gmail.com on 1 Nov 2011 at 9:32