AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: ygalbrami on June 01, 2013, 04:47:39 AM

Title: confirm order and back button
Post by: ygalbrami on June 01, 2013, 04:47:39 AM
first i need to say that you make a very good job on the new vesion.
when i press on checkout i see that i have - confirm order and the the back is not a button - they are in text, can you please make this as button?
this is impotrant so user can see it easy.

thanks.
Title: Re: confirm order and back button
Post by: abantecart on June 01, 2013, 10:49:24 AM
What payment method do you use? Please post the screen shot.
Title: Re: confirm order and back button
Post by: ygalbrami on June 01, 2013, 10:55:27 AM
please see the image
Title: Re: confirm order and back button
Post by: abantecart on June 01, 2013, 11:05:53 AM
Quote from: abantecart on June 01, 2013, 10:49:24 AM
What payment method do you use?
Title: Re: confirm order and back button
Post by: ygalbrami on June 01, 2013, 11:06:34 AM
paypal standart
Title: Re: confirm order and back button
Post by: abolabo on June 03, 2013, 07:40:43 AM
Please replace files public_html/extensions/default_pp_standart/storefront/controller/responses/extension/default_pp_standart.php
and public_html/extensions/default_pp_standart/storefront/view/default/template/responses/default_pp_standart.tpl
by attached
Title: Re: confirm order and back button
Post by: ygalbrami on June 03, 2013, 08:00:17 AM
Thank you for fast replay
I will test this and let you know.
Title: Re: confirm order and back button
Post by: ygalbrami on June 03, 2013, 12:54:30 PM
thank you so so much for this.
this realy help.

in test mode i get error: This transaction cannot be completed...

to fix this error you need to cancel the details of the items - in test mode

like this:

<?php
if (!$this->config->get('default_pp_standart_test')) {
?>


<?php // start original code ?>


<form action="<?php echo str_replace('&''&amp;'$action); ?>" method="post" id="checkout">
<input type="hidden" name="cmd" value="_cart"/>
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="business" value="<?php echo $business?>"/>
<?php $i 1?>
<?php foreach ($products as $product) { ?>
<input type="hidden" name="item_name_<?php echo $i?>" value="<?php echo $product['name']; ?>"/>
<input type="hidden" name="item_number_<?php echo $i?>" value="<?php echo $product['model']; ?>"/>
<input type="hidden" name="amount_<?php echo $i?>" value="<?php echo $product['price']; ?>"/>
<input type="hidden" name="quantity_<?php echo $i?>" value="<?php echo $product['quantity']; ?>"/>
<input type="hidden" name="weight_<?php echo $i?>" value="<?php echo $product['weight']; ?>"/>
<?php $j 0;
foreach ($product['option'] as $option) { ?>

<input type="hidden" name="on<?php echo $j?>_<?php echo $i?>" value="<?php echo $option['name']; ?>"/>
<input type="hidden" name="os<?php echo $j?>_<?php echo $i?>" value="<?php echo $option['value']; ?>"/>
<?php $j++; ?>
<?php $i++; ?>
<?php ?>
<?php if ($discount_amount_cart) { ?>
<input type="hidden" name="discount_amount_cart" value="<?php echo $discount_amount_cart?>"/>
<?php ?>

<input type="hidden" name="currency_code" value="<?php echo $currency_code?>"/>
<input type="hidden" name="first_name" value="<?php echo $first_name?>"/>
<input type="hidden" name="last_name" value="<?php echo $last_name?>"/>
<input type="hidden" name="address1" value="<?php echo $address1?>"/>
<input type="hidden" name="address2" value="<?php echo $address2?>"/>
<input type="hidden" name="city" value="<?php echo $city?>"/>
<input type="hidden" name="zip" value="<?php echo $zip?>"/>
<input type="hidden" name="country" value="<?php echo $country?>"/>
<input type="hidden" name="address_override" value="0"/>
<input type="hidden" name="notify_url" value="<?php echo $notify_url?>"/>
<input type="hidden" name="email" value="<?php echo $email?>"/>
<input type="hidden" name="invoice" value="<?php echo $invoice?>"/>
<input type="hidden" name="lc" value="<?php echo $lc?>"/>
<input type="hidden" name="return" value="<?php echo $return?>"/>
<input type="hidden" name="rm" value="2"/>
<input type="hidden" name="no_note" value="1"/>
<input type="hidden" name="cancel_return" value="<?php echo $cancel_return?>"/>
<input type="hidden" name="paymentaction" value="<?php echo $paymentaction?>"/>
<input type="hidden" name="custom" value="<?php echo $custom?>"/>
<input type="hidden" name="bn" value="Abante_Cart">

<?php if ( $logoimg ): ?>
<input type="hidden" name="image_url" value="<?php echo $logoimg?>"/>
<?php endif; ?>

<?php if ( $cartbordercolor ): ?>
<input type="hidden" name="cpp_cart_border_color" value="<?php echo $cartbordercolor?>"/>
<?php endif; ?>


<div class="buttons">
<table>
<tr>
<td align="left"><?php echo $back?></td>
<td align="right"><?php echo $button_confirm?></td>
</tr>
</table>
</div>
</form>

<?php } else { ?>


<form action="<?php echo str_replace('&''&amp;'$action); ?>" method="post" id="checkout">
  <input type="hidden" name="cmd" value="_xclick" />
  <input type="hidden" name="business" value="<?php echo $business?>" />
  <input type="hidden" name="item_name" value="<?php echo $item_name?>" />
  <input type="hidden" name="currency_code" value="<?php echo $currency_code?>" />
  <input type="hidden" name="amount" value="<?php echo $amount?>" />
  <input type="hidden" name="first_name" value="<?php echo $first_name?>" />
  <input type="hidden" name="last_name" value="<?php echo $last_name?>" />
  <input type="hidden" name="address1" value="<?php echo $address1?>" />
  <input type="hidden" name="address2" value="<?php echo $address2?>" />
  <input type="hidden" name="city" value="<?php echo $city?>" />
  <input type="hidden" name="zip" value="<?php echo $zip?>" />
  <input type="hidden" name="country" value="<?php echo $country?>" />
  <input type="hidden" name="address_override" value="0" />
  <input type="hidden" name="notify_url" value="<?php echo $notify_url?>" />
  <input type="hidden" name="email" value="<?php echo $email?>" />
  <input type="hidden" name="invoice" value="<?php echo $invoice?>" />
  <input type="hidden" name="lc" value="<?php echo $lc?>" />
  <input type="hidden" name="return" value="<?php echo $return?>" />
  <input type="hidden" name="rm" value="2" />
  <input type="hidden" name="no_note" value="1" />
  <input type="hidden" name="cancel_return" value="<?php echo $cancel_return?>" />
  <input type="hidden" name="paymentaction" value="<?php echo $paymentaction?>" />
  <input type="hidden" name="custom" value="<?php echo $custom?>" />


<?php if ( $logoimg ): ?>
<input type="hidden" name="image_url" value="<?php echo $logoimg?>"/>
<?php endif; ?>

<?php if ( $cartbordercolor ): ?>
<input type="hidden" name="cpp_cart_border_color" value="<?php echo $cartbordercolor?>"/>
<?php endif; ?>


<div class="buttons">
<table>
<tr>
<td align="left"><?php echo $back?></td>
<td align="right"><?php echo $button_confirm?></td>
</tr>
</table>
</div>
</form>

<?php  ?>
Title: Re: confirm order and back button
Post by: orisolo on July 07, 2013, 01:07:03 AM
I applied the fixed files and it worked.
I would like to have the "confirm order" in orange color like the rest of the buttons in the checkout process in default temp.
how can i change this button to orange?
Possibly so increase the size of the button/text to really stand out, it seams that my users just miss the final part.
Right now it is in whitish-gray
Thanks,