My $text_view and $text_checkout are set to 'Basket' and 'Checkout'
I changed ~/catalog/view/default/template/module/cart.tpl
From:
<div style="padding-top:5px;text-align:center;clear:both;"><a href="<?php echo $view; ?>">
<?php echo $text_view; ?></a> | <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
To:
<div style="text-align: center; margin-top: 10px; float:right">
<a href="<?php echo $view; ?>" class="button" style="text-decoration: none;"><span><?php echo $text_view; ?></span></a>
<a href="<?php echo $checkout; ?>" class="button" style="text-decoration: none;"><span><?php echo $text_checkout; ?></span></a>
</div>
Which looked encouraging but the box collapses when I use it (like most of my code )
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
I added <div class="clear"></div> after it and it works fine (but I won't pretend that I understand).
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
It works except for the inital 'Add to Basket' so I altered ~catalog\controller\module\cart.php to:
output .= '<div style="padding-top:10px; text-align:center; clear:both; float: right">
<a href="<?php echo $view; ?>" class="button" style="text-decoration: none;"><span><?php echo $text_view; ?></span></a>
<a href="<?php echo $checkout; ?>" class="button" style="text-decoration: none;"><span><?php echo $text_checkout; ?></span></a>
</div><div class="clear"></div>';
..it is almost there except that the buttons are malformed with no link; when I refresh the page, everything is fine.
Grrrrr - I'm glad I'm not a real web-developer, it would drive me nuts!
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
$output .= '<div style="padding-top:10px;text-align:center; clear:both; float:right">
<a href="'. $view. '" class="button" style="text-decoration: none;"><span>'. $this->language->get('text_view') .'</span></a>
<a href="'. $checkout .'" class="button" style="text-decoration: none;"><span>' . $this->language->get('text_checkout') . '</span></a>
</div><div class="clear"></div>';
Two buttons... not bad for an hour's work. Should I contribute it as an Extension
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
www.ithinkipad.biz
after you click add to cart button on the product page, you'll see inthe sidebar of the site "TEXT_VIEW" and "CHECKOUT" button..
i want to asking, how i can change "TEXT_VIEW" button into Basket Button, like what the extension said.
http://www.opencart.com/index.php?route ... ion&page=6 <== this is what module i used. thanks.. need help..
griya.celebes, your cart should show view cart instead of text view. You go change to Basket Button in here.
catalog/language/english/module/cart.php. In cart.php you see $_['text_view'] = 'View Cart' change to this $_['text_view'] = 'Basket Button'. Good Luck
catalog\language\english\module\cart.php
Sorry Timdan, I can't explain your problem. I don't have any problems with it... it will only work with v1.4.8 though; text_view didn't exist before then.
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
The delete box is missing and the buttons format is lost so that they no longer appear alongside one another.
When I refresh, the delete box appears and the buttons jump to a new (but still incorrect) position.
Basically:
- On localhost, looks perfect (all browsers including IE8)
- On live site, format problem in IE8 but fine in other browsers
If I capture HTML using 'View Source' from Localhost and Live Server, they are identical ?!?
If I restore the original v1.4.8 cart module, the delete button still disappears (live server only).
Any suggestions?
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
Users browsing this forum: No registered users and 11 guests