Troubleshooting: It does not look as at your demo!

Troubleshooting: It does not look as at your demo!

Postby admin » Thu Mar 03, 2011 10:52 pm

Default OPC template uses your virtuemart templates and puts them in blocks which can be managed in OPC templates.

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&amp;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.
Attachments
xm.png
Common Problems
xm.png (117.55 KiB) Viewed 11647 times
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Troubleshooting: Checkout loads slowly

Postby admin » Thu Mar 03, 2011 11:10 pm

This component has a javascript check for AJAX functionality. If the test fails, customer can continue checkout without using OPC. This check is done for many reasons such as if a customer has javascript disabled, or has a virus in his browser - the javascript might not function as expected. If the component loads correctly and you want to make it load faster, you can disable javascript check in the configurator. You may also edit OPC templates to give customer an option to proceed checkout with normal VM checkout steps (href="/index.php?option=com_virtuemart&page=checkout.index" - vm 1.1.x)

Javascript is only needed for these features
- update shipping methods according to selected country/state/zip (AJAX)
- update totals at the bottom or in the basket at the top (if turned on) - (pure js)
- validate any user input - (pure js)

If you ship digital products only and shipping is not used it is recommended to disable js check in the configurator. Also if you are using SSL on your shop.cart page it is also recommended to disable it, so it loads faster.

Please notice that in general for your AJAX to work you will need to have only one domain per OPC installed and it will not work correctly if your site is accessible from http://domain.com/ and http://www.domain.com/ as it uses your SECUREURL from your VM install to do most of the work. If you use both version, we recommend to modify your .htaccess in your joomla root and insert following lines BEFORE any other RewriteCond lines:

Code: Select all
RewriteCond %{HTTP_HOST} !^www\.rupostel\.com$ [NC]
RewriteRule ^(.*)$ http://www.rupostel.com/$1 [R=301,L]


This will also add a little bit to you Google ranking as google does not like when using duplicit conent on more then one domain.

Best regards,
Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Troubleshooting: It does not look as at your demo!

Postby admin » Thu Mar 03, 2011 11:14 pm

Our demo site is using a template which we are developing (originately we received it from a customer who proclaimed it to be freely redistributable) and if requested, we can send you download link for the template. There is no warranty that the template will be html valid and there is no support for the temlate. It will only be sent to our customers.
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 1.1.x

cron