Forum Replies Created

Viewing 1 replies (of 1 total)
  • @rogerwheatley – So I believe I’ve figured out where your problem lies. I believe the jquery (as above mentioned by esmi) could have something to do with the reason this issue is now coming up. I know the solution I came up with isn’t the best, but it seemed to work for what I was doing.

    The problem lies within the payment module files (in my case PayPal – located: wp-content/plugins/eshop/paypal). I edited the eshop-paypal.class.php file and searched for “eshop eshop-confirm”. I came across line 132.

    Line 132:

    $echo= "<form method=\"post\" class=\"eshop eshop-confirm\" action=\"".$this->autoredirect."\"><div>\n";

    I replaced it with:

    $echo= "<form method=\"post\" class=\"eshop eshop-confirm\" action=\"".$this->autoredirect."\"><div style=\"display: none\">\n";

    This got rid of that huge space on the confirmation page. Now it’s just a matter of making sure the “submi” button is styled nicely on the page. To do this look at line 143 – 145.

    Line 143 – 145:

    $echo.='<label for="ppsubmit" class="finalize" ><small>'.__('<strong>Note:</strong> Submit to finalize order at PayPal.','eshop').'</small><br />
          <input class="button submit2" type="submit" id="ppsubmit" name="ppsubmit" value="'.__('Proceed to Checkout »','eshop').'" /></label>';
    	  $echo.="</div></form>\n";

    I replaced it with:

    $echo.='</div><label for="ppsubmit" class="finalize" style="float: right;padding-top: 62px;"><small>'.__('<strong>Note:</strong> Submit to finalize order at PayPal.','eshop').'</small>
          <input class="button submit2" type="submit" id="ppsubmit" name="ppsubmit" value="'.__('Proceed to Checkout »','eshop').'" /></label>';
    	  $echo.="</form>\n";

    I also wanted to style the “Edit Details or Continue Shopping” link as well. Just navigate to the eShop plugin file (wp-content/plugins/eshop/) and locate checkout.php. On line 1070 you will see where the continue shopping redirect is located.

    Line 1070:

    $echoit.='<ul class="continue-proceed redirect eshopcp3"><li class="editcheckout"><a href="'.get_permalink($eshopoptions['checkout']).'">'.__('« Edit Details or Continue Shopping','eshop').'</a></li></ul>';

    I replaced it with:

    $echoit.='<ul class="continue-proceed redirect eshopcp3" style="width: 224px;padding-top: 89px;"><li class="editcheckout"><a href="'.get_permalink($eshopoptions['checkout']).'">'.__('« Edit Details or Continue Shopping','eshop').'</a></li></ul>';

    Now obviously depending on your theme and the layout of your page will ultimately determine the exact styling that works best (but I’m sure you will get it).

Viewing 1 replies (of 1 total)