Author Topic: Old Topic New Virtuemart!  (Read 785 times)

liquid.ideas

  • Jr. Member
  • **
  • Posts: 90
Old Topic New Virtuemart!
« 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

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

  • Jr. Member
  • **
  • Posts: 90
Re: Old Topic New Virtuemart!
« Reply #1 on: September 20, 2014, 20:54:21 pm »
Ah I managed to find the file, will report my failure or success

liquid.ideas

  • Jr. Member
  • **
  • Posts: 90
Re: Old Topic New Virtuemart!
« Reply #2 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:

Code: [Select]
<textarea class="inputbox" name="product_s_desc" id="product_s_desc" cols="65" rows="3" ><?php echo $this->product->product_s_desc?></textarea>TO:
Code: [Select]
<?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:
Code: [Select]
$data['product_s_desc'] = vRequest::getHtml('product_s_desc','');UNDER:
Code: [Select]
$data['product_desc'] = vRequest::getHtml('product_desc','');
VM broken. Any thoughts would be appreciated on how to save the data.

Thanks Guys