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 Double product, no productgroup-management 2619 Views

Double product, no productgroup-management

8 November 2011 at 10:50am Last edited: 8 November 2011 11:14am

I think this is kinda weird...

(Ignore the double SC Admin, the first is my own I18N module that somehow inherits the SC Admin name when lang is set to english)

It seems, the bottom one is the actual working, while there are some signs products are also fetched from the top "products" part... it's a bit confusing.

The "top" products doesn't do an auto-search either I just noticed...

Installation:
Downloaded full package and adjusted some admin and such, but no frontend yet.

Small tip:
Change the modeladmin custom CSS to have the left bar a bit wider, so the search-form doesn't get a horizontal scrollbar.

Re: Double product, no productgroup-management

8 November 2011 at 11:34am

Hi Sphere,

the doubled "Product" label in the dropdown list is indeed a translation error. The second "Product" (the bottom one) is added by the voucher module, which adds the SilvercartGiftVoucherProduct (extension of SilvercartProduct) which is the base class to implement sellable gift vouchers.

The module silvercart_voucher has two i18n files:
de_DE.php
en_US.php

It seems that the en_US.php is not loaded properly. Try this in your _config.php:

i18n::include_locale_file('silvercart_vouchers', 'en_US');


After that there should be the right translation.

The product groups can be found in SiteTree (default CMS area, like mentioned via twitter ;-)).

Cheers,
Sebastian

Re: Double product, no productgroup-management

8 November 2011 at 11:42am

Ah, yes, it's indeed translations that fail loading.

Thanks!

Re: Double product, no productgroup-management

8 November 2011 at 12:09pm Last edited: 8 November 2011 12:10pm

For your information:

There is an update for that on https://bitbucket.org/silvercart/silvercart-marketing-vouchers

Note that the module name should be silvercart_marketing_vouchers for the actual and future versions. The current download package contains an older version which is named with silvercart_vouchers.

Re: Double product, no productgroup-management

8 November 2011 at 2:46pm

Got it :)

BTW, is the documentation downloadable (as pdf or something)?

Re: Double product, no productgroup-management

8 November 2011 at 3:24pm

Hi Sphere,

no, currently it is only available on the website. There ist just too much going on right now and so much work in progress.

Once the pace has slowed down and we have reached a certain level of completion we will change our process with Confluence and SilverStripe in terms of single source publishing.

Cheers
Ramon