VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: liquid.ideas on September 20, 2014, 20:48:30 PM

Title: Old Topic New Virtuemart!
Post by: liquid.ideas on September 20, 2014, 20:48:30 PM
Hi Guys I was wanting to do what this topic was about:

http://forum.virtuemart.net/index.php?topic=91396.15 (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!
Title: Re: Old Topic New Virtuemart!
Post by: liquid.ideas on September 20, 2014, 20:54:21 PM
Ah I managed to find the file, will report my failure or success
Title: Re: Old Topic New Virtuemart!
Post by: liquid.ideas on September 20, 2014, 21:14:41 PM
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