Jump to content


- - - - -

Modifying fields


1 reply to this topic

#1 Enno

    Newbie

  • Customers
  • Pip
  • 8 posts

Posted 16 January 2012 - 03:54 AM

Hey Guys,

On my web site, I want to modify the write review form, which php file do I have to edit to change the following:
  • Product Details to say Location Details
  • Product Name field to Location Name
  • Maybe add a couple more of image upload fields
  • Remove vendor drop down menu
  • And make the description box smaller
Any help would be much appriciated.

Thanks!

#2 Gavin

    Censura Product Manager

  • Administrators
  • 417 posts

Posted 28 February 2012 - 01:13 PM

Hi,

Sorry for the delay.

To change the word "product" to "location", create a file in your language directory (eg, lang/en) called my_phrases.php. The file should contain something like this:
<?php
$lang['_PRODUCT'] = 'Location';
$lang['_PRODUCTS'] = 'Locations';
?>

There isn't a way to add additional image fields at the moment, sorry. You can upload additional images from the administrator menu, but not from the public side.

There isn't really an easy way to remove the vendor field either, you'll have to change some of the code - remove these lines from system/classes/Forms/ProductAdd.php (lines 99 and 100 I think)
$vendor = self::createElement('vendor', $prefix . 'vendorid', __("FORM_PRODUCT.LABEL_VENDOR"), array('checkPermission' => array('productAdd', 'productAddModerated')));   
$form->insertElementBefore($vendor, $prefix . 'description');

Making the description box smaller can be done with CSS, the easiest way is to add it to the header via config, in Admin > Config > Display > Additional Head Content:

<style type="text/css">
form#form_ReviewAddOnePage textarea[name=product_description] {
  width:200px;
  height:200px;
}
</style>

Hope this helps.

Gavin
Gavin Vincent, Censura Lead Developer
www.gavinvincent.co.uk





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users