Hi Stan,
Thank you for your great component!
As for the component i have installed it, and is working fine, but there
are some lines that are unnecessary. In the attachment you can view the
picture from my 'one page checkout' where is highlited with red color the
lines that are not neaded. Can you help me please how can i unpublish
these lines?
1 line - send the registration
2 line - adding new adress for delivery
3 line - payement method
4 line - agreement
5 line - checkout
Thank you very much.
Best regards,
Csaba
Hello,
To correct the issues follow these steps:
1. Disable "Send registration" delimeter in User fields in the
virtuemart configuration
2. If you don't need ship to address you can go to virtuemart -> admin
configuration -> checkout steps -> and uncheck "Please select a
shipping address". If you just want to change text of it, you can do
it via lang tab of the OPC configuration
From here, i recommend to create new template directory according to this:
After installing OPC (or upgrading) you can copy content of OPC
template files to your own directory in this example path:
/components/com_virtuemart/themes/default/templates/onepage/YOURNEWTEMPLATE
You can copy these files and directory: onepage.logged.tpl.php,
onepage.unlogged.tpl.php, onepage.css, overrides (directory),
index.html should be located in every single directory for security
reasons. Then you can choose your template in the display tab. This is
fully functional from version 1.2.160. Your new directory will be automatically listed in the "display" tab at the configurator.
3. It has two headers because standard VM 1.1.2 did not have header
for payment method or it was not clear enough. You can go to
/components/com_virtuemart/themes/default/templates/onepage/YOURNEWTEMPLATE/onepage.logged
(and unlogged).tpl.php and delete the part which creates table for
payment headers:
- Code: Select all
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr class="sectiontableheader"><th colspan="2" align="left"><?php echo
$VM_LANG->_('PHPSHOP_ORDER_PRINT_PAYMENT_LBL') ?>
</th></tr></table>
4.The aggreement part is also hard written in the template. You can
delete whole section in those two files
- Code: Select all
<!-- show TOS and checkbox before button -->
<!-- remove this section if you have 'must agree to tos' disabled' -->
<fieldset>
<legend class="sectiontableheader"><?php echo $agreement_txt // change
this to 'Agreement' ?></legend>
<?php if ($show_full_tos) { ?>
<!-- show full TOS -->
<textarea id="onepage_tos" readonly="readonly" cols="40" rows="10">
<?php echo $tos_con; ?></textarea>
<!-- end of full tos -->
<?php } ?>
<div id="agreed_div" class="formLabel ">
<script type="text/javascript">
//<![CDATA[
document.write('<label for="agreed_field"><?php echo
str_replace("'","\\'",$VM_LANG->_('PHPSHOP_I_AGREE_TO_TOS'))
?></label><a href="javascript:void window.open(\'<?php echo
$mosConfig_live_site
.'/index2.php?option=com_virtuemart&page=shop.tos&pop=1' ?>\',
\'win2\', \'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no\');">');
document.write(' <?php echo $VM_LANG->_('PHPSHOP_STORE_FORM_TOS') ?></a>');
//]]>
</script>
<noscript>
<label for="agreed_field"><?php echo
$VM_LANG->_('PHPSHOP_I_AGREE_TO_TOS') ?></label>
<a target="_blank" href="<?php echo $mosConfig_live_site
.'/index.php?option=com_virtuemart&page=shop.tos' ?>" title="<?php
echo $VM_LANG->_('PHPSHOP_I_AGREE_TO_TOS') ?>">
<?php echo $VM_LANG->_('PHPSHOP_STORE_FORM_TOS') ?>
</a>
</noscript><strong>* </strong>
</div>
<div class="formField" id="agreed_input">
<input type="checkbox" id="agreed_field" name="agreed" value="1"
class="inputbox" checked="checked"/><br /></div>
<br style="clear:both;" />
</fieldset>
<!-- end show TOS and checkbox before button -->
5. Please go to Components -> One Page Checkout -> Configuration,
click on tab "Display" and choose appropriate style to hide for the
checkout link. This depends on the VM template which you use. The checkout link is in shop.cart.tpl.php in your templates directory where you can change it's class or hide it at all.
If this does not help you, i can help you with your site if you
provide me your FTP and joomla details.