Change Add to Cart location

  • Posts: 5
  • Thank you received: 0
12 years 9 months ago #38185

Is there a way to put the image, add to cart button, quantity, below the description? I have entered in details and another picture on the products pages. Is there a way to move the actual "Hika Shop" add to cart area below that custom description?

See my link here:
bluegrassbarrels.com/1-liter-steel/product/Itemid-115.html

I'd like everything above "Barrel Dimensions" to be below that paragraph of text and photo.

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 9 months ago #38273

You can do that by swapping the different block of code of the file "show" of the view "product" via the menu Display->Views.

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

  • Posts: 5
  • Thank you received: 0
12 years 9 months ago #38326

Thank you! I got it to work the way I wanted! Thanks!

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

  • Posts: 14
  • Thank you received: 0
12 years 8 months ago #42365

Hi Nicolas,

Any chance you could point me in the right direction on which code blocks i should be swapping - i know is is going to be simple just can't quite figure it out.

CHRIS

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 8 months ago #42504

Please note that since 1.5.6, it's the file "show_default" that should be edited instead of "show".
The blocks of code to swap will depend on what piece you want to move and where. Could you give more details on that ?

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

  • Posts: 14
  • Thank you received: 0
12 years 8 months ago #42536

Hi Nicolas,

I have already figured this out through a bit of trial and error - many thanks for getting back to me though

CHRIS

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

  • Posts: 1
  • Thank you received: 0
12 years 7 months ago #47039

Hi Nicolas,

How can I change the button add to cart for a picture?

I think it must be here but how?


<div class="hikashop_product_stock">
<?php
echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->ajax,'',$this->row->product_max_per_order,$this->row->product_min_per_order);
}elseif($this->row->product_quantity>0){
?>
<div class="hikashop_product_stock">
<?php
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
$config =& hikashop_config();
if($config->get('button_style','normal')=='css'){
echo '<br />';
}
echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->ajax,'',$this->row->product_max_per_order,$this->row->product_min_per_order);
}else{
?>

best regard
Nick

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 7 months ago #47117

You don't need to change any code. You can do it with CSS like we did on our demo website:
.hikashop_product_quantity_main .hikashop_product_stock .button {
background-image: url(../images/add_cart.png);
}

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

  • Posts: 5
  • Thank you received: 0
12 years 2 months ago #65538

Now that I have upgraded to 1.6, my code is broken.

I'd like to make the description of the product above the price, options and add to cart area.

www.bluegrassbarrels.com/1-liter-steel/product/Itemid-115.html

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

  • Posts: 5
  • Thank you received: 0
12 years 2 months ago #65539

Nevermind, I think I just fixed it!

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

  • Posts: 5
  • Thank you received: 0
12 years 2 months ago #65540

Weight is still be displayed on my product pages. Could you take a look to see why? I have it set to "No" for show weight.

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

  • Posts: 72
  • Thank you received: 4
12 years 2 months ago #65546

if you mean the moving of weight dimension away from product page, just try to look here:

www.hikashop.com/en/forum/4-how-to/65350...on-product-page.html

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

Time to create page: 0.070 seconds
Powered by Kunena Forum