Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
You still haven't indicated whether or not CSS buttons are in use for the store. OPC's /tpl_modules_opc_submit_block.php (distributed in /template_default and possibly overridden by YOUR_TEMPLATE) uses the built-in zen_image_button function to create that button.
You might try comparing the use in that OPC template-file against others provided by your template.
No, CSS buttons aren't in use. I have had a look for a submit block file to compare but can only find the OPC one.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
JakeLawless
No, CSS buttons aren't in use. I have had a look for a submit block file to compare but can only find the OPC one.
Sorry just had a look and CSS buttons are in use
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
JakeLawless
Sorry just had a look and CSS buttons are in use
You'll need to inspect the 'wrapper' (the additional HTML) that your template puts around buttons for styling and apply that styling to your template's copy of the tpl_modules_opc_submit_block.php file.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
You'll need to inspect the 'wrapper' (the additional HTML) that your template puts around buttons for styling and apply that styling to your template's copy of the tpl_modules_opc_submit_block.php file.
How can i find this? Thanks
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
JakeLawless
How can i find this? Thanks
Probably the easiest page is for contact_us. That has both a link-button and a submit-button so that you can see what HTML wrapper is being applied to those buttons.
Re: One-Page Checkout [Support Thread]
In contact us this is the wrapper:
'<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
<?php'
I tried putting this into submit block but still no luck
Re: One-Page Checkout [Support Thread]
All sorted now, thanks for all your help
Re: One-Page Checkout [Support Thread]
I may have missed it in the OPC docs,
Is there any way to prevent bots from generating a OPC one_page_checkout-na-xxxx-xx-xx.log file?
Seems as though bots navigate straight to the OPC page without any other site navigation and cause the OPC debug files to be generated as an annoyance.
I understand if the answer is that is just an annoyance that is not easily intercepted.
I am sorry if I missed the answer elsewhere.
Re: One-Page Checkout [Support Thread]
Not at this time, but the Browser class that OPC uses has an isRobot method, so I will update OPC to disallow guest checkout if the access is seen to be from a robot.
Re: One-Page Checkout [Support Thread]
TNX Cindy,
In most cases, the only line in the server log for the IP address is a visit to OPC which is similar to those that only visit directly to ContactUs/send and CreateAcount/send so maybe my terminology for robot is not proper.