yellowbellys Posted July 27, 2014 Share Posted July 27, 2014 I'd like to place this: Paypal button underneath this: I haven't changed anything whatsoever in the module, just paypal europe, fresh installed. If I try to change anything in the code, it just stops working and gives errors, any ideas how I can have the product page's paypal link underneath the Add to Cart? Link to comment Share on other sites More sharing options...
vekia Posted July 27, 2014 Share Posted July 27, 2014 do you use some other modules in displayFooter hook? if not, you can easily move this hook under add to cart, then button will appear there i mean, that you have to alter product.tpl file Link to comment Share on other sites More sharing options...
yellowbellys Posted July 27, 2014 Author Share Posted July 27, 2014 do you use some other modules in displayFooter hook? if not, you can easily move this hook under add to cart, then button will appear there i mean, that you have to alter product.tpl file Do I have to edit both? Because if I try and transplant the module from footer to underneath add cart, it says 'cannot transplant module to this hook'. Link to comment Share on other sites More sharing options...
yellowbellys Posted July 28, 2014 Author Share Posted July 28, 2014 do you use some other modules in displayFooter hook? if not, you can easily move this hook under add to cart, then button will appear there i mean, that you have to alter product.tpl file I've read a few topics that have attempted to sort this problem out, but it always gives me the 'cannot transplant module to this hook'. error. Any ideas? Link to comment Share on other sites More sharing options...
yellowbellys Posted July 30, 2014 Author Share Posted July 30, 2014 do you use some other modules in displayFooter hook? if not, you can easily move this hook under add to cart, then button will appear there i mean, that you have to alter product.tpl file Can you possibly make a suggestion please? Link to comment Share on other sites More sharing options...
yellowbellys Posted August 3, 2014 Author Share Posted August 3, 2014 I am in serious need on moving this hook but it cannot be transplanted and it fails to function if it manages to be transplanted after removing other hooks. Any suggestions? Link to comment Share on other sites More sharing options...
vekia Posted August 12, 2014 Share Posted August 12, 2014 hello it will be much easier to modify produc.tpl file so this is why i asked about additional modules in displayFooter hook do you use there also some other addons? Link to comment Share on other sites More sharing options...
yellowbellys Posted August 17, 2014 Author Share Posted August 17, 2014 hello it will be much easier to modify produc.tpl file so this is why i asked about additional modules in displayFooter hook do you use there also some other addons? and I'd like it to appear where the ::after pseudo tag is I'm trying to figure out which hook to put it into. Should I unhook it from display footer? Link to comment Share on other sites More sharing options...
yellowbellys Posted August 17, 2014 Author Share Posted August 17, 2014 I removed the paypal hook from displayfooter. I tried to transplant the hook into displayproductbuttons. And i received this warning: Link to comment Share on other sites More sharing options...
vekia Posted August 17, 2014 Share Posted August 17, 2014 there is slides everywhere do you use some sliders there? if not, you can move whole hook execute function below the add to cart Link to comment Share on other sites More sharing options...
yellowbellys Posted August 17, 2014 Author Share Posted August 17, 2014 there is slides everywhere do you use some sliders there? if not, you can move whole hook execute function below the add to cart Okay, I moved the hook like so: <p id="add_to_cart" class="buttons_bottom_block no-print"> <button type="submit" name="Submit" class="exclusive"> <span>{l s='Add to cart'}</span> </button> </p> {if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if} {if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if}<strong></strong> </div> However, and it shows in the right place. However, the image is not linked anymore and clicking it does not do anything? Link to comment Share on other sites More sharing options...
yellowbellys Posted August 17, 2014 Author Share Posted August 17, 2014 Seemingly, it never is a link, the linkage is caused by this: <form id="paypal_payment_form" action="https://www.yellowbellys.co.uk/modules/paypal/express_checkout/payment.php" title="Pay with PayPal" method="post" data-ajax="false"> In the footer. So, the question is, why doesn't this form move when I move the hook? Link to comment Share on other sites More sharing options...
yellowbellys Posted August 17, 2014 Author Share Posted August 17, 2014 I think I fixed it! I changed: <div id="container_express_checkout" style="float:right; margin: 10px 40px 0 0"> {if isset($use_mobile) && $use_mobile} <div style="margin-left:30px"> <img id="payment_paypal_express_checkout" src="{$base_dir_ssl}modules/paypal/img/logos/express_checkout_mobile/CO_{$PayPal_lang_code}_orange_295x43.png" alt="" /> </div> {else} <img id="payment_paypal_express_checkout" src="https://www.paypal.com/{$PayPal_lang_code}/i/btn/btn_xpressCheckout.gif" alt="" /> {/if} {if isset($include_form) && $include_form} {include file="$template_dir./express_checkout_shortcut_form.tpl"} {/if} </div> <div class="clearfix"></div> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now