Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

Cart to Amazon in a new tab

More
2 weeks 6 days ago #8093 by [email protected]
Once a customer adds an item to their shopping cart and goes to check out, is it possible to have the Amazon "Add to shopping cart" page to pay for the items show up in a separate tab rather than the parent tab? Thanks for your help.

Andrew

Please Log in or Create an account to join the conversation.

More
2 weeks 6 days ago #8094 by boggler
Replied by boggler on topic Cart to Amazon in a new tab
Yes, you can override the layout for the cart button. The basic layout for the button is in components/com_amazonws/sublayouts/cartbutton.php.

Place a copy of this file in your template html folder, in the subdirectory amazonWS/sublayouts

Then edit this file, where you have the form element tag
<form action="<?php echo JRoute::_('index.php'); ?>" id="addtocartform_<?php echo $view->index; ?>" method="post">

add a target="_blank" attribute
<form action="<?php echo JRoute::_('index.php'); ?>" id="addtocartform_<?php echo $view->index; ?>" method="post" target="_blank">

In answer to your other question which you asked me on facebook about Amazon Prime, there is a fix for this. You have to look for this file

plugins/system/amazonwsapi/amazonwsapi/includes/helpers/pluginconfiguration.php

look for this function
public static function getDigitalBindings()
{
		
	return array('MP3 Download','MP3 Music','Kindle Edition','Amazon Instant Video');
		
}

add Prime Video to the list
public static function getDigitalBindings()
{
		
	return array('MP3 Download','MP3 Music','Kindle Edition','Amazon Instant Video','Prime Video');
		
}

We will add this change to the next release of the extension, which will probably be within the next month. There are a few bug fixes which are worth releasing soon.
The following user(s) said Thank You: [email protected]

Please Log in or Create an account to join the conversation.

Moderators: boggler
Time to create page: 0.455 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.