Jump to content

Paypal Express button underneath add to cart?


Recommended Posts

I'd like to place this:

post-817228-0-23296500-1406470929_thumb.png

Paypal button underneath this:

post-817228-0-85650300-1406470960_thumb.png

 

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

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

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

  • 2 weeks later...

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?

VCODZbS.jpg

and

c46ErKw.jpg

I'd like it to appear where the ::after pseudo tag is

0uezlBy.jpg

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...