SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1
Topic Fresh SilverCart 1.3.10 installation not working properly 3789 Views

Fresh SilverCart 1.3.10 installation not working properly

25 March 2014 at 3:58pm Last edited: 25 March 2014 4:01pm

Hi,

I am new to SilverCart and really want it to use for a shop project I am charged with.

I love SilverStripe and it would be great to have a shop system based on it.

I tried both, the full version with and without SilverStripe included, but none did work well.

I have the following problems:

1. When editing a product, the product group dropdowns don't work. They are loading, but then end up in a blank dropdown list. So I can't assign products to a product group.

2. When going through the checkout process, I see an error after clicking "Buy now". (I installed the demo data and setting in the admin panel). It seems to be a problem with tax and payment / shipping modules.
(If I hide warnings, the checkout process succeeds)
I am getting the following warning, which I think should be looked closer at:

[Warning] Creating default object from empty value
GET /home/checkout/

Line 2012 in H:\Workspaces\Kundenprojekte\weg\shop\silvercart\code\order\SilvercartOrder.php
Source

2003 new DataObject(
2004 array(
2005 'Rate' => $taxRate,
2006 'AmountRaw' => 0.0,
2007 )
2008 )
2009 );
2010 }
2011 $taxSection = $taxes->find('Rate', $taxRate);
2012 $taxSection->AmountRaw += $this->TaxAmountPayment;
2013
2014 foreach ($taxes as $tax) {
2015 $taxObj = new Money;
2016 $taxObj->setAmount($tax->AmountRaw);
2017 $taxObj->setCurrency(SilvercartConfig::DefaultCurrency());
2018

Trace

SilvercartOrder->getTaxRatesWithFees(1,)
Line 1930 of SilvercartOrder.php
SilvercartOrder->getTaxTotal()
Line 112 of ViewableData.php
ViewableData->__get(TaxTotal)
Line 371 of ViewableData.php
ViewableData->obj(TaxTotal,,,1,)
Line 411 of ViewableData.php
ViewableData->cachedCall(TaxTotal,,)
Line 810 of ViewableData.php
ViewableData_Customised->cachedCall(TaxTotal,)
Line 424 of ViewableData.php
ViewableData->hasValue(TaxTotal)
Line 567 of .cache.silvercart.templates.Layout.SilvercartOrderDetailsGross.ss
include(F:\Temp\User\silverstripe-cacheH--Workspaces-Kundenprojekte-wg-shop\.cache.silvercart.templates.Layout.SilvercartOrderDetailsGross.ss)
Line 429 of SSViewer.php
SSViewer->process(ViewableData_Customised,Zend_Cache_Frontend_Output)
Line 420 of SSViewer.php
SSViewer->process(ViewableData_Customised)
Line 342 of ViewableData.php
ViewableData->renderWith(SilvercartOrderDetailsGross)
Line 2076 of SilvercartOrder.php
SilvercartOrder->OrderDetailTable()
Line 369 of ViewableData.php
ViewableData->obj(OrderDetailTable,,,1)
Line 446 of ViewableData.php
ViewableData->XML_val(OrderDetailTable,,1)
Line 129 of 77DE.tmp
include(F:\Temp\User\silverstripe-cacheH--Workspaces-Kundenprojekte-wg-shop\77DE.tmp)
Line 699 of SSViewer.php
SSViewer_FromString->process(ArrayData)
Line 301 of SilvercartShopEmail.php
SilvercartShopEmail::send(MailOrderConfirmation,spam@xxx.de,Array,)
Line 2271 of SilvercartOrder.php
SilvercartOrder->sendConfirmationMail()
Line 144 of SilvercartCheckoutFormStepProcessOrder.php
SilvercartCheckoutFormStepProcessOrder->process()
Line 46 of SilvercartPaymentPrepaymentCheckoutFormStep2.php
SilvercartPaymentPrepaymentCheckoutFormStep2->process()
Line 783 of CustomHtmlFormStepPage.php
CustomHtmlFormStepPage_Controller->callMethodOnCurrentFormStep(SilvercartPaymentPrepaymentPrepaymentCheckoutFormStep2,process)
Line 166 of CustomHtmlFormStepPage.php
CustomHtmlFormStepPage_Controller->init()
Line 200 of SilvercartCheckoutStep.php
SilvercartCheckoutStep_Controller->init()
Line 136 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 199 of ContentController.php
ContentController->handleRequest(SS_HTTPRequest)
Line 184 of ContentController.php
ContentController->handleRequest(SS_HTTPRequest)
Line 67 of ModelAsController.php
ModelAsController->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
Line 125 of Director.php
Director::direct(/home/checkout/)
Line 127 of main.php

Thank you for your help, especially with point 1.

Manuel

Re: Fresh SilverCart 1.3.10 installation not working properly

25 March 2014 at 5:50pm

Hi memdev,

Issue 1 sounds like there is a problem with your locale - most likely the default locale does not match the locales where the product groups were created with. Can you check that?

Issue 2 is most likely because something is not properly configured with taxes. There is an option to create sample data + sample configuration.

And I am not perfectly sure how SilverCart performs in a Windows environment...we never tried this ;-)

Cheers
Ramon

Re: Fresh SilverCart 1.3.10 installation not working properly

27 March 2014 at 9:28pm Last edited: 27 March 2014 9:30pm

Hi Ramon,

thanks for the quick reply.

Issue 1 is fixed now. My default locale is de_DE, so I had to set this as the default locale not just for i18n::set_locale('de_DE'), but also for i18n::set_default_locale('de_DE') and Translatable::set_default_locale('de_DE').

After creating new example data, the dropdowns work fine :-)

The reason for issue 2 was no defined handling cost for the payment method. After adding a handling fee of 0 EUR, the error disappeared.

After fiddling a bit around with SilverCart, I noticed some bugs when running SilverCart and the whole SilverStripe installation inside a subdirectory.
Can you tell me where to report these bugs or sending pull requests? The link in the techbase seems broken.

Thank you.

Best,
Manuel

Re: Fresh SilverCart 1.3.10 installation not working properly

28 March 2014 at 8:34am

Hi Manuel,

you can report them in the forum. We are currently re-working our infrastructure, so the forum is a good place.

We never really tried to run SS+SC inside a subdir, so any feedback on that is welcome.

Cheers
Ramon