четвъртък, 2 юни 2011 г.

Някакъв фикс

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

Как да се добави поле “телефон” в “Обади се за цена” | Virtuemart

http://forum.virtuemart.net/index.php?topic=41213.msg151141#msg151141 – ето това е отговорът

Edit: administrator/components/com_virtuemart/languages/shop/english.php
At line 70
Add: 'PHONE_PROMPT' => 'Enter your Phone Number',
Edit: components/com_virtuemart/themes/default/templates/pages/shop.ask.tpl.php
At line 32
Or where you want your phone field to appear.
Add:
<label for="phone"><?php echo $VM_LANG->_('PHONE_PROMPT') ?></label>
<br /><input type="text" id="phone" name="phone" size="50" class="inputbox" value="">
<br /><br />
Edit: administrator/components/com_virtuemart/html/shop.ask.php
At line 80
Add
'phone' => $phone,
Edit: administrator/components/com_virtuemart/classes/ps_communication.php
At line 156
Add: $phone = $d['phone'];
At line 157
Change to: $subject_msg = vmRequest::getVar( 'text', '', 'post', 'phone' );
At line 205
Add: 'phone' => $phone,
Edit: components/com_virtuemart/themes/default/templates/order_emails/enquiry_email.tpl.php
Add: <?php echo $phone ?>