-1

please visit these links :

if tier prices are available than its displaying like this :

http://hotwheelstoys.in/totaltoys2/var/www/html/totaltoys/happy-hours-scribblez.html [ this is fine ]

if tier prices are not available, than its displaying like this :

http://hotwheelstoys.in/totaltoys2/var/www/html/totaltoys/index.php/dream-house.html [this is not fine ]

means , "BUY NOW " button is far away from "ADD TO CART"

Add to cart button is calling from addtocart.phtml [extension]

/app/design/frontend/default/default/template/extension/catalog/product/view/addtocart.phtml

BUY NOW button is calling from view.phtml :

app/design/frontend/default/em0113/template/catalog/product/view.phtml

i followed this to add buy now button :

http://blog.fusedwebspace.co.uk/adding-buy-now-button-to-magento-1-9-that-skips-the-shopping-cart/

2

You need to do two things.

Step 1:

Place your buy now button inside <div class="add-to-box"> div.

Step 2:

Remove style for buy-now button.

.button.buy-now {


background: rgba(0, 0, 0, 0) linear-gradient(to bottom, #f78828 0px, #dd771f 100%) repeat scroll 0 0 !important;
padding: 3px;
width: 184px;
position:relative;
left: -240px; 
 top : 50px; 

}

replace with this

.button.buy-now {


background: rgba(0, 0, 0, 0) linear-gradient(to bottom, #f78828 0px, #dd771f 100%) repeat scroll 0 0 !important;
padding: 3px;
width: 184px;

}

I have edited the view.phtml check this.

2

you "buy now" is not contained in the left box. (the one with the product price).
It is positioned below the 2 boxes.
It looks ok on the first link because the 2 boxes have about the same height.
On the second link, the box on the right is much bigger and it pushes the button down.

  • thanks a lot , i updated as mentioned by @Meenakshi . i will try for better css next time – Baby in Magento Aug 6 '15 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.