View Issue Details

IDProjectCategoryView StatusLast Update
0001997OXID eShop (all versions)1. ----- eShop frontend -----public2012-12-10 14:37
Reporterelisabeth_heckmann Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Summary0001997: Inheritance and overriding of product oxlongdesc causes "Function does not exist" error
DescriptionWhen adding "oxlongdesc" to "aMultishopArticleFields" array the product details page in subshop and the page "Products" in shop admin under "Administer Products" of subshop crashes with the following error:
Function '_setLongDesc' does not exist or is not accessible! (oxSimpleVariant)
Reason: protected function _setLongDesc is only available in class oxarticle.php

TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

birute_meilutyte

2010-07-22 16:56

reporter   ~0003303

Hello,

sorry, but i can not reproduce the case. this is what i have done:
1) created subshop, that has parent and inherits all its articles
2) created 4 additional fields in db table oxfield2shop : oxlongdesc, oxlongdesc_1, oxlongdesc_2, oxlongdesc_3
3) added oxlongdesc to array in config file: aMultishopArticleFields = array("OXPRICE", "OXPRICEA", "OXPRICEB", "OXPRICEC", "oxlongdesc");

in both, frontend and admin of subshop everything works for me. maybe there are some specific settings in your eShop, that can affect it?

greetings

elisabeth_heckmann

2010-07-22 17:32

reporter   ~0003304

Hello,

did you also add some entries in oxfield2shop for choosen subshop? Function wich calls _setLongDesc is only called if there are entries for subshop in oxfield2shop.

greetings

sarunas_valaskevicius

2010-07-23 16:46

reporter   ~0003308

fixed by adding missing function (empty by default, since simple variants are not supposed to have long descriptions)