News:

Looking for documentation? Take a look on our wiki

Main Menu

1054 - Unknown column 'STsameAsBT' in 'field list'

Started by jordantsap, April 18, 2019, 15:02:00 PM

Previous topic - Next topic

jordantsap

There is a same problem here
http://forum.virtuemart.net/index.php?topic=140960.msg496209#msg496209
with the fix
Looks like the updater did not update the order table correctly. The order table has now
`STsameAsBT` tinyint(1) NOT NULL DEFAULT '0',

Usually the updater should also update the table structure. So it is interesting to understand, why that did not work in your case.
Quote from: Leila on September 20, 2018, 10:36:36 am
After update to VM 3.4 I have the same problem. Joomla 3.8.12, VM 3.4, PHP 7.2. Besides I get 404 error on product details page when activate customfileds with price. "Call to undefined method VirtueMartModelCustomfields::_getCustomPrice()".


This is quite likely an outdated template. The function was set to deprecated a year ago (Revision 9639). I must admit this template change slipped through. 

It was
Code: [Select]
$price = VirtueMartModelCustomfields::_getCustomPrice($productCustom->customfield_price, $currency, $calculator);

and is now
Code: [Select]
$price = VirtueMartModelCustomfields::renderCustomfieldPrice($productCustom, $product, $calculator);

Where is the $price been referenced for change?