News:

Support the VirtueMart project and become a member

Main Menu

Old Topic New Virtuemart!

Started by liquid.ideas, September 20, 2014, 20:48:30 PM

Previous topic - Next topic

liquid.ideas

Hi Guys I was wanting to do what this topic was about:

http://forum.virtuemart.net/index.php?topic=91396.15

Actually no I was wanting to have a customfield a s a text table, but couldnt find a way to do that either. Problem is with the above topic... it was solved kinda ish and the shap didnt know how, and further to that I think the files have changed, as I cant find the ones mentioned in the post.

Anyone know how to do this in the latest VM version?

Thanks!

liquid.ideas

Ah I managed to find the file, will report my failure or success

liquid.ideas

Ok, What I managed to do is break VM entirely.

What I tried:

In product_edit_description.php:
Changed:

<textarea class="inputbox" name="product_s_desc" id="product_s_desc" cols="65" rows="3" ><?php echo $this->product->product_s_desc?></textarea>
TO:
<?php echo $this->editor->display('product_s_desc',  $this->product->product_s_desc'100%;''550''75''20', array('pagebreak''readmore') ) ; ?>

YAY editor appears, but not saving.

Then added to: controllers/product.php:
$data['product_s_desc'] = vRequest::getHtml('product_s_desc','');
UNDER:
$data['product_desc'] = vRequest::getHtml('product_desc','');

VM broken. Any thoughts would be appreciated on how to save the data.

Thanks Guys